aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/printcmd.c1
-rw-r--r--gdb/stack.c2
3 files changed, 8 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index b9e971a..63e37e2 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,11 @@
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.
* valops.c (value_fetch_lazy): Check if lval_computed read method is
NULL.
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)
diff --git a/gdb/stack.c b/gdb/stack.c
index 276dd2b..397b345 100644
--- a/gdb/stack.c
+++ b/gdb/stack.c
@@ -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");