aboutsummaryrefslogtreecommitdiff
path: root/gdb/printcmd.c
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2011-10-09 19:38:29 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2011-10-09 19:38:29 +0000
commit3343315ba7c882c948decb9aaad83e4c048a4527 (patch)
tree54e12bbc8c37bdd18edf5c7d9e8edd7bba55aaa5 /gdb/printcmd.c
parentac71a68c85a70ebe474e39ef64773112f6474514 (diff)
downloadgdb-3343315ba7c882c948decb9aaad83e4c048a4527.zip
gdb-3343315ba7c882c948decb9aaad83e4c048a4527.tar.gz
gdb-3343315ba7c882c948decb9aaad83e4c048a4527.tar.bz2
gdb/
Display referenced values in backtraces. * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1. * stack.c (print_frame_arg): Likewise.
Diffstat (limited to 'gdb/printcmd.c')
-rw-r--r--gdb/printcmd.c1
1 files changed, 1 insertions, 0 deletions
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)