使用GNU gdb (GDB) 7.0.1可以支持j命令直接跳转到指定行,但是GNU gdb (GDB) SUSE (7.5.1-0.7.29)高版本反而有问题
[zhongyunde@hcc-30 ~/hcc-6182/xtensa-elf/install_6182/bin]$gdb -v
warning: Can not parse XML syscalls information; XML support was disabled at compile time.
GNU gdb (GDB) 7.0.1
(gdb) tb 2606
Temporary breakpoint 3 at 0x8546e7a: file /home/zhongyunde/6183_hcc/gcc/gcc-4.7.0/gcc/loop-iv.c, line 2606.
(gdb) j 2606
Continuing at 0x8546e7a.
[zhongyunde@linux-root ~/6183_hcc/gcc/gcc-4.7.0/gcc/config/hidsp]$gdb -v
GNU gdb (GDB) SUSE (7.5.1-0.7.29)
(gdb) tb 2604
Note: breakpoint 5 also set at pc 0x82cab0d.
Temporary breakpoint 6 at 0x82cab0d: file /net1/home/zhongyunde/6183_hcc/gcc/gcc-4.7.0/gcc/loop-iv.c, line 2604.
(gdb) j 2604
Ambiguous command "j 2604": jit-reader-load, jit-reader-unload, jump