summaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2023-12-20 18:18:47 +0000
committerSimon Marchi <simon.marchi@polymtl.ca>2023-12-24 09:02:08 -0500
commit6658f874cf7b521bf2ce431fcf31cc89aebc7009 (patch)
treedb8d90a77e915e56caeee6a4e01ae26f7dc451c2 /gdb
parent59b6dbff95a72896b12510309b12e431075f1e63 (diff)
gdb: don't set frame id after calling cooked_read_value
I don't think that setting the next frame id is needed there, all code paths in cooked_read_value do set it properly, AFAIK. Change-Id: Idb9d9e6f89c2c95c5ebfeec2a63fde89ed84cf3d
Diffstat (limited to 'gdb')
-rw-r--r--gdb/sentinel-frame.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/gdb/sentinel-frame.c b/gdb/sentinel-frame.c
index 3e5b9be2edf..9a9e4c29198 100644
--- a/gdb/sentinel-frame.c
+++ b/gdb/sentinel-frame.c
@@ -54,7 +54,6 @@ sentinel_frame_prev_register (frame_info_ptr this_frame,
gdb_assert (is_sentinel_frame_id (this_frame_id));
value = cache->regcache->cooked_read_value (regnum);
- VALUE_NEXT_FRAME_ID (value) = this_frame_id;
return value;
}