This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: STABS API..
Justin McCann <jneilm@yahoo.com> writes:
> Since those debug_variable functions didn't already
> exist in the debug.[ch] interface, that makes me think
> that I'm looking in the wrong place for the variable
> info. I looked at using the asymbol struct directly,
> but it wasn't clear how to map the asymbol->value to
> what I need. Do you think adding the debug_variable
> functions to debug.h makes sense?
>
> It seems like for several of the debug_XXX types in
> debug.c, either the types aren't exported (i.e. aren't
> in debug.h), and/or they only have 'make' and 'write'
> functions available externally, if at all. Is there a
> design reason for that, or is adding in the accessor
> functions to the debug.h interface Just Fine(tm)?
I think adding more accessor functions to debug.h makes sense. The
current set of functions was designed for translating debug
information from one format to another, including printing out debug
information. I would expect more functions to be needed for any other
type of analysis.
Ian