public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* How to use compile & execute function in GDB
@ 2015-04-15  5:45 高国胜
  2015-04-15 15:48 ` Jan Kratochvil
  0 siblings, 1 reply; 3+ messages in thread
From: 高国胜 @ 2015-04-15  5:45 UTC (permalink / raw)
  To: gdb

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!

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-04-16 11:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-15  5:45 How to use compile & execute function in GDB 高国胜
2015-04-15 15:48 ` Jan Kratochvil
     [not found]   ` <0CEE46EB9C50E44486A861D738D3E20645F9C2E0@rsex2.realsil.com.cn>
2015-04-16 11:34     ` 答复: " Jan Kratochvil

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).