From: Eli Zaretskii <eliz@gnu.org>
To: Joel Brobecker <brobecker@adacore.com>
Cc: gdb@sourceware.org
Subject: Re: "set foo"
Date: Sun, 25 Apr 2010 13:40:00 -0000 [thread overview]
Message-ID: <83y6gbzm4e.fsf@gnu.org> (raw)
In-Reply-To: <20100424212118.GW13204@adacore.com>
> Date: Sat, 24 Apr 2010 17:21:18 -0400
> From: Joel Brobecker <brobecker@adacore.com>
> Cc: gdb@sourceware.org
>
> I think that "main" is treated as an expression, and this expression
> simply returns the address of function main. For instance, try the
> following:
>
> (gdb) print main
>
> Since it's a "set" command, we then discard the result of the evaluation.
Thanks.
So using "set foo" to make sure some symbol used by `foo' is loaded by
GDB is a valid technique, is that right?
next prev parent reply other threads:[~2010-04-25 13:40 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-24 20:52 Eli Zaretskii
2010-04-24 21:21 ` Joel Brobecker
2010-04-25 13:40 ` Eli Zaretskii [this message]
2010-04-25 14:43 ` Joel Brobecker
2010-04-25 15:10 ` Eli Zaretskii
2010-04-26 16:24 ` Tom Tromey
2010-04-26 17:45 ` Eli Zaretskii
2010-04-26 17:51 ` Paul Koning
2010-04-26 19:46 ` Tom Tromey
2010-04-26 20:17 ` Eli Zaretskii
2010-04-27 3:11 ` Tom Tromey
2010-04-27 17:04 ` Eli Zaretskii
2010-04-27 17:25 ` Tom Tromey
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=83y6gbzm4e.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=brobecker@adacore.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