Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Zane Leung <liangzhen@linux.spacemit.com>
To: gdb-patches@sourceware.org
Cc: zhuangqiubin@linux.spacemit.com
Subject: [PATCH v2 0/2] RISC-V hardware breakpoint/watchpoint support
Date: Thu,  9 Apr 2026 10:45:44 +0800	[thread overview]
Message-ID: <20260409024546.350958-1-liangzhen@linux.spacemit.com> (raw)

From: liangzhen <zhen.liang@spacemit.com>

This series implements hardware breakpoint and watchpoint support for RISC-V
architecture on Linux. It requires corresponding Linux kernel support.

Based on Himanshu's work:
https://lore.kernel.org/all/20260223044918.1359983-2-himanshu.chauhan@oss.qualcomm.com

Changes since v1:
- Fixed some code style.
- Add gdbserver support.

liangzhen (2):
  gdb: riscv: Add support for hardware breakpoints/watchpoints
  gdbserver: riscv: Add support for hardware breakpoints/watchpoints

 gdb/Makefile.in                |   3 +
 gdb/configure.nat              |   3 +-
 gdb/nat/riscv-hw-point.c       | 244 ++++++++++++++++++++++++
 gdb/nat/riscv-hw-point.h       |  89 +++++++++
 gdb/nat/riscv-linux-hw-point.c | 192 +++++++++++++++++++
 gdb/nat/riscv-linux-hw-point.h | 122 ++++++++++++
 gdb/nat/riscv-linux.c          |  82 ++++++++
 gdb/nat/riscv-linux.h          |  39 ++++
 gdb/riscv-linux-nat.c          | 333 +++++++++++++++++++++++++++++++++
 gdbserver/configure.srv        |   3 +
 gdbserver/linux-riscv-low.cc   | 239 +++++++++++++++++++++++
 include/elf/common.h           |   2 +
 12 files changed, 1350 insertions(+), 1 deletion(-)
 create mode 100644 gdb/nat/riscv-hw-point.c
 create mode 100644 gdb/nat/riscv-hw-point.h
 create mode 100644 gdb/nat/riscv-linux-hw-point.c
 create mode 100644 gdb/nat/riscv-linux-hw-point.h
 create mode 100644 gdb/nat/riscv-linux.c
 create mode 100644 gdb/nat/riscv-linux.h

-- 
2.34.1


             reply	other threads:[~2026-04-09  2:46 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-09  2:45 Zane Leung [this message]
2026-04-09  2:45 ` [PATCH v2 1/2] gdb: riscv: Add support for hardware breakpoints/watchpoints Zane Leung
2026-04-09  2:45 ` [PATCH v2 2/2] gdbserver: " Zane Leung
2026-04-09  4:49   ` liangzhen

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=20260409024546.350958-1-liangzhen@linux.spacemit.com \
    --to=liangzhen@linux.spacemit.com \
    --cc=gdb-patches@sourceware.org \
    --cc=zhuangqiubin@linux.spacemit.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