diff options
author | Tom Tromey <tom@tromey.com> | 2022-07-25 14:06:34 -0300 |
---|---|---|
committer | Bruno Larsen <blarsen@redhat.com> | 2022-10-10 11:57:10 +0200 |
commit | ba380b3e5162e89c4c81a73f4fb9fcbbbbe75e24 (patch) | |
tree | f04bfa9e20db390811ba51e4a38a47655596c1f6 /gdb/frame.h | |
parent | a0cbd6505e9590baddd27d2ce603103d6e77421a (diff) | |
download | gdb-ba380b3e5162e89c4c81a73f4fb9fcbbbbe75e24.zip gdb-ba380b3e5162e89c4c81a73f4fb9fcbbbbe75e24.tar.gz gdb-ba380b3e5162e89c4c81a73f4fb9fcbbbbe75e24.tar.bz2 |
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.h')
-rw-r--r-- | gdb/frame.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/frame.h b/gdb/frame.h index 75bb3bd..9ad2599 100644 --- a/gdb/frame.h +++ b/gdb/frame.h @@ -20,6 +20,8 @@ #if !defined (FRAME_H) #define FRAME_H 1 +#include "frame-info.h" + /* The following is the intended naming schema for frame functions. It isn't 100% consistent, but it is approaching that. Frame naming schema: |