Add ``attrib'' parameter to *xfer_memory() functions.

This commit is contained in:
Andrew Cagney
2001-03-15 16:55:15 +00:00
parent 12cca0d293
commit 043780a1fb
8 changed files with 25 additions and 8 deletions

View File

@ -1,3 +1,13 @@
2001-03-15 Andrew Cagney <ac131313@redhat.com>
* wince.c (child_xfer_memory): Add attrib parameter.
* symm-nat.c (child_xfer_memory): Ditto.
* mac-nat.c (child_xfer_memory): Ditto.
* infttrace.c (child_xfer_memory): Ditto.
* procfs.c (procfs_xfer_memory): Ditto.
* lin-thread.c (thread_db_xfer_memory): Ditto.
* gnu-nat.c (gnu_xfer_memory): Ditto.
2001-03-14 Andrew Cagney <ac131313@redhat.com> 2001-03-14 Andrew Cagney <ac131313@redhat.com>
* NEWS: Mention that Harris/CXUX m88k is obsolete. * NEWS: Mention that Harris/CXUX m88k is obsolete.
@ -50,7 +60,6 @@
* config/nm-m3.h: Ditto. * config/nm-m3.h: Ditto.
* config/nm-gnu.h: Ditto. * config/nm-gnu.h: Ditto.
>>>>>>> 1.1049
2001-03-14 Andrew Cagney <ac131313@redhat.com> 2001-03-14 Andrew Cagney <ac131313@redhat.com>
* MAINTAINERS: Update list of targets. Mark arm-* and v850-elf as * MAINTAINERS: Update list of targets. Mark arm-* and v850-elf as

View File

@ -2447,6 +2447,7 @@ out:
is ignored. */ is ignored. */
static int static int
gnu_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len, int write, gnu_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len, int write,
struct mem_attrib *attrib,
struct target_ops *target) struct target_ops *target)
{ {
task_t task = (current_inferior task_t task = (current_inferior

View File

@ -4917,6 +4917,7 @@ _initialize_kernel_u_addr (void)
int int
child_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len, int write, child_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len, int write,
struct mem_attrib *attrib,
struct target_ops *target) struct target_ops *target)
{ {
register int i; register int i;

View File

@ -1216,6 +1216,7 @@ thread_db_files_info (struct target_ops *tgt_vector)
static int static int
thread_db_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len, int dowrite, thread_db_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len, int dowrite,
struct mem_attrib *attrib,
struct target_ops *target) struct target_ops *target)
{ {
struct cleanup *old_chain; struct cleanup *old_chain;
@ -1232,7 +1233,7 @@ thread_db_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len, int dowrite,
} }
ret = target_beneath->to_xfer_memory (memaddr, myaddr, len, ret = target_beneath->to_xfer_memory (memaddr, myaddr, len,
dowrite, target); dowrite, attrib, target);
do_cleanups (old_chain); do_cleanups (old_chain);
return ret; return ret;
} }

View File

@ -225,8 +225,9 @@ child_stop (void)
} }
int int
child_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len, child_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len, int write,
int write, struct target_ops *target) struct mem_attrib *attrib,
struct target_ops *target)
{ {
int i; int i;

View File

@ -113,8 +113,9 @@ static void procfs_kill_inferior (void);
static void procfs_mourn_inferior (void); static void procfs_mourn_inferior (void);
static void procfs_create_inferior (char *, char *, char **); static void procfs_create_inferior (char *, char *, char **);
static int procfs_wait (int, struct target_waitstatus *); static int procfs_wait (int, struct target_waitstatus *);
static int procfs_xfer_memory (CORE_ADDR, static int procfs_xfer_memory (CORE_ADDR, char *, int, int,
char *, int, int, struct target_ops *); struct mem_attrib *attrib,
struct target_ops *);
static int procfs_thread_alive (int); static int procfs_thread_alive (int);
@ -3909,6 +3910,7 @@ wait_again:
static int static int
procfs_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len, int dowrite, procfs_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len, int dowrite,
struct mem_attrib *attrib,
struct target_ops *target) struct target_ops *target)
{ {
procinfo *pi; procinfo *pi;

View File

@ -748,6 +748,7 @@ detach (int signo)
int int
child_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len, int write, child_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len, int write,
struct mem_attrib *attrib,
struct target_ops *target) struct target_ops *target)
{ {
register int i; register int i;

View File

@ -1787,8 +1787,9 @@ child_mourn_inferior (void)
/* Move memory from child to/from gdb. */ /* Move memory from child to/from gdb. */
int int
child_xfer_memory (CORE_ADDR memaddr, char *our, int len, child_xfer_memory (CORE_ADDR memaddr, char *our, int len, int write,
int write, struct target_ops *target) struct mem_attrib *attrib,
struct target_ops *target)
{ {
if (len <= 0) if (len <= 0)
return 0; return 0;