This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 0/9] Centralize unwinder api exceptions handling
- From: Yao Qi <qiyaoltc at gmail dot com>
- To: gdb-patches at sourceware dot org
- Date: Mon, 31 Jul 2017 23:21:46 +0100
- Subject: [PATCH 0/9] Centralize unwinder api exceptions handling
- Authentication-results: sourceware.org; auth=none
This patch series changes GDB to handle unwinder api exceptions in target
independent code, instead of in each unwinder. See more details on patch
#5. Patch 6 ~ 9 lifts the restrictions on each unwinder, that is, each
unwinder has to handle NOT_AVAILABLE_ERROR. Patches 1 ~ 4 are preparatory
ones. They can go in independently.
The patch series is tested on x86_64-linux and aarch64-linux. Note that
rs6000 and s390 unwinders still catch exceptions. I'll change them latter,
as I still need sometime understanding the code.
*** BLURB HERE ***
Yao Qi (9):
Move dwarf2_frame_state_reg.exp_len to union .loc
Class-fy dwarf2_frame_state
Class-fy dwarf2_frame_state_reg_info
Reset *THIS_CACHE in frame_unwind_try_unwinder in case of exception
Handle unwinding exceptions
Throw exception in dwarf2 unwinders
Throw exception in amd64 unwinders
Throw exception in i386 unwinders
Throw exception in aarch64 unwinder
gdb/aarch64-tdep.c | 48 +-------
gdb/amd64-tdep.c | 95 ++++-----------
gdb/dwarf2-frame.c | 331 +++++++++++++++++++++++------------------------------
gdb/dwarf2-frame.h | 114 ++++++++++++++----
gdb/frame-unwind.c | 7 +-
gdb/frame-unwind.h | 3 +-
gdb/frame.c | 109 +++++++++++++++---
gdb/i386-tdep.c | 111 +++++-------------
gdb/sparc-tdep.c | 2 +-
9 files changed, 390 insertions(+), 430 deletions(-)
--
1.9.1