summaryrefslogtreecommitdiff
path: root/gdb/sol-thread.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@specifix.com>2000-03-23 21:44:50 +0000
committerMichael Snyder <msnyder@specifix.com>2000-03-23 21:44:50 +0000
commit6a56f8d519e5a3cecf2ecbeac5928f71afc64ef8 (patch)
treee3cfb9dbf7f48e9caf00d11c4629e089b0d7b3b5 /gdb/sol-thread.c
parentacdb2b219e99f442c0738e5cf0f7a097bf03f851 (diff)
downloadgdb-6a56f8d519e5a3cecf2ecbeac5928f71afc64ef8.tar.gz
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.
Diffstat (limited to 'gdb/sol-thread.c')
-rw-r--r--gdb/sol-thread.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gdb/sol-thread.c b/gdb/sol-thread.c
index 0ec10a46f70..a3d2d2c9c8d 100644
--- a/gdb/sol-thread.c
+++ b/gdb/sol-thread.c
@@ -1044,7 +1044,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, paddr_t * ld_symbol_addr)
+ const char *ld_symbol_name, psaddr_t * ld_symbol_addr)
{
struct minimal_symbol *ms;
@@ -1061,7 +1061,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, paddr_t addr,
+rw_common (int dowrite, const struct ps_prochandle *ph, psaddr_t addr,
char *buf, int size)
{
struct cleanup *old_chain;
@@ -1105,7 +1105,7 @@ rw_common (int dowrite, const struct ps_prochandle *ph, paddr_t addr,
/* Copies SIZE bytes from target process .data segment to debugger memory. */
ps_err_e
-ps_pdread (gdb_ps_prochandle_t ph, paddr_t addr,
+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,7 +1114,7 @@ ps_pdread (gdb_ps_prochandle_t ph, paddr_t addr,
/* Copies SIZE bytes from debugger memory .data segment to target process. */
ps_err_e
-ps_pdwrite (gdb_ps_prochandle_t ph, paddr_t addr,
+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,7 +1123,7 @@ ps_pdwrite (gdb_ps_prochandle_t ph, paddr_t addr,
/* Copies SIZE bytes from target process .text segment to debugger memory. */
ps_err_e
-ps_ptread (gdb_ps_prochandle_t ph, paddr_t addr,
+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,7 +1132,7 @@ ps_ptread (gdb_ps_prochandle_t ph, paddr_t addr,
/* Copies SIZE bytes from debugger memory .text segment to target process. */
ps_err_e
-ps_ptwrite (gdb_ps_prochandle_t ph, paddr_t addr,
+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);