From aa691b87c2317cc90bbe4964d79e5a29c29f348e Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Wed, 25 Feb 2004 20:41:29 +0000 Subject: 2004-02-25 Roland McGrath * target.h (struct target_ops): New member `read_auxv'. * server.c (handle_query): Handle qPart:auxv:read: query using that. * linux-low.c (linux_read_auxv): New function. (linux_target_ops): Initialize `read_auxv' member to that. --- gdb/gdbserver/target.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'gdb/gdbserver/target.h') diff --git a/gdb/gdbserver/target.h b/gdb/gdbserver/target.h index aa0a44a..f4bc674 100644 --- a/gdb/gdbserver/target.h +++ b/gdb/gdbserver/target.h @@ -92,7 +92,7 @@ struct target_ops If REGNO is -1, fetch all registers; otherwise, fetch at least REGNO. */ void (*fetch_registers) (int regno); - + /* Store registers to the inferior process. If REGNO is -1, store all registers; otherwise, store at least REGNO. */ @@ -125,6 +125,12 @@ struct target_ops /* Send a signal to the inferior process, however is appropriate. */ void (*send_signal) (int); + + /* Read auxiliary vector data from the inferior process. + + Read LEN bytes at OFFSET into a buffer at MYADDR. */ + + int (*read_auxv) (CORE_ADDR offset, char *myaddr, unsigned int len); }; extern struct target_ops *the_target; -- cgit v1.1