print_symbol_info patch for source code not current language

Jim Blandy jimb@cygnus.com
Mon Nov 1 07:17:00 GMT 1999


> >> However, saving, setting, and restoring the current language is
> >> somewhat messy.  Note that the definition of type_print just calls
> >> LA_PRINT_TYPE, which calls current_language->la_print_type.  Your code
> >> could simply determine the appropriate language, L, and then call
> >> L->la_print_type directly, instead of print_type.
> >
> >Sounds like a good idea.
> 
> That was my first try but its not a good solution because then you
> get the args output in current_language different from the function
> layout itself !!!

I'm sorry, I don't understand what you mean.  Could you show me an
example?  (A fake example is okay; I just want to see what you're
talking about.)


More information about the Gdb-patches mailing list