GDB
Добавлено: 31 июл 2007, 13:48
Решил изучить gdb, и вот застрял на простом (и не могу понять че нитак, короче торможу):
1. собираю тестовую программу
[kostya@kostya test3]gcc -g test.c -o test
2. Запускаю gdb
[kostya@kostya test3]$ gdb test
GNU gdb Red Hat Linux (6.3.0.0-1.122rh)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu"...Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) break 8
Breakpoint 1 at 0x80483c5: file test.c, line 8.
(gdb) r
Starting program: /home/kostya/projects/test3/test
[1]+ Stopped gdb test
[kostya@kostya test3]$
Так вот, немогу понять почему выходит из gdb, что еще не учел? Дистриб Fedora Core 5. Проделал тоже самое под debian - останавливается на нужной строке.
1. собираю тестовую программу
[kostya@kostya test3]gcc -g test.c -o test
2. Запускаю gdb
[kostya@kostya test3]$ gdb test
GNU gdb Red Hat Linux (6.3.0.0-1.122rh)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu"...Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) break 8
Breakpoint 1 at 0x80483c5: file test.c, line 8.
(gdb) r
Starting program: /home/kostya/projects/test3/test
[1]+ Stopped gdb test
[kostya@kostya test3]$
Так вот, немогу понять почему выходит из gdb, что еще не учел? Дистриб Fedora Core 5. Проделал тоже самое под debian - останавливается на нужной строке.