从命令行启动emacs-gdb? [英] Start emacs-gdb from command line?

查看:97
本文介绍了从命令行启动emacs-gdb?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我喜欢emacs的gdb模式比GDB的命令行或TUI模式好多了,但是有些程序想要一个调试器命令行程序,它可以在它设置的环境中运行并运行。

I like emacs's gdb mode a lot better than GDB's command line or TUI modes, but there are some programs that want a "debugger command line" program that it can take and run in an environment it sets up.

我想知道是否有一种简单的方法来使用gdb模式使用命令行代替gdb弹出emacs。

I'm wondering if there's a simple way to make emacs pop up in gdb mode using a command line substitute for gdb.

提前感谢

推荐答案

将其放在你的.bashrc中:

Put this in your .bashrc:

gdbtool(){emacs --eval(gdb \gdb
--annotate = 3 $ * \);}

gdbtool () { emacs --eval "(gdb \"gdb --annotate=3 $*\")";}

然后你可以运行gdbtool programToDebug

Then you can run "gdbtool programToDebug"

资料来源: http://www.inet.net.nz/~nickrob/

这篇关于从命令行启动emacs-gdb?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆