arc: Add support for signal handlers
authorAnton Kolesov <Anton.Kolesov@synopsys.com>
Mon, 22 Aug 2016 16:39:46 +0000 (19:39 +0300)
committerShahab Vahedi <shahab@synopsys.com>
Tue, 22 Dec 2020 11:04:31 +0000 (12:04 +0100)
commitb4e3cd0440109d0a5552d3313ccbd35c8103335b
tree3db267f0f65f031b5912f6814bc7741758056024
parent6bf6909bf4987cb8b44e3c27e377c377294f0f19
arc: Add support for signal handlers

This patch adds the necessary infrastructure to handle signal frames for
ARC architecture.  It is fairly similar to what any other architecture
would have.  Linux specific parts will be in a separate patch.

v2 [1]:
- Make the logic of "arc_sigtramp_frame_sniffer ()" simpler.

[1] Tom's remark for the first version
https://sourceware.org/pipermail/gdb-patches/2020-November/173221.html

gdb/ChangeLog:

* arc-tdep.c (arc_make_sigtramp_frame_cache): New function.
(arc_sigtramp_frame_this_id): Likewise.
(arc_sigtramp_frame_prev_register): Likewise.
(arc_sigtramp_frame_sniffer): Likewise.
(arc_siftramp_frame_unwind): New global variable.
(arc_gdbarch_init): Use sigtramp capabilities.
(arc_dump_tdep): Print sigtramp fields.
* arc-tdep.h (gdbarch_tdep): Add sigtramp fields.
gdb/ChangeLog
gdb/arc-tdep.c
gdb/arc-tdep.h