commit | ba380b3e5162e89c4c81a73f4fb9fcbbbbe75e24 | [log] [tgz] |
---|---|---|
author | Tom Tromey <tom@tromey.com> | Mon Jul 25 14:06:34 2022 -0300 |
committer | Bruno Larsen <blarsen@redhat.com> | Mon Oct 10 11:57:10 2022 +0200 |
tree | f04bfa9e20db390811ba51e4a38a47655596c1f6 | |
parent | a0cbd6505e9590baddd27d2ce603103d6e77421a [diff] |
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>