aboutsummaryrefslogtreecommitdiff
path: root/sys/mips/include/gdb_machdep.h
diff options
context:
space:
mode:
authorMitchell Horne <mhorne@FreeBSD.org>2021-03-08 19:04:51 +0000
committerMitchell Horne <mhorne@FreeBSD.org>2021-04-21 13:20:33 +0000
commite21ed730a558c63594877facbd4321cdb4fd729c (patch)
tree1502064c0ac3c3c85ace0fa5d14447b2fdc66aa1 /sys/mips/include/gdb_machdep.h
parent123578f890ee067662670832099fc9616ae3c1fc (diff)
gdb: report specific stop reason for watchpoints
The remote protocol allows for implementations to report more specific reasons for the break in execution back to the client [1]. This is entirely optional, so it is only implemented for amd64, arm64, and i386 at the moment. [1] https://sourceware.org/gdb/current/onlinedocs/gdb/Stop-Reply-Packets.html Reviewed by: jhb Sponsored by: NetApp, Inc. Sponsored by: Klara, Inc. NetApp PR: 51 (cherry picked from commit 7446b0888d920124516284eaa32714d63353e2c9)
Diffstat (limited to 'sys/mips/include/gdb_machdep.h')
-rw-r--r--sys/mips/include/gdb_machdep.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/mips/include/gdb_machdep.h b/sys/mips/include/gdb_machdep.h
index 03378b760024..e8ff620edc88 100644
--- a/sys/mips/include/gdb_machdep.h
+++ b/sys/mips/include/gdb_machdep.h
@@ -64,6 +64,12 @@ gdb_end_write(void *arg __unused)
}
+static __inline void
+gdb_cpu_stop_reason(int type __unused, int code __unused)
+{
+
+}
+
void *gdb_cpu_getreg(int, size_t *);
void gdb_cpu_setreg(int, void *);
int gdb_cpu_signal(int, int);