This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: recursive bug in dwarf2read.c
- From: Tom Tromey <tromey at redhat dot com>
- To: Gaius Mulley <gaius at glam dot ac dot uk>
- Cc: gdb-patches at sourceware dot org, drow at false dot org
- Date: Fri, 11 Dec 2009 12:29:03 -0700
- Subject: Re: recursive bug in dwarf2read.c
- References: <878wdcto0t.fsf@j228-gm.comp.glam.ac.uk> <20091209185157.GA29691@caradoc.them.org> <87pr6mliuh.fsf@j228-gm.comp.glam.ac.uk>
- Reply-to: tromey at redhat dot com
>>>>> "Gaius" == Gaius Mulley <gaius@glam.ac.uk> writes:
Gaius> 2009-12-10 Gaius Mulley <gaius@glam.ac.uk>
Gaius> * dwarf2read.c (read_subroutine_type): Add the subroutine
Gaius> type to the die immediately to allow a parameter type to be
Gaius> the same subroutine type.
This seems almost ok to me.
With this change, read_subroutine_type calls set_die_type twice.
I think it would be preferable to eliminate the second call.
Tom