Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH 0/3 v2] [AArch64] Support tagged pointer
@ 2017-10-26  8:29 Yao Qi
  2017-10-26  8:30 ` [PATCH 2/3] [AArch64] Adjust breakpoint on tagged address Yao Qi
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Yao Qi @ 2017-10-26  8:29 UTC (permalink / raw)
  To: gdb-patches

ARMv8 supports tagged address, that is, the top one byte in address
is ignored.  It is always enabled on aarch64-linux.  See
https://www.kernel.org/doc/Documentation/arm64/tagged-pointers.txt

Some parts of GDB related to address are updated in this patch series,

 - Memory access, like command 'x',
 - Setting hw breakpoint on some address,
 - Setting watchpoint on some address,

Each of them is fixed in a different way.

This is the v2, and v1 can be found,
https://sourceware.org/ml/gdb-patches/2017-10/msg00593.html
A Linux kernel doc link is added in commit log, and a test case is
added.

*** BLURB HERE ***

Yao Qi (3):
  [AArch64 Linux] Get rid of top byte from tagged address on memory
    access
  [AArch64] Adjust breakpoint on tagged address
  [AArch64] Remove tag from address for watchpoint

 gdb/aarch64-linux-nat.c                           |  25 +++++
 gdb/aarch64-linux-tdep.c                          |  11 +++
 gdb/aarch64-tdep.c                                |  10 ++
 gdb/breakpoint.c                                  |   3 +-
 gdb/gdbarch.c                                     |  23 +++++
 gdb/gdbarch.h                                     |   8 ++
 gdb/gdbarch.sh                                    |   5 +
 gdb/gdbserver/linux-aarch64-low.c                 |  33 +++++++
 gdb/testsuite/gdb.arch/aarch64-tagged-pointer.c   |  58 ++++++++++++
 gdb/testsuite/gdb.arch/aarch64-tagged-pointer.exp | 106 ++++++++++++++++++++++
 10 files changed, 280 insertions(+), 2 deletions(-)
 create mode 100644 gdb/testsuite/gdb.arch/aarch64-tagged-pointer.c
 create mode 100644 gdb/testsuite/gdb.arch/aarch64-tagged-pointer.exp

-- 
1.9.1


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

end of thread, other threads:[~2017-11-09 22:25 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-26  8:29 [PATCH 0/3 v2] [AArch64] Support tagged pointer Yao Qi
2017-10-26  8:30 ` [PATCH 2/3] [AArch64] Adjust breakpoint on tagged address Yao Qi
2017-10-26  8:30 ` [PATCH 3/3] [AArch64] Remove tag from address for watchpoint Yao Qi
2017-11-09 20:30   ` Pedro Alves
2017-11-09 21:08     ` Simon Marchi
2017-11-09 21:20       ` Yao Qi
2017-11-09 21:09     ` Yao Qi
2017-11-09 22:25       ` Pedro Alves
2017-10-26  8:30 ` [PATCH 1/3] [AArch64 Linux] Get rid of top byte from tagged address on memory access Yao Qi
2017-11-09 20:24   ` Pedro Alves

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