From: Jerome Guitton <guitton@adacore.com>
To: Tom Tromey <tromey@redhat.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [RFA] Nullified garbage-collected global variables
Date: Thu, 15 Jul 2010 09:22:00 -0000 [thread overview]
Message-ID: <20100715092204.GH14704@adacore.com> (raw)
In-Reply-To: <m3y6dftkhr.fsf@fleche.redhat.com>
Tom Tromey (tromey@redhat.com):
> Do you need to apply the same treatment to full symbols? What happens
> if the psymtab is expanded for some other reason and a full symbol of
> this sort is then created? Or is that already impossible?
Well, that sounded unlikely; then I double-checked, and experimental
results rejected my assumption. e.g. my example without --readnow:
(gdb) p my_global_symbol
No symbol "my_global_symbol" in current context.
and with --readnow:
(gdb) p my_global_symbol
Cannot access memory at address 0x0
Thank you for catching that. I'll fix my patch.
> What about has_section_at_zero?
Right, it's worth protecting us against this case as well (as we do for
elminated functions). I'll add a guard.
Thank you for the review,
Jerome
next prev parent reply other threads:[~2010-07-15 9:22 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-12 15:22 Jerome Guitton
2010-07-13 16:28 ` Tom Tromey
2010-07-15 9:22 ` Jerome Guitton [this message]
2010-07-20 15:44 ` Jerome Guitton
2010-07-20 15:42 ` Jerome Guitton
2010-07-20 18:46 ` Tom Tromey
2010-07-21 13:30 ` Jerome Guitton
2010-07-23 22:50 ` Tom Tromey
2010-07-26 9:33 ` Jerome Guitton
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=20100715092204.GH14704@adacore.com \
--to=guitton@adacore.com \
--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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).