I enter gdb within emacs using M-x gdb. Then, when I execute b main, I get the following output:
b main
Breakpoint 1 at 0x100000d61: file hanoi.c, line 27.
(gdb)
MI_HOOK_RESULT={HOOK_TYPE="breakpoint_create",bkpt={number="1",type="breakpoint",d\
isp="keep",enabled="y",addr="0x0000000100000d61",func="main",file="hanoi.c",line="\
27",shlib="/Users/rdp/Desktop/Hanoi-Moves_testcases/play",times="0"}},time={wallcl\
ock="0.00104",user="0.00049",system="0.00027",start="1347691065.681152",end="13476\
91065.682197"}
When I try to run the program, I get this output:
r |21 } 14Starting program: /Users/rdp/Desktop/Hanoi-Moves_testcases/play
(gdb) |24} 16time={wallclock="0.00009",user="0.00005",system="0.00004",start="1347691082.360725\|25 ",end="1347691082.360816"} (gdb) n
The program is not being run.
Why do I get a verbose output, and why can’t I step through the code?
Emacs 24 seems to have broken GUD (the interface to gdb and other debuggers). There was some brawl about it on the IRC channel, and one person was actually claiming it to work for him, but I’m also getting very weird behavior. Googling also reveals the following (and some more): gud-gdb emacs 24 not working
I would try to make a minimal test-case of it failing and file a bug report.
Edit: You might want to try
gud-gdbin place ofgdb. I don’t know what differences there are but it seems to work for me. (Didn’t test comprehensively.)