This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [Patch] Use "<unknown>" instead of NULL when a symbol isn't found
- From: Tom Tromey <tromey at redhat dot com>
- To: Sterling Augustine <saugustine at google dot com>
- Cc: gdb-patches <gdb-patches at sourceware dot org>, Keith Seitz <keiths at redhat dot com>
- Date: Mon, 06 Jan 2014 13:19:10 -0700
- Subject: Re: [Patch] Use "<unknown>" instead of NULL when a symbol isn't found
- Authentication-results: sourceware.org; auth=none
- References: <CAEG7qUxE2eiqv0nGe6=UJ9NpsgCAf0WtG2VPtiJpczaWatxwmg at mail dot gmail dot com> <87haa3ie0r dot fsf at fleche dot redhat dot com> <CAEG7qUzqKpfakRh+5rD_4B+HDajdhRxsLqgxz5C=UyDGyLoOHA at mail dot gmail dot com>
>>>>> "Sterling" == Sterling Augustine <saugustine@google.com> writes:
Tom> I wonder whether some correction or workaround is required elsewhere.
Sterling> There are various parts of linepec.c that assume that this field is
Sterling> never null, either by assertion or by dereferencing it. Any other
Sterling> workaround (at least for the case I'm dealing with) would probably
Sterling> just print an error message.
Yeah, I meant more whether the symbol-reading code should try to
diagnose and avoid broken debuginfo here.
Tom