This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] Nullified garbage-collected global variables
- From: Tom Tromey <tromey at redhat dot com>
- To: Jerome Guitton <guitton at adacore dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Tue, 13 Jul 2010 10:27:44 -0600
- Subject: Re: [RFA] Nullified garbage-collected global variables
- References: <1278948088-15391-1-git-send-email-guitton@adacore.com>
>>>>> "Jerome" == Jerome Guitton <guitton@adacore.com> writes:
Jerome> * dwarf2read.c (add_partial_symbol): Do not add a global variable if
Jerome> its adress is null. Add comment to explain why.
I am not totally sure about this. The patch itself looks reasonable,
but I have a couple of questions.
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?
What about has_section_at_zero?
Tom