开发者

C/C++ Debugging in Emacs 23.1

开发者 https://www.devze.com 2023-03-06 02:15 出处:网络
I use gdb version 7.0 for debugging from emacs. The gdb when launched from emacs behaves slighlty differently compared with one launch开发者_Python百科ed from the shell. The points of differences are

I use gdb version 7.0 for debugging from emacs. The gdb when launched from emacs behaves slighlty differently compared with one launch开发者_Python百科ed from the shell. The points of differences are :-

  1. gdb prompt, when launched from emacs doesn't recogonize the files in the current directory (from which the gdb session is launched.) This very cumbersome as when you run the application through gdb (using run), you have to give the full absolute path of the file. This is not the case when you launch the application through gdb from shell.

  2. The arrow keys (that give the most recent commands typed on the gdb prompt), doesn't work for gdb launched from emacs. Instead, it moves the scroll up and down in the emacs gdb command prompt. Am I doing anything wrong here.. ?

Thanks and regards


  1. since you are in a buffer, up and down move up and down in the buffer. most of the emacs shell-like buffers access the command history using "C-up" and "C-down".
0

精彩评论

暂无评论...
验证码 换一张
取 消