[PATCH] Don't crash on dummy CUs
Doug Evans
dje@google.com
Tue Jul 21 14:44:00 GMT 2015
On Mon, Jul 20, 2015 at 6:06 AM, Yao Qi <qiyaoltc@gmail.com> wrote:
>
> Doug Evans <dje@google.com> writes:
>
> > + .text
> > +main:
> > + .4byte 0
> > +main_end:
> > +
> > + .section .debug_info
> > + .4byte .Ldebug_info_end - 1f /* Length of Compilation Unit Info */
> > +1:
> > + .2byte 0x2 /* DWARF version number */
> > + .4byte .Ldebug_abbrev0 /* Offset Into Abbrev. Section */
> > + .byte 0x4 /* Pointer Size (in bytes) */
> > +
> > + /* Nothing else, this is a dummy die. */
> > +.Ldebug_info_end:
> > +
> > + .section .debug_abbrev
> > +.Ldebug_abbrev0:
> > + .byte 0x0
>
> Hi Doug,
> Can we generate this file by dwarf assembler? I don't know much about
> dwarf2read.c, so can't give any comments useful to changes there.
>
There's no real value to using the dwarf assembler here, it's an
intentionally empty CU.
More information about the Gdb-patches
mailing list