This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[patch] more xfer_memory() fixes


FYI,

I'm checking in the attatched under the obvious fix rule.  I think it
wacks out the last of the xfer_memory() tweeks and I think these are all
correct.

	Andrew
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.

Index: gnu-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/gnu-nat.c,v
retrieving revision 1.11
diff -p -r1.11 gnu-nat.c
*** gnu-nat.c	2001/03/13 00:51:40	1.11
--- gnu-nat.c	2001/03/15 15:32:00
*************** out:
*** 2447,2452 ****
--- 2447,2453 ----
     is ignored. */
  static int
  gnu_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len, int write,
+ 		 struct mem_attrib *attrib,
  		 struct target_ops *target)
  {
    task_t task = (current_inferior
Index: infttrace.c
===================================================================
RCS file: /cvs/src/src/gdb/infttrace.c,v
retrieving revision 1.9
diff -p -r1.9 infttrace.c
*** infttrace.c	2001/03/06 08:21:08	1.9
--- infttrace.c	2001/03/15 15:32:01
*************** _initialize_kernel_u_addr (void)
*** 4917,4922 ****
--- 4917,4923 ----
  
  int
  child_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len, int write,
+ 		   struct mem_attrib *attrib,
  		   struct target_ops *target)
  {
    register int i;
Index: lin-thread.c
===================================================================
RCS file: /cvs/src/src/gdb/lin-thread.c,v
retrieving revision 1.11
diff -p -r1.11 lin-thread.c
*** lin-thread.c	2001/03/06 08:21:09	1.11
--- lin-thread.c	2001/03/15 15:32:02
*************** thread_db_files_info (struct target_ops 
*** 1216,1221 ****
--- 1216,1222 ----
  
  static int
  thread_db_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len, int dowrite,
+ 		       struct mem_attrib *attrib,
  		       struct target_ops *target)
  {
    struct cleanup *old_chain;
*************** thread_db_xfer_memory (CORE_ADDR memaddr
*** 1232,1238 ****
      }
  
    ret = target_beneath->to_xfer_memory (memaddr, myaddr, len,
! 					   dowrite, target);
    do_cleanups (old_chain);
    return ret;
  }
--- 1233,1239 ----
      }
  
    ret = target_beneath->to_xfer_memory (memaddr, myaddr, len,
! 					dowrite, attrib, target);
    do_cleanups (old_chain);
    return ret;
  }
Index: mac-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/mac-nat.c,v
retrieving revision 1.6
diff -p -r1.6 mac-nat.c
*** mac-nat.c	2001/03/06 08:21:10	1.6
--- mac-nat.c	2001/03/15 15:32:03
*************** child_stop (void)
*** 225,232 ****
  }
  
  int
! child_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len,
! 		   int write, struct target_ops *target)
  {
    int i;
  
--- 225,233 ----
  }
  
  int
! child_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len, int write,
! 		   struct mem_attrib *attrib,
! 		   struct target_ops *target)
  {
    int i;
  
Index: procfs.c
===================================================================
RCS file: /cvs/src/src/gdb/procfs.c,v
retrieving revision 1.23
diff -p -r1.23 procfs.c
*** procfs.c	2001/03/06 08:21:11	1.23
--- procfs.c	2001/03/15 15:32:06
*************** static void procfs_kill_inferior (void);
*** 113,120 ****
  static void procfs_mourn_inferior (void);
  static void procfs_create_inferior (char *, char *, char **);
  static int procfs_wait (int, struct target_waitstatus *);
! static int procfs_xfer_memory (CORE_ADDR,
! 			       char *, int, int, struct target_ops *);
  
  static int procfs_thread_alive (int);
  
--- 113,121 ----
  static void procfs_mourn_inferior (void);
  static void procfs_create_inferior (char *, char *, char **);
  static int procfs_wait (int, struct target_waitstatus *);
! static int procfs_xfer_memory (CORE_ADDR, char *, int, int,
! 			       struct mem_attrib *attrib,
! 			       struct target_ops *);
  
  static int procfs_thread_alive (int);
  
*************** wait_again:
*** 3909,3914 ****
--- 3910,3916 ----
  
  static int
  procfs_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len, int dowrite,
+ 		    struct mem_attrib *attrib,
  		    struct target_ops *target)
  {
    procinfo *pi;
Index: symm-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/symm-nat.c,v
retrieving revision 1.7
diff -p -r1.7 symm-nat.c
*** symm-nat.c	2001/03/06 08:21:17	1.7
--- symm-nat.c	2001/03/15 15:32:06
*************** detach (int signo)
*** 748,753 ****
--- 748,754 ----
  
  int
  child_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len, int write,
+ 		   struct mem_attrib *attrib,
  		   struct target_ops *target)
  {
    register int i;
Index: wince.c
===================================================================
RCS file: /cvs/src/src/gdb/wince.c,v
retrieving revision 1.14
diff -p -r1.14 wince.c
*** wince.c	2001/03/05 16:59:54	1.14
--- wince.c	2001/03/15 15:32:07
*************** child_mourn_inferior (void)
*** 1787,1794 ****
  
  /* Move memory from child to/from gdb. */
  int
! child_xfer_memory (CORE_ADDR memaddr, char *our, int len,
! 		   int write, struct target_ops *target)
  {
    if (len <= 0)
      return 0;
--- 1787,1795 ----
  
  /* Move memory from child to/from gdb. */
  int
! child_xfer_memory (CORE_ADDR memaddr, char *our, int len, int write,
! 		   struct mem_attrib *attrib,
! 		   struct target_ops *target)
  {
    if (len <= 0)
      return 0;

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]