This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA] dbxread.c (process_one_symbol): Assert 'name' is not null.


> There's at least one path to here in which 'name' may be suspected
> of being null.
[...]
> 2011-03-04  Michael Snyder  <msnyder@msnyder-server.eng.vmware.com>
> 
> 	* dbxread.c (process_one_symbol): Assert 'name' is not null.

I'm not completely sure, and I don't look at this code much anymore
(thank the gods :-), but an assert failure rather than a SEGV sounds
like progress to me. So OK.

I did look at the code and try to reason a bit, and wondered whether
we might want to change the code to:

        if (name && name[0] == '#')

instead of adding an assert.  But that would potentially change
the behavior, so I'm even less sure.  I think we should look at that
the day we actually trigger the assertion.

-- 
Joel


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]