Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH 00/11] Displaced stepping on AArch64 GNU/Linux
@ 2015-10-07  9:26 Yao Qi
  2015-10-07  9:26 ` [PATCH 02/11] Move target_read_uint32 out of aarch64_relocate_instruction Yao Qi
                   ` (11 more replies)
  0 siblings, 12 replies; 16+ messages in thread
From: Yao Qi @ 2015-10-07  9:26 UTC (permalink / raw)
  To: gdb-patches

This patch series adds displaced stepping on aarch64-linux.  The
series refactors and reuses some aarch64 fast tracepoint instruction
relocation code in GDBserver, because both of fast tracepoint and
displaced stepping need to handle instruction relocation.

Patches #2 - #4 are about refactoring aarch64_relocate_instruction in
GDBserver in order to share it between GDB and GDBserver.  A visitor
pattern is used, and aarch64_relocate_instruction decodes instructions
and visits different instructions by different methods of visitor.
See more details in patch #4.  Patch #5 moves all visitor pattern stuff
and aarch64_relocate_instruction to arch/aarch64-insn.c, and patch #6
adds the displaced stepping support.

Patch #8 adds a new test case gdb.arch/disp-step-insn-reloc.exp which
uses insn-reloc.c too for displaced stepping.  Patch #9 and #10 add
"aarch64_" prefix to function names, as a clean up of this series.

The whole series is regression tested on aarch64-linux, both native and
gdbserver.

*** BLURB HERE ***

Yao Qi (11):
  More tests in gdb.arch/insn-reloc.c
  Move target_read_uint32 out of aarch64_relocate_instruction
  Move append_insns out of aarch64_relocate_instruction
  Use visitor in aarch64_relocate_instruction
  Move aarch64_relocate_instruction to arch/aarch64-insn.c
  Support displaced stepping in aarch64-linux
  Support displaced stepping in support_displaced_stepping for
    aarch64*-*-linux*
  New test case gdb.arch/disp-step-insn-reloc.exp
  Rename emit_insn to aarch64_emit_insn
  Rename emit_load_store to  aarch64_emit_load_store
  Mention the change in NEWS

 gdb/NEWS                                        |   2 +
 gdb/aarch64-linux-tdep.c                        |  12 +
 gdb/aarch64-tdep.c                              | 337 ++++++++++
 gdb/aarch64-tdep.h                              |  17 +
 gdb/arch/aarch64-insn.c                         | 152 +++++
 gdb/arch/aarch64-insn.h                         | 282 ++++++++
 gdb/gdbserver/linux-aarch64-low.c               | 824 ++++++++----------------
 gdb/testsuite/gdb.arch/disp-step-insn-reloc.exp |  84 +++
 gdb/testsuite/gdb.arch/insn-reloc.c             |  50 +-
 gdb/testsuite/lib/gdb.exp                       |   3 +-
 10 files changed, 1190 insertions(+), 573 deletions(-)
 create mode 100644 gdb/testsuite/gdb.arch/disp-step-insn-reloc.exp

-- 
1.9.1


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2015-10-14  8:37 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-07  9:26 [PATCH 00/11] Displaced stepping on AArch64 GNU/Linux Yao Qi
2015-10-07  9:26 ` [PATCH 02/11] Move target_read_uint32 out of aarch64_relocate_instruction Yao Qi
2015-10-07  9:26 ` [PATCH 01/11] More tests in gdb.arch/insn-reloc.c Yao Qi
2015-10-07  9:26 ` [PATCH 03/11] Move append_insns out of aarch64_relocate_instruction Yao Qi
2015-10-07  9:26 ` [PATCH 08/11] New test case gdb.arch/disp-step-insn-reloc.exp Yao Qi
2015-10-07  9:26 ` [PATCH 10/11] Rename emit_load_store to aarch64_emit_load_store Yao Qi
2015-10-07  9:26 ` [PATCH 07/11] Support displaced stepping in support_displaced_stepping for aarch64*-*-linux* Yao Qi
2015-10-07  9:27 ` [PATCH 06/11] Support displaced stepping in aarch64-linux Yao Qi
2015-10-13 20:26   ` Sergio Durigan Junior
2015-10-14  8:37     ` Yao Qi
2015-10-07  9:27 ` [PATCH 11/11] Mention the change in NEWS Yao Qi
2015-10-07 15:38   ` Eli Zaretskii
2015-10-07  9:27 ` [PATCH 04/11] Use visitor in aarch64_relocate_instruction Yao Qi
2015-10-07  9:27 ` [PATCH 09/11] Rename emit_insn to aarch64_emit_insn Yao Qi
2015-10-07  9:27 ` [PATCH 05/11] Move aarch64_relocate_instruction to arch/aarch64-insn.c Yao Qi
2015-10-12 10:35 ` [PATCH 00/11] Displaced stepping on AArch64 GNU/Linux Yao Qi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox