From: 高国胜 <guosheng_gao@realsil.com.cn>
To: "gdb@sourceware.org" <gdb@sourceware.org>
Subject: How to use compile & execute function in GDB
Date: Wed, 15 Apr 2015 05:45:00 -0000 [thread overview]
Message-ID: <0CEE46EB9C50E44486A861D738D3E20645F9C073@rsex2.realsil.com.cn> (raw)
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!
next reply other threads:[~2015-04-15 5:45 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-15 5:45 高国胜 [this message]
2015-04-15 15:48 ` Jan Kratochvil
[not found] ` <0CEE46EB9C50E44486A861D738D3E20645F9C2E0@rsex2.realsil.com.cn>
2015-04-16 11:34 ` 答复: " Jan Kratochvil
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=0CEE46EB9C50E44486A861D738D3E20645F9C073@rsex2.realsil.com.cn \
--to=guosheng_gao@realsil.com.cn \
--cc=gdb@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).