From 0366cf3f2669050b7172d383248b9f48f1e521a4 Mon Sep 17 00:00:00 2001 From: Joel Brobecker Date: Fri, 9 Nov 2007 20:38:58 +0000 Subject: [PATCH] * stack.c (print_this_frame_argument_p): Handle arguments passed by reference properly. --- gdb/ChangeLog | 5 +++++ gdb/stack.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index baa97161781..fc58c2a158a 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2007-11-09 Joel Brobecker + + * stack.c (print_this_frame_argument_p): Handle arguments passed + by reference properly. + 2007-11-09 Joel Brobecker * stack.c (print_frame_arguments_choices): New static global. diff --git a/gdb/stack.c b/gdb/stack.c index e034033b38d..220a4116f49 100644 --- a/gdb/stack.c +++ b/gdb/stack.c @@ -179,6 +179,8 @@ print_this_frame_argument_p (struct symbol *sym) print the non-scalar ones. */ type = CHECK_TYPEDEF (SYMBOL_TYPE (sym)); + while (TYPE_CODE (type) == TYPE_CODE_REF) + type = CHECK_TYPEDEF (TYPE_TARGET_TYPE (type)); switch (TYPE_CODE (type)) { case TYPE_CODE_ARRAY: -- 2.30.2