This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: macros, debug information, and parse_macro_definition
- From: Kevin Buettner <kevinb at redhat dot com>
- To: David Taylor <dtaylor at emc dot com>, gdb at sources dot redhat dot com
- Date: Tue, 22 Apr 2003 13:06:14 -0700
- Subject: Re: macros, debug information, and parse_macro_definition
- References: <200304221640.h3MGelj05733@mailhub.lss.emc.com>
On Apr 22, 12:40pm, David Taylor wrote:
> As a result, at some point I will need to call a function which will
> either be identical to or 99% identical to parse_macro_definition.
> So, I'd like to propose that the function parse_macro_definition be
> made non static and that it and its support functions (copy_string,
> dwarf2_macro_malformed_definition_complaint, consume_improper_spaces
> -- all three of which are called *ONLY* by parse_macro_defintion) be
> moved to another file -- since they are not DWARF specific anymore.
>
> Any objections? File name?
No objections from me...
> My inclination is to move them to macrotab.c since the function
> parse_macro_defintion calls functions within that file and can be
> thought of as a thin veneer above the functions macro_define_object
> and macro_define_function.
>
> Comments?
Sounds reasonable to me.
Kevin