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 | ac2e2ef7e2214be3672096ea7e6641d6a0651fd7 (patch) | |
tree | 7205cea8571355be893617fae45005b4ab5901a7 /gdb/procfs.c | |
parent | 0b5454486cd4b2e34f4ac7eb51092ef55fa97b07 (diff) | |
download | gdb-ac2e2ef7e2214be3672096ea7e6641d6a0651fd7.zip gdb-ac2e2ef7e2214be3672096ea7e6641d6a0651fd7.tar.gz gdb-ac2e2ef7e2214be3672096ea7e6641d6a0651fd7.tar.bz2 |
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 71e41b7..b127c5f 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 |