diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2022-12-13 22:34:40 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2023-01-20 14:48:57 -0500 |
commit | 93e39555dd0fcd222ce68fc7162f511056361bc7 (patch) | |
tree | 11604e05f1a65f4bff113336188c71dd59ae1cef /gdb/stack.c | |
parent | 836a8d3710462596bb4184617999a9507adc3629 (diff) | |
download | fsf-binutils-gdb-93e39555dd0fcd222ce68fc7162f511056361bc7.zip fsf-binutils-gdb-93e39555dd0fcd222ce68fc7162f511056361bc7.tar.gz fsf-binutils-gdb-93e39555dd0fcd222ce68fc7162f511056361bc7.tar.bz2 |
gdb: make frame_info_ptr grab frame level and id on construction
This is the first step of making frame_info_ptr automatic. Remove the
frame_info_ptr::prepare_reinflate method, move that code to the
constructor.
Change-Id: I85cdae3ab1c043c70e2702e7fb38e9a4a8a675d8
Reviewed-By: Bruno Larsen <blarsen@redhat.com>
Diffstat (limited to 'gdb/stack.c')
-rw-r--r-- | gdb/stack.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/gdb/stack.c b/gdb/stack.c index 0fd7978..4250383 100644 --- a/gdb/stack.c +++ b/gdb/stack.c @@ -362,7 +362,6 @@ print_stack_frame (frame_info_ptr frame, int print_level, if (current_uiout->is_mi_like_p ()) print_what = LOC_AND_ADDRESS; - frame.prepare_reinflate (); try { print_frame_info (user_frame_print_options, @@ -744,11 +743,6 @@ print_frame_args (const frame_print_options &fp_opts, = (print_names && fp_opts.print_frame_arguments != print_frame_arguments_none); - /* If one of the arguments has a pretty printer that calls a - function of the inferior to print it, the pointer must be - reinflatable. */ - frame.prepare_reinflate (); - /* Temporarily change the selected frame to the given FRAME. This allows routines that rely on the selected frame instead of being given a frame as parameter to use the correct frame. */ @@ -1047,8 +1041,6 @@ print_frame_info (const frame_print_options &fp_opts, int location_print; struct ui_out *uiout = current_uiout; - frame.prepare_reinflate (); - if (!current_uiout->is_mi_like_p () && fp_opts.print_frame_info != print_frame_info_auto) { @@ -1682,7 +1674,6 @@ info_frame_command_core (frame_info_ptr fi, bool selected_frame_p) gdb_printf (" %d args: ", numargs); } - fi.prepare_reinflate (); print_frame_args (user_frame_print_options, func, fi, numargs, gdb_stdout); fi.reinflate (); @@ -2075,7 +2066,6 @@ backtrace_command_1 (const frame_print_options &fp_opts, for (fi = trailing; fi && count--; fi = get_prev_frame (fi)) { QUIT; - fi.prepare_reinflate (); /* Don't use print_stack_frame; if an error() occurs it probably means further attempts to backtrace would fail (on the other |