summaryrefslogtreecommitdiff
path: root/gdb/frame-base.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2022-07-25 14:06:34 -0300
committerBruno Larsen <blarsen@redhat.com>2022-10-10 11:57:10 +0200
commitba380b3e5162e89c4c81a73f4fb9fcbbbbe75e24 (patch)
treef04bfa9e20db390811ba51e4a38a47655596c1f6 /gdb/frame-base.c
parenta0cbd6505e9590baddd27d2ce603103d6e77421a (diff)
downloadbinutils-gdb-ba380b3e5162e89c4c81a73f4fb9fcbbbbe75e24.tar.gz
Introduce frame_info_ptr smart pointer class
This adds frame_info_ptr, a smart pointer class. Every instance of the class is kept on an intrusive list. When reinit_frame_cache is called, the list is traversed and all the pointers are invalidated. This should help catch the typical GDB bug of keeping a frame_info pointer alive where a frame ID was needed instead. Co-Authored-By: Bruno Larsen <blarsen@redhat.com> Approved-by: Tom Tomey <tom@tromey.com>
Diffstat (limited to 'gdb/frame-base.c')
0 files changed, 0 insertions, 0 deletions