|
|
我试了几次都不成功
- [leo@leo ~]$ gdb
- GNU gdb 6.2
- 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 "i686-pc-linux-gnu".
- (gdb) attach 10433
- Attaching to process 10433
- Reading symbols from /mnt/share/tmp/Research/fceu/src/fceu...done.
- Using host libthread_db library "/lib/libthread_db.so.1".
- Reading symbols from /lib/libz.so.1...done.
- Loaded symbols for /lib/libz.so.1
- Reading symbols from /usr/lib/libSDL-1.2.so.0...done.
- Loaded symbols for /usr/lib/libSDL-1.2.so.0
- Reading symbols from /lib/libpthread.so.0...done.
- [Thread debugging using libthread_db enabled]
- [New Thread -1213580864 (LWP 10433)]
- Loaded symbols for /lib/libpthread.so.0
- Reading symbols from /lib/libc.so.6...done.
- Loaded symbols for /lib/libc.so.6
- Reading symbols from /lib/libm.so.6...done.
- Loaded symbols for /lib/libm.so.6
- Reading symbols from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/libstdc++.so.5...done.
- Loaded symbols for /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/libstdc++.so.5
- Reading symbols from /lib/libdl.so.2...done.
- Loaded symbols for /lib/libdl.so.2
- Reading symbols from /usr/lib/libasound.so.2...done.
- Loaded symbols for /usr/lib/libasound.so.2
- Reading symbols from /usr/lib/libX11.so.6...done.
- Loaded symbols for /usr/lib/libX11.so.6
- Reading symbols from /usr/lib/libXext.so.6...done.
- Loaded symbols for /usr/lib/libXext.so.6
- Reading symbols from /usr/lib/libvga.so.1...done.
- Loaded symbols for /usr/lib/libvga.so.1
- Reading symbols from /lib/ld-linux.so.2...done.
- Loaded symbols for /lib/ld-linux.so.2
- Reading symbols from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/libgcc_s.so.1...done.
- Loaded symbols for /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/libgcc_s.so.1
- Reading symbols from /usr/lib/libXcursor.so.1.0.2...done.
- Loaded symbols for /usr/lib/libXcursor.so.1.0.2
- Reading symbols from /usr/lib/libXrender.so.1...done.
- Loaded symbols for /usr/lib/libXrender.so.1
- Reading symbols from /usr/lib/X11/locale/lib/common/xlcDef.so.2...done.
- Loaded symbols for /usr/lib/X11/locale/lib/common/xlcDef.so.2
- 0xffffe410 in ?? ()
- (gdb) l
- 357
- 358 return(0);
- 359 }
- 360
- 361 #ifdef EXTGUI
- 362 int FCEUSDLmain(int argc, char *argv[])
- 363 #else
- 364 int main(int argc, char *argv[])
- 365 #endif
- 366 {
- (gdb) s
- Cannot find bounds of current function
- (gdb)
- Cannot find bounds of current function
- (gdb) s
- Cannot find bounds of current function
- (gdb) n
- Cannot find bounds of current function
- (gdb)
复制代码 被attach的进程是停止执行了,可是用s,n等命令都不行
可是gdb的info里明明写着
- You can examine and modify an attached process with [color="Magenta"]all[/color] the GDB commands that are ordinarily available when you start processes with `run'.
复制代码 |
|