From: Eli Zaretskii <eliz@gnu.org>
To: gdb@sourceware.org
Subject: "set foo"
Date: Sat, 24 Apr 2010 20:52:00 -0000 [thread overview]
Message-ID: <8339yk1skw.fsf@gnu.org> (raw)
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
next reply other threads:[~2010-04-24 20:52 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-24 20:52 Eli Zaretskii [this message]
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
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=8339yk1skw.fsf@gnu.org \
--to=eliz@gnu.org \
--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