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: [Patch] Use "<unknown>" instead of NULL when a symbol isn't found


>>>>> "Sterling" == Sterling Augustine <saugustine@google.com> writes:

Sterling> Although the case is hard to tickle--I only found it myself with an
Sterling> object file with an erroneous line table entry--GDB shouldn't crash,
Sterling> and recovery is quite straight-forward.

I wonder whether some correction or workaround is required elsewhere.

Sterling> The following patch simply assigns the symbol name as "<unknown>"
Sterling> instead of NULL, allowing the debugger to make forward progress in the
Sterling> face of an erroneous debug line table entry.

You didn't say whether you regression-tested this; but assuming so, it
is ok.

Tom


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