-/* $OpenBSD: db_interface.c,v 1.19 2022/04/14 19:47:10 naddy Exp $ */
+/* $OpenBSD: db_interface.c,v 1.20 2022/10/15 08:04:02 jsg Exp $ */
/* $NetBSD: db_interface.c,v 1.34 2003/10/26 23:11:15 chris Exp $ */
/*
* Read bytes from kernel address space for debugger.
*/
void
-db_read_bytes(addr, size, data)
- vaddr_t addr;
- size_t size;
- char *data;
+db_read_bytes(vaddr_t addr, size_t size, char *data)
{
char *src = (char *)addr;
-/* $OpenBSD: db_interface.c,v 1.12 2022/04/14 19:47:11 naddy Exp $ */
+/* $OpenBSD: db_interface.c,v 1.13 2022/10/15 08:04:02 jsg Exp $ */
/* $NetBSD: db_interface.c,v 1.34 2003/10/26 23:11:15 chris Exp $ */
/*
* Read bytes from kernel address space for debugger.
*/
void
-db_read_bytes(addr, size, data)
- vaddr_t addr;
- size_t size;
- char *data;
+db_read_bytes(vaddr_t addr, size_t size, char *data)
{
char *src = (char *)addr;
/* $NetBSD: db_memrw.c,v 1.4 2001/05/18 20:38:27 matt Exp $ */
-/* $OpenBSD: db_memrw.c,v 1.5 2003/10/15 01:06:13 drahn Exp $ */
+/* $OpenBSD: db_memrw.c,v 1.6 2022/10/15 08:04:02 jsg Exp $ */
/*
* Mach Operating System
* Read bytes from kernel address space for debugger.
*/
void
-db_read_bytes(addr, size, data)
- vaddr_t addr;
- size_t size;
- char *data;
+db_read_bytes(vaddr_t addr, size_t size, char *data)
{
char *src = (char *)addr;
faultbuf env;
* Write bytes to kernel address space for debugger.
*/
void
-db_write_bytes(addr, size, data)
- vaddr_t addr;
- size_t size;
- char *data;
+db_write_bytes(vaddr_t addr, size_t size, char *data)
{
char *dst = (char *)addr;
faultbuf env;