Re: rawhide's gdb segfaults, w/patch

Jan Kratochvil
2009-02-11T19:46:03Z

On Mon, 02 Feb 2009 19:43:59 +0100, Tom Tromey wrote:
> >>>>> "Jan" == Jan Kratochvil <jan.kratochvil@redhat.com> writes:
>
> Jan> gdb/
> Jan> 2009-01-09 Jim Meyering <meyering@redhat.com>
> Jan> Jan Kratochvil <jan.kratochvil@redhat.com>
> Jan> Avoid NULL dereference.
> Jan> * stack.c (return_command): Guard use of SYMBOL_TYPE (thisfun).
> Jan> New variable func_type.
>
> I looked at this and I think it is ok. Please check it in. Thanks.

Checked-in (this fix, not the testcase).
http://sourceware.org/ml/gdb-cvs/2009-02/msg00069.html

> Jan> gdb/testsuite/
> Jan> 2009-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
> Jan> * gdb.base/nodebug.exp (return from function with no debug info): New.

Posted another fix + testcase which covers even the case above:
http://sourceware.org/ml/gdb-patches/2009-02/msg00243.html

Thanks,
Jan