This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA] Enhance stabs reader to better deal with forward references


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]