diff options
author | Guinevere Larsen <guinevere@redhat.com> | 2024-03-14 16:14:26 +0100 |
---|---|---|
committer | Guinevere Larsen <guinevere@redhat.com> | 2025-01-17 11:49:16 -0300 |
commit | ce36ef63aa74c30016334db0f6a4638d1ffe7256 (patch) | |
tree | 930ede1f932d2cb6b5408d295994abde127efb8d /gdb/riscv-tdep.c | |
parent | 3919cf8a704138e4f2dd79c66e33a62087180f1f (diff) | |
download | gdb-ce36ef63aa74c30016334db0f6a4638d1ffe7256.zip gdb-ce36ef63aa74c30016334db0f6a4638d1ffe7256.tar.gz gdb-ce36ef63aa74c30016334db0f6a4638d1ffe7256.tar.bz2 |
gdb: add "unwinder class" to frame unwinders
A future patch will add a way to disable certain unwinders based on
different characteristics. This patch aims to make it more convenient
to disable related unwinders in bulk, such as architecture specific
ones, by identifying all unwinders by which part of the code adds it.
The classes, and explanations, are as follows:
* GDB: An internal unwinder, added by GDB core, such as the unwinder
for dummy frames;
* EXTENSION: Unwinders added by extension languages;
* DEBUGINFO: Unwinders installed by the debug info reader;
* ARCH: Unwinders installed by the architecture specific code.
Reviewed-By: Eli Zaretskii <eliz@gnu.org>
Reviewed-by: Thiago Jung Bauermann <thiago.bauermann@linaro.org>
Approved-By: Simon Marchi <simon.marchi@efficios.com>
Approved-By: Andrew Burgess <aburgess@redhat.com>
Diffstat (limited to 'gdb/riscv-tdep.c')
-rw-r--r-- | gdb/riscv-tdep.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/riscv-tdep.c b/gdb/riscv-tdep.c index 200a20a..9b1f404 100644 --- a/gdb/riscv-tdep.c +++ b/gdb/riscv-tdep.c @@ -3908,6 +3908,7 @@ static const struct frame_unwind riscv_frame_unwind = { /*.name =*/ "riscv prologue", /*.type =*/ NORMAL_FRAME, + /*.unwinder_class=*/FRAME_UNWIND_ARCH, /*.stop_reason =*/ default_frame_unwind_stop_reason, /*.this_id =*/ riscv_frame_this_id, /*.prev_register =*/ riscv_frame_prev_register, |