From: Simon Marchi <simon.marchi@polymtl.ca>
To: gdb-patches@sourceware.org
Cc: Ulrich Weigand <uweigand@de.ibm.com>, Tom Tromey <tom@tromey.com>,
Simon Marchi <simon.marchi@polymtl.ca>
Subject: [PATCH v2 0/3] Read pseudo registers from frame instead of regcache
Date: Wed, 24 Oct 2018 01:43:00 -0000 [thread overview]
Message-ID: <20181024014333.14143-1-simon.marchi@polymtl.ca> (raw)
Hi,
This is a follow-up of
https://sourceware.org/ml/gdb-patches/2018-05/msg00705.html
The main changes are:
- Re-use the regcache interface to read registers from frames
- Deal with debug info that contains unwind info for pseudo registers
Simon Marchi (3):
Extract register_reader and register_readwriter interfaces from
regcache
Read pseudo registers from frame instead of regcache
Add tests for unwinding of pseudo registers
gdb/aarch64-tdep.c | 12 +-
gdb/amd64-tdep.c | 4 +-
gdb/arm-tdep.c | 12 +-
gdb/avr-tdep.c | 4 +-
gdb/bfin-tdep.c | 5 +-
gdb/dwarf2-frame.c | 12 +-
gdb/frame.c | 122 ++++++++++++-
gdb/frv-tdep.c | 7 +-
gdb/gdbarch.c | 12 +-
gdb/gdbarch.h | 12 +-
gdb/gdbarch.sh | 6 +-
gdb/h8300-tdep.c | 9 +-
gdb/hppa-tdep.c | 2 +-
gdb/i386-tdep.c | 9 +-
gdb/i386-tdep.h | 4 +-
gdb/ia64-libunwind-tdep.c | 2 +-
gdb/ia64-libunwind-tdep.h | 2 +-
gdb/ia64-tdep.c | 5 +-
gdb/m32c-tdep.c | 38 +++--
gdb/m68hc11-tdep.c | 4 +-
gdb/mep-tdep.c | 20 +--
gdb/mips-tdep.c | 4 +-
gdb/msp430-tdep.c | 4 +-
gdb/nds32-tdep.c | 4 +-
gdb/regcache.c | 118 ++++++-------
gdb/regcache.h | 161 +++++++++++-------
gdb/rl78-tdep.c | 8 +-
gdb/rs6000-tdep.c | 34 ++--
gdb/s390-tdep.c | 11 +-
gdb/sh-tdep.c | 6 +-
gdb/sparc-tdep.c | 4 +-
gdb/sparc64-tdep.c | 6 +-
gdb/spu-tdep.c | 14 +-
.../gdb.arch/aarch64-pseudo-unwind-asm.S | 78 +++++++++
.../gdb.arch/aarch64-pseudo-unwind.c | 33 ++++
.../gdb.arch/aarch64-pseudo-unwind.exp | 89 ++++++++++
.../gdb.arch/amd64-pseudo-unwind-asm.S | 63 +++++++
gdb/testsuite/gdb.arch/amd64-pseudo-unwind.c | 33 ++++
.../gdb.arch/amd64-pseudo-unwind.exp | 90 ++++++++++
.../gdb.arch/arm-pseudo-unwind-asm.S | 76 +++++++++
.../gdb.arch/arm-pseudo-unwind-legacy-asm.S | 79 +++++++++
.../gdb.arch/arm-pseudo-unwind-legacy.c | 33 ++++
.../gdb.arch/arm-pseudo-unwind-legacy.exp | 85 +++++++++
gdb/testsuite/gdb.arch/arm-pseudo-unwind.c | 33 ++++
gdb/testsuite/gdb.arch/arm-pseudo-unwind.exp | 87 ++++++++++
gdb/xtensa-tdep.c | 14 +-
46 files changed, 1209 insertions(+), 261 deletions(-)
create mode 100644 gdb/testsuite/gdb.arch/aarch64-pseudo-unwind-asm.S
create mode 100644 gdb/testsuite/gdb.arch/aarch64-pseudo-unwind.c
create mode 100644 gdb/testsuite/gdb.arch/aarch64-pseudo-unwind.exp
create mode 100644 gdb/testsuite/gdb.arch/amd64-pseudo-unwind-asm.S
create mode 100644 gdb/testsuite/gdb.arch/amd64-pseudo-unwind.c
create mode 100644 gdb/testsuite/gdb.arch/amd64-pseudo-unwind.exp
create mode 100644 gdb/testsuite/gdb.arch/arm-pseudo-unwind-asm.S
create mode 100644 gdb/testsuite/gdb.arch/arm-pseudo-unwind-legacy-asm.S
create mode 100644 gdb/testsuite/gdb.arch/arm-pseudo-unwind-legacy.c
create mode 100644 gdb/testsuite/gdb.arch/arm-pseudo-unwind-legacy.exp
create mode 100644 gdb/testsuite/gdb.arch/arm-pseudo-unwind.c
create mode 100644 gdb/testsuite/gdb.arch/arm-pseudo-unwind.exp
--
2.19.1
next reply other threads:[~2018-10-24 1:43 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-24 1:43 Simon Marchi [this message]
2018-10-24 1:43 ` [PATCH v2 3/3] Add tests for unwinding of pseudo registers Simon Marchi
2018-10-24 1:43 ` [PATCH v2 1/3] Extract register_reader and register_readwriter interfaces from regcache Simon Marchi
2019-02-08 16:47 ` John Baldwin
2019-02-09 5:24 ` Simon Marchi
2018-10-24 1:43 ` [PATCH v2 2/3] Read pseudo registers from frame instead of regcache Simon Marchi
2019-02-08 16:53 ` John Baldwin
2019-02-08 13:47 ` [PATCH v2 0/3] " Simon Marchi
2019-02-11 16:56 ` Ulrich Weigand
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20181024014333.14143-1-simon.marchi@polymtl.ca \
--to=simon.marchi@polymtl.ca \
--cc=gdb-patches@sourceware.org \
--cc=tom@tromey.com \
--cc=uweigand@de.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).