diff options
author | Mitchell Horne <mhorne@FreeBSD.org> | 2021-03-08 19:04:51 +0000 |
---|---|---|
committer | Mitchell Horne <mhorne@FreeBSD.org> | 2021-03-30 14:36:41 +0000 |
commit | 7446b0888d920124516284eaa32714d63353e2c9 (patch) | |
tree | 32b9a5968a153dfd30ec117d013c171699204dbf /sys/amd64/include | |
parent | 4beb385813c8b1014f8250a31b07fdc09a059713 (diff) | |
download | src-7446b0888d920124516284eaa32714d63353e2c9.tar.gz src-7446b0888d920124516284eaa32714d63353e2c9.zip |
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
MFC after: 3 weeks
Sponsored by: NetApp, Inc.
Sponsored by: Klara, Inc.
NetApp PR: 51
Differential Revision: https://reviews.freebsd.org/D29174
Diffstat (limited to 'sys/amd64/include')
-rw-r--r-- | sys/amd64/include/gdb_machdep.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/amd64/include/gdb_machdep.h b/sys/amd64/include/gdb_machdep.h index 459d4f17e9d1..4379b8a74709 100644 --- a/sys/amd64/include/gdb_machdep.h +++ b/sys/amd64/include/gdb_machdep.h @@ -72,5 +72,6 @@ void *gdb_cpu_getreg(int, size_t *); void gdb_cpu_setreg(int, void *); int gdb_cpu_signal(int, int); void gdb_end_write(void *); +void gdb_cpu_stop_reason(int, int); #endif /* !_MACHINE_GDB_MACHDEP_H_ */ |