gdb无法单步调试 使用gdb调试单步程序时如果打印提示“single stepping until exit from function xxx,which has no line number information”,可能的原因有两个: 1 编译源文件时没有加-g选项; 2 gcc与gdb版本不兼容,通常是由于手工对gcc程序进行了升级,导致现有gdb程序版本过旧,比如gcc升级到4.8版本,gdb仍为旧的...
Single stepping until exit from function __nanosleep_nocancel, which has no line number information. 0x00007ffff72b3cc4 in sleep () from /lib64/libc.so.6 (gdb) n Single stepping until exit from function sleep, which has no line number information. main () at test_process.cc:8 8 whi...
Single stepping until exit from function liba_func, which has no line number information. 1 + 2 = 3. sum = 4. 0x000000000040118c in main () (gdb) n Single stepping until exit from function main, which has no line number information. 而加了-g选项后,再用gdb调试的时候,可以看到具体的调...
(gdb) n<--程序正在运行,所有直接使用 next 命令就可以进行单步调试 Single stepping until exitfromfunction __nanosleep_nocancel, which has no line number information.0x00000037ee2acb50insleep ()from/lib64/libc.so.6(gdb) n Single stepping until exitfromfunction sleep, which has no line number i...
Singlesteppinguntilexitfromfunctionbar, which hasnoline number information. i=2 0x0000000000401168inmain 2、stepi 命令 但是你仍然可以在没有行号信息的函数内部单步执行语句,但要使用 stepi 命令来代替 step 。 stepi 一次只执行一条指令。当使用 GDB 的 stepi 命令时,先做 display/i $pc 通常很有用,这...
Single stepping until exit from function __libc_start_main, which has no line number information. Program exited normally. (gdb) info break Num Type Disp Enb Address What 1 breakpoint keep y 0x08048421 in main at gao.lu.c:12 breakpoint already hit 2 times ...
Single stepping until exit from function Gets, which has no line number information. Type string:123 0x08048ae1 in getbuf () (gdb) si 0x08048ae2 in getbuf () (gdb) c Continuing. Dud: getbuf returned 0x1 Better luck next time ...
so.6 (gdb) Single stepping until exit from function sleep, which has no line number information. main () at test_process.cc:8 8 while(num==10){ (gdb) 在上述命令中,我们执行了n(next的缩写),使其重新对while循环的判断体进行判断。 代码语言:javascript 代码运行次数:0 运行 AI代码解释 (gdb...
(gdb) step Single stepping until exit from function add, which has no line number information. Print variable values: gdb (gdb) print x $1 = 5 (gdb) print y $2 = 10 (gdb) print result $3 = 15 Continue execution: gdb (gdb) continue Continuing. The result is: 15 [Inferior ...
(y or n) yStarting program: /root/Temp/bufbomb/bufbomb -t cdaiBreakpoint 2, 0x080490c6 in main ()(gdb) record(gdb) cContinuing.Team: cdaiCookie: 0x5e5ee04eBreakpoint 1, 0x08048ad6 in getbuf ()(gdb) rnSingle stepping until exit from function getbuf,which has no line number in...