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
At 10:16 01/11/99 -0500, Jim Blandy wrote:
>
>> >> 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.)
easy (its a fake one !)
static int test(int a;double c);
would give
if pascal is current laguage in auto mode
static int test(a : longint;c : double);
The function syntax is C but thesyntax of args is the pascal one !!
I really tried first your proposal and as I did not like
the result above I changed the method to what I sent you !