diff options
author | Andrew Cagney <cagney@redhat.com> | 2000-06-04 13:46:37 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2000-06-04 13:46:37 +0000 |
commit | 9d8c9bc29ad1eec16c6c64a70c6a377ebb42c870 (patch) | |
tree | cdf59deb908ccd7fcc666e6f8a7575b2be38f1f1 /gdb/procfs.c | |
parent | b35d5554622912f8c1149e0938b0df157f176f20 (diff) | |
download | gdb-9d8c9bc29ad1eec16c6c64a70c6a377ebb42c870.tar.gz |
Add host_pointer_to_address() and address_to_host_pointer(). Add
signed_pointer_to_address() etc. Rename generic_pointer_to_address()
to unsigned_pointer_to_address() etc.
Diffstat (limited to 'gdb/procfs.c')
-rw-r--r-- | gdb/procfs.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/procfs.c b/gdb/procfs.c index 71e41b70764..b127c5f37b4 100644 --- a/gdb/procfs.c +++ b/gdb/procfs.c @@ -2562,7 +2562,7 @@ proc_set_watchpoint (pi, addr, len, wflags) prwatch_t *pwatch; pwatch = (prwatch_t *) &arg.watch; - pwatch->pr_vaddr = addr; + pwatch->pr_vaddr = address_to_host_pointer (addr); pwatch->pr_size = len; pwatch->pr_wflags = wflags; #if defined(NEW_PROC_API) && defined (PCWATCH) @@ -2683,7 +2683,8 @@ proc_iterate_over_mappings (func) not a problem. */ /* Stop looping if the callback returns non-zero. */ - if ((funcstat = (*func) (fd, (CORE_ADDR) map[i].pr_vaddr)) != 0) + funcstat = (*func) (fd, host_pointer_to_address (map[i].pr_vaddr)); + if (funcstat != 0) break; } #endif |