Display referenced values in backtraces.
	* printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
	* stack.c (print_frame_arg): Likewise.
This commit is contained in:
Jan Kratochvil 2011-10-09 19:38:29 +00:00
parent ac71a68c85
commit 3343315ba7
3 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
Display referenced values in backtraces.
* printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
* stack.c (print_frame_arg): Likewise.
2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
Make some lval_funcs methods to default on NULL.

View File

@ -1976,6 +1976,7 @@ print_variable_and_value (const char *name, struct symbol *var,
val = read_var_value (var, frame);
get_user_print_options (&opts);
opts.deref_ref = 1;
common_val_print (val, stream, indent, &opts, current_language);
}
if (except.reason < 0)

View File

@ -261,7 +261,7 @@ print_frame_arg (const struct frame_arg *arg)
language = current_language;
get_raw_print_options (&opts);
opts.deref_ref = 0;
opts.deref_ref = 1;
/* True in "summary" mode, false otherwise. */
opts.summary = !strcmp (print_frame_arguments, "scalars");