Интернет магазин китайских планшетных компьютеров |
|
Компьютеры - GNU Debugger - Пример использования11 мая 2011Оглавление: 1. GNU Debugger 2. Пример использования GNU gdb 6.5 Copyright 2006 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 "i486-slackware-linux". run Starting program: /home/sam/programming/crash Reading symbols from shared object read from target memory...done. Loaded system supplied DSO at 0xc11000 This program will demonstrate gdb Program received signal SIGSEGV, Segmentation fault. 0x08048428 in function_2 at crash.c:22 22 return *y; edit shell gcc crash.c -o crash -gstabs+ run The program being debugged has been started already. Start it from the beginning? y warning: cannot close "shared object read from target memory": File in wrong format `/home/sam/programming/crash' has changed; re-reading symbols. Starting program: /home/sam/programming/crash Reading symbols from shared object read from target memory...done. Loaded system supplied DSO at 0xa3e000 This program will demonstrate gdb 24 Program exited normally. quit После того, как причина ошибки сегментации найдена, программа отредактирована, ошибка исправлена. Исправленная программа повторно собрана с GCC и запущена. Просмотров: 1778
|