This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: "set foo"


> 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?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]