[0/2] Fix gdb.base/frame-view.exp on AArch64

Message ID 20230130200249.131155-1-simon.marchi@efficios.com
Headers
Series Fix gdb.base/frame-view.exp on AArch64 |

Message

Simon Marchi Jan. 30, 2023, 8:02 p.m. UTC
  As reported here:

  https://inbox.sourceware.org/gdb-patches/df23963e-1072-90bc-dce4-af68eae2422a@polymtl.ca/T/#m56264871060c1a86f2a93e9f56d6a78c546045ae

... the test gdb.base/frame-view.exp fails on AArch64.  The failure
exposes some conceptual flaw with sentinal frames of user-created
frames.  This series (mostly patch #2) tries to fix it.

Simon Marchi (2):
  gdb: call frame unwinders' dealloc_cache methods through destroying
    the frame cache
  gdb: give sentinel for user frames distinct IDs, register sentinel
    frames to the frame cache

 gdb/frame-id.h       |  10 +++--
 gdb/frame.c          | 102 +++++++++++++++++++++++++++++++------------
 gdb/frame.h          |  10 +++++
 gdb/sentinel-frame.c |   5 ++-
 4 files changed, 94 insertions(+), 33 deletions(-)