This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[patch 09/12] entryval#2: Display referenced values in backtraces
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Tue, 13 Sep 2011 21:49:54 +0200
- Subject: [patch 09/12] entryval#2: Display referenced values in backtraces
Hi,
only some technical rediff:
[RFC 09/12] Display referenced values in backtraces
http://sourceware.org/ml/gdb-patches/2011-07/msg00439.html
Thanks,
Jan
gdb/
2011-09-13 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.
--- 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)
--- 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");