This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
How to use compile & execute function in GDB
- From: éåè <guosheng_gao at realsil dot com dot cn>
- To: "gdb at sourceware dot org" <gdb at sourceware dot org>
- Date: Wed, 15 Apr 2015 05:45:19 +0000
- Subject: How to use compile & execute function in GDB
- Authenticated-by:
- Authentication-results: sourceware.org; auth=none
I have install gcc-5.0, and copy libcc1.so to current work space.
When I try the compile & execute function in gdb, The following error occurred:
(gdb) b main
Breakpoint 1 at 0x80483dd: file test.c, line 5.
(gdb) r
Starting program: /home/guosheng_gao/gdb-7.9/obj/test
Breakpoint 1, main () at test.c:5
5 a = 1;
(gdb) compile code int z=5;c=z;
cc1: error: unrecognized command line option "-std=gnu11"
cc1: error: unrecognized command line option "-fplugin=libcc1plugin"
cc1: error: unrecognized command line option "-fplugin-arg-libcc1plugin-fd=6"
Compilation failed.
(gdb)
Any advices will be wonderful!