This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA] Avoid segfault in decode_line_2
Elena Zannoni told me that:
Elena Zannoni writes:
> Michal Ludvig writes:
> > Hi all,
> > this patch fixes a problem that I met while debugging a testsuite
> > failure on amd64:
>
> Yes, but, could you change this to use an if (values.sals[i].symtab)
> before the printf_filtered and avoid the conditional expression? You
> will end up getting rid of the if() for the No symtab?.. case as well,
> since that can be folded into a single printf.
>
> elena
I checked in the following:
2003-07-23 Michal Ludvig <mludvig@suse.cz>
Elena Zannoni <ezannoni@redhat.com>
* linespec.c (decode_line_2): Avoid crash if
find_function_start_sal() returns empty record.
Thanks!
(And sorry, I forgot to do it... :-)
Michal Ludvig
--
* SuSE CR, s.r.o * mludvig@suse.cz
* (+420) 296.545.373 * http://www.suse.cz