From: Tom Frank <gdbhelper@gmail.com>
To: gdb@sourceware.org
Subject: how to print a function's return value
Date: Wed, 11 Jul 2012 15:10:00 -0000 [thread overview]
Message-ID: <CAMHBcgqhCiyvU_XeCTH0Vx_8xdimzWhD1kU5_CnpX5+Hw=4+tw@mail.gmail.com> (raw)
hi,
in source code , there is a fuction call like this : int a = func(param);
then I debug it with gdb , whein it stop at this line,I want to print
the func's retvalue, which results in a gdb sigtrap,and
cause gdb to go into a trap, then I can not find where am I .
I konw there is a command to prevent gdb going to trap like this,
what is that command?
thanks!
next reply other threads:[~2012-07-11 15:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-11 15:10 Tom Frank [this message]
2012-07-11 21:49 ` Doug Evans
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='CAMHBcgqhCiyvU_XeCTH0Vx_8xdimzWhD1kU5_CnpX5+Hw=4+tw@mail.gmail.com' \
--to=gdbhelper@gmail.com \
--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).