- 论坛徽章:
- 0
|
[root@test src]# g++ -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -Wall -c fbgetch.cc -o fbgetch.o
[root@test src]# gdb fbgetch.o
GNU gdb Red Hat Linux (6.3.0.0-1.132.EL4rh)
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".
(gdb) r
Starting program: /tmp/qe-0.2.0/src/fbgetch.o
/bin/bash: /tmp/qe-0.2.0/src/fbgetch.o: cannot execute binary file
/bin/bash: /tmp/qe-0.2.0/src/fbgetch.o: Success
Program exited with code 01.
warning: shared library handler failed to enable breakpoint
You can't do that without a process to debug. |
|