This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
Re: print_symbol_info patch for source code not current language
> >> 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.)