aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/stack.c4
-rw-r--r--gdb/testsuite/gdb.python/pretty-print-call-by-hand.exp8
2 files changed, 12 insertions, 0 deletions
diff --git a/gdb/stack.c b/gdb/stack.c
index 653251c..4e2342c 100644
--- a/gdb/stack.c
+++ b/gdb/stack.c
@@ -1679,8 +1679,12 @@ info_frame_command_core (frame_info_ptr fi, bool selected_frame_p)
else
gdb_printf (" %d args: ", numargs);
}
+
+ fi.prepare_reinflate ();
print_frame_args (user_frame_print_options,
func, fi, numargs, gdb_stdout);
+ fi.reinflate ();
+
gdb_puts ("\n");
}
}
diff --git a/gdb/testsuite/gdb.python/pretty-print-call-by-hand.exp b/gdb/testsuite/gdb.python/pretty-print-call-by-hand.exp
index 0aeb221..eb3fc9e 100644
--- a/gdb/testsuite/gdb.python/pretty-print-call-by-hand.exp
+++ b/gdb/testsuite/gdb.python/pretty-print-call-by-hand.exp
@@ -98,6 +98,14 @@ with_test_prefix "frame print" {
"backtrace test"
}
}
+
+# Test the "info frame" command
+with_test_prefix "info frame" {
+ if { [start_test "TAG: first frame"] == 0 } {
+ gdb_test "info frame" "mytype is $hex \"hello world\".*"
+ }
+}
+
# Testing the down command.
with_test_prefix "frame movement down" {
if { [start_test "TAG: first frame"] == 0 } {