* stack.c (print_this_frame_argument_p): Handle arguments passed
authorJoel Brobecker <brobecker@gnat.com>
Fri, 9 Nov 2007 20:38:58 +0000 (20:38 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Fri, 9 Nov 2007 20:38:58 +0000 (20:38 +0000)
        by reference properly.

gdb/ChangeLog
gdb/stack.c

index baa97161781d75d2136f3be8952a58930e74c41a..fc58c2a158a626858a26328a15a49e914b5ac88f 100644 (file)
@@ -1,3 +1,8 @@
+2007-11-09  Joel Brobecker  <brobecker@adacore.com>
+
+       * stack.c (print_this_frame_argument_p): Handle arguments passed
+       by reference properly.
+
 2007-11-09  Joel Brobecker  <brobecker@adacore.com>
 
        * stack.c (print_frame_arguments_choices): New static global.
index e034033b38d4a400dd1e3054328e5e8db3af2706..220a4116f497c5d5707bcb96ce00dc8abfb00497 100644 (file)
@@ -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: