Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* "set foo"
@ 2010-04-24 20:52 Eli Zaretskii
  2010-04-24 21:21 ` Joel Brobecker
  0 siblings, 1 reply; 13+ messages in thread
From: Eli Zaretskii @ 2010-04-24 20:52 UTC (permalink / raw)
  To: gdb

I had a problem today whereby GDB did not recognize a certain struct
when processing a .gdbinit file.  Trying to understand what's going
on, I noticed that after stepping through the program for a while, the
struct became known at some point.

I assume that this is because of delayed reading of the symbol tables,
but my question is about something else.  I noticed that the .gdbinit
file supplied with Emacs has this line at its beginning:

  set main

A comment there says that this is so some variables from the binary
are available when .gdbinit is processed.  I understand that this
command somehow manages to force GDB to read the relevant portions of
the symbol tables, but what I don't understand is what is the
semantics of saying "set foo" in GDB where foo is some function.  What
does this command do, exactly?

TIA


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2010-04-27 17:25 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-24 20:52 "set foo" Eli Zaretskii
2010-04-24 21:21 ` Joel Brobecker
2010-04-25 13:40   ` Eli Zaretskii
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox