Talk:Gdb

From ConShell
Jump to navigation Jump to search

a useful gdb tip: after doing a 'bt' to show the call stack trace, "Ctrl-x o" opens source code in a separate text windows, a-la emacs (or vim) split-window mode.
then you can jump the desired level by typing 'fr <level>' (e.g. 'fr 5'). assuming your object was compiled with -g, you'll see the code in the top window.
no more having to type 'l' to see the code !

enjoy
Yaron Yogev