From: Eli Zaretskii <eliz@gnu.org>
To: Andrew STUBBS <andrew.stubbs@st.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [PATCH] keep-variable command
Date: Wed, 16 Nov 2005 20:26:00 -0000 [thread overview]
Message-ID: <u7jb873tj.fsf@gnu.org> (raw)
In-Reply-To: <437B44E1.8090008@st.com> (message from Andrew STUBBS on Wed, 16 Nov 2005 14:40:33 +0000)
> Date: Wed, 16 Nov 2005 14:40:33 +0000
> From: Andrew STUBBS <andrew.stubbs@st.com>
>
> +@value{GDBN} commands that wipe the symbol table, such as @samp{file} and
> +@samp{symbol-file}, cause all convenience variables to be deleted - their
^^^
Please use "---" (3 dashes in a row) to produce a dash (as opposed to
the minus sign).
> +types are lost so their value would become meaningless. This can be avoided
> +using the @samp{keep-variable} command below.
It's possible this is something I never knew about: is it actually
correct that _all_ convenience variables are deleted when `file' is
used? The explanation above about their types being lost doesn't make
sense to me; can you explain? For example, if I define a variable
that holds an integer number, why would its type become meaningless?
> +The next time the variable is accessed (by whatever means) @value{GDBN} will
> +attempt to find a type, in the current symbol table, with the same name as
> +the type used previously. It does not check whether the new type is in any
> +way compatible with the old type.
> +
> +If a suitable type does not exist (at the time the variable is accessed) then
> +@value{GDBN} will print a message and reset the value to @code{void}.
> +
> +If the symbol table is destroyed and recreated multiple times, the content
> +of the intermediate tables has no effect, @emph{provided that the variable
> +is not accessed while they are loaded}.
Does this description assume that convenience variables point, or are
somehow related, to the symbol table? If so, why does this assumption
hold for every convenience variable? I can think of a convenience
variable that has no relation whatsoever to the symbol table; how does
such a variable fit into the above scheme?
next prev parent reply other threads:[~2005-11-16 20:09 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-16 15:54 Andrew STUBBS
2005-11-16 20:26 ` Eli Zaretskii [this message]
2005-11-17 1:07 ` Jim Blandy
2005-11-17 9:56 ` Daniel Jacobowitz
2005-11-17 15:07 ` Andrew STUBBS
2005-11-17 12:42 ` Andrew STUBBS
2005-11-17 12:26 ` Andrew STUBBS
2005-11-17 19:33 ` Eli Zaretskii
2005-11-17 19:36 ` Daniel Jacobowitz
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=u7jb873tj.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=andrew.stubbs@st.com \
--cc=gdb-patches@sources.redhat.com \
/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