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: [RFA v2] (Ada) Fix frame argument printing when using auto language mode


> Patch is good to me, some comments below,
> 
> > +extern const struct language_defn ada_language_defn;
> > +
> >  static int print_field_values (struct type *, const gdb_byte *,
> >  			       int,
> >  			       struct ui_file *, int,
> > @@ -1208,7 +1210,7 @@ ada_val_print (struct type *type,
> >      {
> >        ada_val_print_1 (type, embedded_offset, address,
> >  		       stream, recurse, val, options,
> > -		       current_language);
> > +		       &ada_language_defn);
> 
> or we can use "language_def (language_ada)", so that we don't need to
> declare ada_language_defn above.

I would prefer this as well - to remain consistent with what we do
elsewhere.

-- 
Joel


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