From: Yao Qi <qiyaoltc@gmail.com>
To: gdb-patches@sourceware.org
Subject: [PATCH 00/13] Change gdbarch software_single_step frame_info to regcache
Date: Mon, 14 Nov 2016 17:43:00 -0000 [thread overview]
Message-ID: <1479145370-11432-1-git-send-email-yao.qi@linaro.org> (raw)
Hi,
We use regcache for arm software single step after we shared arm
software single step code in both GDB and GDBserver. This patch series
converts the rest arches to using regcache instead of frame_info,
because we always do single step in innermost frame, which is
equivalent to regcache.
Patch #1 adds regcache_raw_get_signed, which is used the in following
patches as an replacement to get_frame_register_signed. The following
11 patches convert each arch one by one to using regcache. Each patch
does the following changes,
- use current regcache, and stop using frame,
- replace get_frame_register_{un,}signed with regcache_raw_get_{un,}signed,
- get gdbarch from get_regcache_arch instead of get_frame_arch,
- get pc from regcache_read_pc instead of get_frame_pc,
- still current frame some places in order to get the next pc of syscall,
The last patch change the software_single_step interface finally.
Regression tested on x86_64-linux and ppc64-linux. If people want to test
on their own arch, just need to apply patch #1, patch for the arch, and
the last one.
*** BLURB HERE ***
Yao Qi (13):
New regcache_raw_get_signed
gdbarch software_single_step frame_info to regcache: aarch64
gdbarch software_single_step frame_info to regcache: alpha
gdbarch software_single_step frame_info to regcache: cris
gdbarch software_single_step frame_info to regcache: mips
gdbarch software_single_step frame_info to regcache: moxie
gdbarch software_single_step frame_info to regcache: nios2
gdbarch software_single_step frame_info to regcache: sparc
gdbarch software_single_step frame_info to regcache: s390
gdbarch software_single_step frame_info to regcache: rs6000
gdbarch software_single_step frame_info to regcache: tic6x
gdbarch software_single_step frame_info to regcache: spu
Change gdbarch software_single_step frame_info to regcache
gdb/aarch64-tdep.c | 6 +--
gdb/alpha-tdep.c | 22 ++++----
gdb/alpha-tdep.h | 2 +-
gdb/arm-linux-tdep.c | 3 +-
gdb/arm-tdep.c | 3 +-
gdb/arm-tdep.h | 2 +-
gdb/breakpoint.c | 5 +-
gdb/cris-tdep.c | 14 ++---
gdb/gdbarch.c | 4 +-
gdb/gdbarch.h | 4 +-
gdb/gdbarch.sh | 2 +-
gdb/mips-tdep.c | 141 +++++++++++++++++++++++++-------------------------
gdb/mips-tdep.h | 2 +-
gdb/moxie-tdep.c | 7 ++-
gdb/nios2-tdep.c | 26 +++++-----
gdb/ppc-tdep.h | 2 +-
gdb/regcache.c | 13 +++++
gdb/regcache.h | 3 ++
gdb/rs6000-aix-tdep.c | 35 +++++++------
gdb/rs6000-tdep.c | 7 ++-
gdb/s390-linux-tdep.c | 7 ++-
gdb/sparc-tdep.c | 18 ++++---
gdb/spu-tdep.c | 10 ++--
gdb/tic6x-tdep.c | 24 ++++-----
24 files changed, 190 insertions(+), 172 deletions(-)
--
1.9.1
next reply other threads:[~2016-11-14 17:43 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-14 17:43 Yao Qi [this message]
2016-11-14 17:43 ` [PATCH 04/13] gdbarch software_single_step frame_info to regcache: cris Yao Qi
2016-11-14 17:43 ` [PATCH 02/13] gdbarch software_single_step frame_info to regcache: aarch64 Yao Qi
2016-11-14 17:43 ` [PATCH 10/13] gdbarch software_single_step frame_info to regcache: rs6000 Yao Qi
2016-11-14 17:43 ` [PATCH 03/13] gdbarch software_single_step frame_info to regcache: alpha Yao Qi
2016-11-14 17:43 ` [PATCH 05/13] gdbarch software_single_step frame_info to regcache: mips Yao Qi
2016-11-14 17:43 ` [PATCH 08/13] gdbarch software_single_step frame_info to regcache: sparc Yao Qi
2016-11-14 17:43 ` [PATCH 12/13] gdbarch software_single_step frame_info to regcache: spu Yao Qi
2016-11-14 17:43 ` [PATCH 13/13] Change gdbarch software_single_step frame_info to regcache Yao Qi
2016-11-16 16:17 ` Luis Machado
2016-11-14 17:43 ` [PATCH 09/13] gdbarch software_single_step frame_info to regcache: s390 Yao Qi
2016-11-14 17:43 ` [PATCH 01/13] New regcache_raw_get_signed Yao Qi
2016-11-16 15:09 ` Luis Machado
2016-11-22 9:28 ` Yao Qi
[not found] ` <36110d4e-9c80-23cb-ee40-849fb155af53@codesourcery.com>
2016-11-22 14:33 ` Yao Qi
2016-11-14 17:43 ` [PATCH 11/13] gdbarch software_single_step frame_info to regcache: tic6x Yao Qi
2016-11-14 17:43 ` [PATCH 06/13] gdbarch software_single_step frame_info to regcache: moxie Yao Qi
2016-11-14 17:43 ` [PATCH 07/13] gdbarch software_single_step frame_info to regcache: nios2 Yao Qi
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=1479145370-11432-1-git-send-email-yao.qi@linaro.org \
--to=qiyaoltc@gmail.com \
--cc=gdb-patches@sourceware.org \
/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