Crash of Archer's gdb on mingw (passing null argument to vasprintf)

Joost van der Sluis joost@cnoc.nl
Mon Oct 3 16:17:00 GMT 2011


On Mon, 2011-10-03 at 07:59 -0700, Joel Brobecker wrote:
> > In gdbtypes.c there's this code:
> > 
> >     warning (_("Range for type %s has invalid bounds %s..%s"),
> >             TYPE_NAME (type), plongest (TYPE_LOW_BOUND (range_type)),
> >             plongest (TYPE_HIGH_BOUND (range_type)));
> > 
> > This goes wrong when TYPE_NAME (type) is null.
> 
> We should several example of us handling this type of situation.
> Typically we use:
> 
>         TYPE_NAME (type) ? TYPE_NAME (type) : "<anonymous>"

I've found the TYPE_ERROR_NAME macro. Now another question: how do I
send a patch for inclusion in gdb? Can I send it to this list? Or
gdb-patches?

btw: patch is attached. First part will only apply to Archer though. (My
guess is the archer-jankratochvil-vla branch)

Regards,

Joost van der Slui
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TYPE_NAME_fix.diff
Type: text/x-patch
Size: 998 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb/attachments/20111003/302c260a/attachment.bin>


More information about the Gdb mailing list