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 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调试的时候,可以看到具体的调...
gcc exmp.c -o exmp gdb ./exmp (gdb) b bar Breakpoint 1 at 0x401135 (gdb) r Starting program: /home/ahajkova/exmp Breakpoint 1, 0x0000000000401135 in bar () (gdb) step Single stepping until exit from function bar, which has no line number information. i = 2 0x0000000000401168 ...
(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...
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循环的判断体进行判断。 (gdb) set num = 1 ...
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) nSingle stepping until exit from function poll,which has no line number information.Mysqld_socket_listener::listen_for_connection_event (this=0x3967430) at /gdb/mysql-5.7.25/sql/conn_handler/socket_connection.cc:859859 if (retval < 0 && socket_errno != SOCKET_EINTR) 通过输出可以知道...