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


Xavier Roirand <roirand@adacore.com> writes:

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.

> +
> +gdb_test "bt" \
> +         "#1  $hex in pck\\.call_me \\(s=\"test\"\\).*" \
> +         "backtrace (auto: c)"

Don't use "tail parentheses" on the test message,
https://sourceware.org/gdb/wiki/GDBTestcaseCookbook#Do_not_use_.22tail_parentheses.22_on_test_messages

-- 
Yao (齐尧)


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