aboutsummaryrefslogtreecommitdiff
path: root/gdb/unittests
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2022-12-13 22:34:40 -0500
committerSimon Marchi <simon.marchi@efficios.com>2023-01-20 14:48:57 -0500
commit93e39555dd0fcd222ce68fc7162f511056361bc7 (patch)
tree11604e05f1a65f4bff113336188c71dd59ae1cef /gdb/unittests
parent836a8d3710462596bb4184617999a9507adc3629 (diff)
downloadgdb-93e39555dd0fcd222ce68fc7162f511056361bc7.zip
gdb-93e39555dd0fcd222ce68fc7162f511056361bc7.tar.gz
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/unittests')
-rw-r--r--gdb/unittests/frame_info_ptr-selftests.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/gdb/unittests/frame_info_ptr-selftests.c b/gdb/unittests/frame_info_ptr-selftests.c
index edf1b9f..4730611 100644
--- a/gdb/unittests/frame_info_ptr-selftests.c
+++ b/gdb/unittests/frame_info_ptr-selftests.c
@@ -40,7 +40,6 @@ user_created_frame_callee (frame_info_ptr frame)
{
validate_user_created_frame (get_frame_id (frame));
- frame.prepare_reinflate ();
reinit_frame_cache ();
frame.reinflate ();
@@ -61,7 +60,6 @@ test_user_created_frame ()
/* Pass the frame to a callee, which calls reinit_frame_cache. This lets us
validate that the reinflation in both the callee and caller restore the
same frame_info object. */
- frame.prepare_reinflate ();
frame_info_ptr callees_frame_info = user_created_frame_callee (frame);
frame.reinflate ();