From 3343315ba7c882c948decb9aaad83e4c048a4527 Mon Sep 17 00:00:00 2001 From: Jan Kratochvil Date: Sun, 9 Oct 2011 19:38:29 +0000 Subject: gdb/ Display referenced values in backtraces. * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1. * stack.c (print_frame_arg): Likewise. --- gdb/printcmd.c | 1 + 1 file changed, 1 insertion(+) (limited to 'gdb/printcmd.c') diff --git a/gdb/printcmd.c b/gdb/printcmd.c index b09b4ea..ad6993e 100644 --- a/gdb/printcmd.c +++ b/gdb/printcmd.c @@ -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) -- cgit v1.1