From: Siva Chandra <sivachandra@google.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: tromey@redhat.com, dje@google.com, gdb-patches@sourceware.org
Subject: Re: [RFC - doc] Add note about the possibility of symbols getting moved across blocks
Date: Fri, 27 Apr 2012 19:42:00 -0000 [thread overview]
Message-ID: <CAGyQ6gxAdQTanyfJwYdRJuVWJnjvhKGyFGEO-mvYiKfgTBhKYA@mail.gmail.com> (raw)
In-Reply-To: <83pqatgp9k.fsf@gnu.org>
[-- Attachment #1: Type: text/plain, Size: 817 bytes --]
On Fri, Apr 27, 2012 at 9:06 PM, Eli Zaretskii <eliz@gnu.org> wrote:
> OK, thanks. Then how about the following text?
>
> A @code{gdb.Block} is iterable. The iterator returns the symbols
> (@pxref{Symbols In Python}) local to the block. Python programs
> should not assume that a specific block object will always contain a
> given symbol, since changes in @value{GDBN} features and
> infrastructure may cause symbols move across blocks in a symbol
> table.
I have modified the patch to use the exact same text as above.
2012-04-28 Siva Chandra Reddy <sivachandra@google.com>
* gdb.texinfo (Blocks In Python): Add a note saying that future
improvements to GDB and its infrastructure can move symbols
across blocks within a symbol table.
Thanks,
Siva Chandra
[-- Attachment #2: blocks_doc_patch_v2.txt --]
[-- Type: text/plain, Size: 822 bytes --]
Index: gdb.texinfo
===================================================================
RCS file: /cvs/src/src/gdb/doc/gdb.texinfo,v
retrieving revision 1.950
diff -u -p -r1.950 gdb.texinfo
--- gdb.texinfo 25 Apr 2012 16:13:17 -0000 1.950
+++ gdb.texinfo 27 Apr 2012 19:20:13 -0000
@@ -24580,7 +24580,11 @@ detailed technical information on @value
stack.
A @code{gdb.Block} is iterable. The iterator returns the symbols
-(@pxref{Symbols In Python}) local to the block.
+(@pxref{Symbols In Python}) local to the block. Python programs
+should not assume that a specific block object will always contain a
+given symbol, since changes in @value{GDBN} features and
+infrastructure may cause symbols move across blocks in a symbol
+table.
The following block-related functions are available in the @code{gdb}
module:
next prev parent reply other threads:[~2012-04-27 19:27 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-25 8:13 Siva Chandra
2012-04-25 9:02 ` Eli Zaretskii
2012-04-25 20:02 ` Tom Tromey
2012-04-25 21:02 ` Eli Zaretskii
2012-04-26 14:04 ` Tom Tromey
2012-04-26 14:17 ` Eli Zaretskii
2012-04-27 13:15 ` Siva Chandra
2012-04-27 15:38 ` Eli Zaretskii
2012-04-27 16:59 ` Doug Evans
2012-04-27 17:33 ` Eli Zaretskii
2012-04-27 17:46 ` Doug Evans
2012-04-27 19:42 ` Siva Chandra [this message]
2012-04-28 7:15 ` Eli Zaretskii
2012-04-30 19:20 ` Siva Chandra
2012-05-02 17:32 ` Siva Chandra
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=CAGyQ6gxAdQTanyfJwYdRJuVWJnjvhKGyFGEO-mvYiKfgTBhKYA@mail.gmail.com \
--to=sivachandra@google.com \
--cc=dje@google.com \
--cc=eliz@gnu.org \
--cc=gdb-patches@sourceware.org \
--cc=tromey@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