[Bug remote/23038] gdb closes remote connection when encountering invalid debuginfo during initial connect

tromey at sourceware dot org sourceware-bugzilla@sourceware.org
Tue Apr 10 14:36:00 GMT 2018


https://sourceware.org/bugzilla/show_bug.cgi?id=23038

Tom Tromey <tromey at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tromey at sourceware dot org

--- Comment #1 from Tom Tromey <tromey at sourceware dot org> ---
It seems to me that two things are appropriate here.

First, psymtab_to_symtab should catch exceptions, log a message,
and then return NULL.

Second, dwarf2read should probably catch exceptions in more spots
and issue complaints.  For example, in this case, it would seem
appropriate to simply abandon the failing enum, maybe replacing
it with an error type.  The idea behind this would be to recover
more gracefully from local errors, rather than assuming that
the debuginfo is entirely bad.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Gdb-prs mailing list