This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [rfc] 'union' handling for Fortran


On Sat, Jun 09, 2007 at 02:46:25PM +0200, Markus Deuling wrote:
> This patch adds support for TYPE_CODE_UNION to Fortran backend by calling the 
> appropriate C routines c_type_print_base and
> c_val_print.
> 
> ChangeLog:
> 	* f-typeprint.c (print_equivalent_f77_float_type): Add support for
> 	TYPE_CODE_UNION.
> 	* f-valprint.c (f_val_print): Likewise.
> 
> Testsuite showed no regressions. Would this be ok to commit ?

A test would be nice.  You should be able to do one from C, using "set
language".

Is this good enough to be useful?  The syntax will be unexpected, and
I don't know if you'll be able to get at the members without changing
the parser too.

-- 
Daniel Jacobowitz
CodeSourcery


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]