This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH]: go32_xfer_memory and memory attributes
- To: gdb-patches at sourceware dot cygnus dot com
- Subject: [PATCH]: go32_xfer_memory and memory attributes
- From: Eli Zaretskii <eliz at is dot elta dot co dot il>
- Date: Sun, 4 Feb 2001 09:44:11 +0200 (IST)
- cc: "J.T. Conklin" <jtc at redback dot com>
FYI: this change:
2001-01-23 J.T. Conklin <jtc@redback.com>
* target.h (#include "memattr.h"): Added.
(target_ops.to_xfer_memory): Add attrib argument.
broke the DJGPP port, because the function which implements the
to_xfer_memory method was not updated.
I fixed that today with the following patch:
2001-02-04 Eli Zaretskii <eliz@is.elta.co.il>
* go32-nat.c (go32_xfer_memory): Make the argument list consistent
with target.h's to_xfer_memory member.
--- gdb/go32-nat.c~0 Sun Aug 6 10:19:38 2000
+++ gdb/go32-nat.c Sat Feb 3 15:22:20 2001
@@ -157,7 +157,9 @@
static void go32_store_registers (int regno);
static void go32_prepare_to_store (void);
static int go32_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len,
- int write, struct target_ops *target);
+ int write,
+ struct mem_attrib *attrib,
+ struct target_ops *target);
static void go32_files_info (struct target_ops *target);
static void go32_stop (void);
static void go32_kill_inferior (void);
@@ -539,6 +541,7 @@
static int
go32_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len, int write,
+ struct mem_attrib *attrib ATTRIBUTE_UNUSED,
struct target_ops *target ATTRIBUTE_UNUSED)
{
if (write)