This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: "set foo"
- From: Eli Zaretskii <eliz at gnu dot org>
- To: Joel Brobecker <brobecker at adacore dot com>
- Cc: gdb at sourceware dot org
- Date: Sun, 25 Apr 2010 16:40:17 +0300
- Subject: Re: "set foo"
- References: <8339yk1skw.fsf@gnu.org> <20100424212118.GW13204@adacore.com>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> 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?