This is the mail archive of the gdb-patches@sourceware.cygnus.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]: prototype decl in sol-thread.c



I've checked in the following minor fix to sol-thread.c, 

2000-03-23  Michael Snyder  <msnyder@cleaver.cygnus.com>

        * sol-thread.c (ps_pglobal_lookup): Change argument type from
        paddr_t to psaddr_t.  This mistake appears to date from an
        erroneous man page in Solaris 2.5 -- the correct type from the
        system headers has always been psaddr_t.
        (ps_pdread, ps_pdwrite, ps_ptread, ps_ptwrite): ditto.
        (rw_common): ditto.


Index: ChangeLog
===================================================================
RCS file: /cvs/src/src/gdb/ChangeLog,v
retrieving revision 1.167
retrieving revision 1.168
diff -c -r1.167 -r1.168
*** ChangeLog	2000/03/23 04:27:26	1.167
--- ChangeLog	2000/03/23 21:44:50	1.168
***************
*** 1,3 ****
--- 1,12 ----
+ 2000-03-23  Michael Snyder  <msnyder@cleaver.cygnus.com>
+ 
+ 	* sol-thread.c (ps_pglobal_lookup): Change argument type from
+ 	paddr_t to psaddr_t.  This mistake appears to date from an
+ 	erroneous man page in Solaris 2.5 -- the correct type from the
+ 	system headers has always been psaddr_t.
+ 	(ps_pdread, ps_pdwrite, ps_ptread, ps_ptwrite): ditto.
+ 	(rw_common): ditto.
+ 
  2000-03-22  Kevin Buettner  <kevinb@redhat.com>
  
  	* ia64-linux-nat.c: Fix copyright.
Index: sol-thread.c
===================================================================
RCS file: /cvs/src/src/gdb/sol-thread.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -c -r1.2 -r1.3
*** sol-thread.c	2000/02/29 13:53:59	1.2
--- sol-thread.c	2000/03/23 21:44:50	1.3
***************
*** 1044,1050 ****
  
  ps_err_e
  ps_pglobal_lookup (gdb_ps_prochandle_t ph, const char *ld_object_name,
! 		   const char *ld_symbol_name, paddr_t * ld_symbol_addr)
  {
    struct minimal_symbol *ms;
  
--- 1044,1050 ----
  
  ps_err_e
  ps_pglobal_lookup (gdb_ps_prochandle_t ph, const char *ld_object_name,
! 		   const char *ld_symbol_name, psaddr_t * ld_symbol_addr)
  {
    struct minimal_symbol *ms;
  
***************
*** 1061,1067 ****
  /* Common routine for reading and writing memory.  */
  
  static ps_err_e
! rw_common (int dowrite, const struct ps_prochandle *ph, paddr_t addr,
  	   char *buf, int size)
  {
    struct cleanup *old_chain;
--- 1061,1067 ----
  /* Common routine for reading and writing memory.  */
  
  static ps_err_e
! rw_common (int dowrite, const struct ps_prochandle *ph, psaddr_t addr,
  	   char *buf, int size)
  {
    struct cleanup *old_chain;
***************
*** 1105,1111 ****
  /* Copies SIZE bytes from target process .data segment to debugger memory.  */
  
  ps_err_e
! ps_pdread (gdb_ps_prochandle_t ph, paddr_t addr,
  	   gdb_ps_read_buf_t buf, gdb_ps_size_t size)
  {
    return rw_common (0, ph, addr, buf, size);
--- 1105,1111 ----
  /* Copies SIZE bytes from target process .data segment to debugger memory.  */
  
  ps_err_e
! ps_pdread (gdb_ps_prochandle_t ph, psaddr_t addr,
  	   gdb_ps_read_buf_t buf, gdb_ps_size_t size)
  {
    return rw_common (0, ph, addr, buf, size);
***************
*** 1114,1120 ****
  /* Copies SIZE bytes from debugger memory .data segment to target process.  */
  
  ps_err_e
! ps_pdwrite (gdb_ps_prochandle_t ph, paddr_t addr,
  	    gdb_ps_write_buf_t buf, gdb_ps_size_t size)
  {
    return rw_common (1, ph, addr, (char *) buf, size);
--- 1114,1120 ----
  /* Copies SIZE bytes from debugger memory .data segment to target process.  */
  
  ps_err_e
! ps_pdwrite (gdb_ps_prochandle_t ph, psaddr_t addr,
  	    gdb_ps_write_buf_t buf, gdb_ps_size_t size)
  {
    return rw_common (1, ph, addr, (char *) buf, size);
***************
*** 1123,1129 ****
  /* Copies SIZE bytes from target process .text segment to debugger memory.  */
  
  ps_err_e
! ps_ptread (gdb_ps_prochandle_t ph, paddr_t addr,
  	   gdb_ps_read_buf_t buf, gdb_ps_size_t size)
  {
    return rw_common (0, ph, addr, buf, size);
--- 1123,1129 ----
  /* Copies SIZE bytes from target process .text segment to debugger memory.  */
  
  ps_err_e
! ps_ptread (gdb_ps_prochandle_t ph, psaddr_t addr,
  	   gdb_ps_read_buf_t buf, gdb_ps_size_t size)
  {
    return rw_common (0, ph, addr, buf, size);
***************
*** 1132,1138 ****
  /* Copies SIZE bytes from debugger memory .text segment to target process.  */
  
  ps_err_e
! ps_ptwrite (gdb_ps_prochandle_t ph, paddr_t addr,
  	    gdb_ps_write_buf_t buf, gdb_ps_size_t size)
  {
    return rw_common (1, ph, addr, (char *) buf, size);
--- 1132,1138 ----
  /* Copies SIZE bytes from debugger memory .text segment to target process.  */
  
  ps_err_e
! ps_ptwrite (gdb_ps_prochandle_t ph, psaddr_t addr,
  	    gdb_ps_write_buf_t buf, gdb_ps_size_t size)
  {
    return rw_common (1, ph, addr, (char *) buf, size);

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