diff options
author | Peter Schauer <Peter.Schauer@mytum.de> | 2000-04-07 17:18:57 +0000 |
---|---|---|
committer | Peter Schauer <Peter.Schauer@mytum.de> | 2000-04-07 17:18:57 +0000 |
commit | 291dcb3e0d960aa6c5ac7f4913cca0f20f6ace13 (patch) | |
tree | 16c9360a3abbf5ecc0884ed6648adf4d01e8e08f | |
parent | 81635ce4f52fa3c94cff07874a734589feb5855d (diff) | |
download | gdb-291dcb3e0d960aa6c5ac7f4913cca0f20f6ace13.zip gdb-291dcb3e0d960aa6c5ac7f4913cca0f20f6ace13.tar.gz gdb-291dcb3e0d960aa6c5ac7f4913cca0f20f6ace13.tar.bz2 |
* sol-thread.c (gdb_ps_addr_t): New typedef, depends on definition
of PROC_SERVICE_IS_OLD.
(ps_pglobal_lookup, ps_pdread, ps_pdwrite, ps_ptread, ps_ptwrite,
rw_common): Change argument type from psaddr_t to gdb_ps_addr_t.
-rw-r--r-- | gdb/ChangeLog | 7 | ||||
-rw-r--r-- | gdb/sol-thread.c | 14 |
2 files changed, 15 insertions, 6 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index f81970a..732ee3b 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,10 @@ +2000-04-07 Peter Schauer <pes@regent.e-technik.tu-muenchen.de> + + * sol-thread.c (gdb_ps_addr_t): New typedef, depends on definition + of PROC_SERVICE_IS_OLD. + (ps_pglobal_lookup, ps_pdread, ps_pdwrite, ps_ptread, ps_ptwrite, + rw_common): Change argument type from psaddr_t to gdb_ps_addr_t. + Fri Apr 7 17:18:42 2000 Andrew Cagney <cagney@b1.cygnus.com> * Makefile.in (CFLAGS): Set using configure. diff --git a/gdb/sol-thread.c b/gdb/sol-thread.c index 5d2197e..14ca05a 100644 --- a/gdb/sol-thread.c +++ b/gdb/sol-thread.c @@ -995,11 +995,13 @@ typedef const struct ps_prochandle *gdb_ps_prochandle_t; typedef char *gdb_ps_read_buf_t; typedef char *gdb_ps_write_buf_t; typedef int gdb_ps_size_t; +typedef paddr_t gdb_ps_addr_t; #else typedef struct ps_prochandle *gdb_ps_prochandle_t; typedef void *gdb_ps_read_buf_t; typedef const void *gdb_ps_write_buf_t; typedef size_t gdb_ps_size_t; +typedef psaddr_t gdb_ps_addr_t; #endif @@ -1044,7 +1046,7 @@ ps_lcontinue (gdb_ps_prochandle_t ph, lwpid_t lwpid) 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) + const char *ld_symbol_name, gdb_ps_addr_t * ld_symbol_addr) { struct minimal_symbol *ms; @@ -1061,7 +1063,7 @@ ps_pglobal_lookup (gdb_ps_prochandle_t ph, const char *ld_object_name, /* Common routine for reading and writing memory. */ static ps_err_e -rw_common (int dowrite, const struct ps_prochandle *ph, psaddr_t addr, +rw_common (int dowrite, const struct ps_prochandle *ph, gdb_ps_addr_t addr, char *buf, int size) { struct cleanup *old_chain; @@ -1105,7 +1107,7 @@ rw_common (int dowrite, const struct ps_prochandle *ph, psaddr_t addr, /* Copies SIZE bytes from target process .data segment to debugger memory. */ ps_err_e -ps_pdread (gdb_ps_prochandle_t ph, psaddr_t addr, +ps_pdread (gdb_ps_prochandle_t ph, gdb_ps_addr_t addr, gdb_ps_read_buf_t buf, gdb_ps_size_t size) { return rw_common (0, ph, addr, buf, size); @@ -1114,7 +1116,7 @@ ps_pdread (gdb_ps_prochandle_t ph, psaddr_t addr, /* Copies SIZE bytes from debugger memory .data segment to target process. */ ps_err_e -ps_pdwrite (gdb_ps_prochandle_t ph, psaddr_t addr, +ps_pdwrite (gdb_ps_prochandle_t ph, gdb_ps_addr_t addr, gdb_ps_write_buf_t buf, gdb_ps_size_t size) { return rw_common (1, ph, addr, (char *) buf, size); @@ -1123,7 +1125,7 @@ ps_pdwrite (gdb_ps_prochandle_t ph, psaddr_t addr, /* Copies SIZE bytes from target process .text segment to debugger memory. */ ps_err_e -ps_ptread (gdb_ps_prochandle_t ph, psaddr_t addr, +ps_ptread (gdb_ps_prochandle_t ph, gdb_ps_addr_t addr, gdb_ps_read_buf_t buf, gdb_ps_size_t size) { return rw_common (0, ph, addr, buf, size); @@ -1132,7 +1134,7 @@ ps_ptread (gdb_ps_prochandle_t ph, psaddr_t addr, /* Copies SIZE bytes from debugger memory .text segment to target process. */ ps_err_e -ps_ptwrite (gdb_ps_prochandle_t ph, psaddr_t addr, +ps_ptwrite (gdb_ps_prochandle_t ph, gdb_ps_addr_t addr, gdb_ps_write_buf_t buf, gdb_ps_size_t size) { return rw_common (1, ph, addr, (char *) buf, size); |