This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] Enhance stabs reader to better deal with forward references
- From: Daniel Jacobowitz <drow at false dot org>
- To: Joel Brobecker <brobecker at adacore dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Tue, 27 Mar 2007 12:29:47 -0400
- Subject: Re: [RFA] Enhance stabs reader to better deal with forward references
- References: <20070209194107.GA3365@adacore.com> <20070227165003.GB31729@caradoc.them.org> <20070228201201.GH13140@adacore.com>
On Wed, Feb 28, 2007 at 12:12:01PM -0800, Joel Brobecker wrote:
> 2007-02-08 Joel Brobecker <brobecker@adacore.com>
>
> * stabsread.c (add_undefined_type): Add extra parameter.
> Now handles nameless types separately.
> (struct nat): New type.
> (noname_undefs, noname_undefs_allocated, noname_undefs_length):
> New static variables.
> (read_type): Update calls to add_undefined_type.
> (add_undefined_type_noname): New function.
> (add_undefined_type_1): Renames from add_undefined_type.
> (cleanup_undefined_types_noname): New function.
> (cleanup_undefined_types_1): Renames cleanup_undefined_types.
> (cleanup_undefined_types): New handles nameless types separately.
> (_initialize_stabsread): Initialize our new static constants.
>
> The following patch has been tested on x86-linux with -gstabs+.
> OK to apply?
This is OK.
> +/* Make a list of nameless type that are undefined.
"types"
> + In practice, we actually maintain two such list: The first list
"lists"
--
Daniel Jacobowitz
CodeSourcery