- 论坛徽章:
- 0
|
在gdb调试的输出如下:没有告诉哪个函数出错,只是给了一个地址,怎么调试?谢谢
- [***]gdb a.out core.30506
- GNU gdb Red Hat Linux (6.3.0.0-1.96rh)
- 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/tls/libthread_db.so.1".
- warning: exec file is newer than core file.
- Core was generated by `./dnsServer config.ini'.
- Program terminated with signal 11, Segmentation fault.
- #0 0x00222fd4 in ?? ()
- (gdb) bt
- #0 0x00222fd4 in ?? ()
- #1 0x0b625f14 in ?? ()
- #2 0x0c424d70 in ?? ()
- #3 0x0059d28c in ?? ()
- #4 0x00000000 in ?? ()
- (gdb)
复制代码 |
|