diff options
author | Andrew Cagney <cagney@redhat.com> | 2005-05-14 06:07:42 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2005-05-14 06:07:42 +0000 |
commit | b60c417a185258335c81f3d531cc0bba01763a52 (patch) | |
tree | 2c95321b5eb77ad915ed8ca4180c490db936c8b1 /gdb/findvar.c | |
parent | 1fe44d798603c762f0c3570717a7741d82d9de9b (diff) | |
download | gdb-b60c417a185258335c81f3d531cc0bba01763a52.zip gdb-b60c417a185258335c81f3d531cc0bba01763a52.tar.gz gdb-b60c417a185258335c81f3d531cc0bba01763a52.tar.bz2 |
2005-05-13 Andrew Cagney <cagney@gnu.org>
* gdbarch.sh (pseudo_register_read, pseudo_register_write)
(value_to_register, register_to_value, pointer_to_address)
(address_to_pointer, return_value, extract_return_value)
(store_return_value): Instead of a void pointer, use gdb_byte.
* gdbarch.h, gdbarch.c: Regenerate.
* inferior.h (unsigned_address_to_pointer)
(signed_pointer_to_address, address_to_signed_pointer)
(unsigned_pointer_to_address): Update.
* arch-utils.h (legacy_return_value):
* arch-utils.c (legacy_extract_return_value)
(legacy_return_value): Update.
* findvar.c (unsigned_pointer_to_address)
(signed_pointer_to_address, unsigned_address_to_pointer)
(address_to_signed_pointer): Update.
Diffstat (limited to 'gdb/findvar.c')
-rw-r--r-- | gdb/findvar.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gdb/findvar.c b/gdb/findvar.c index 8c48c93..5b17780 100644 --- a/gdb/findvar.c +++ b/gdb/findvar.c @@ -295,13 +295,13 @@ value_of_register (int regnum, struct frame_info *frame) /* Given a pointer of type TYPE in target form in BUF, return the address it represents. */ CORE_ADDR -unsigned_pointer_to_address (struct type *type, const void *buf) +unsigned_pointer_to_address (struct type *type, const gdb_byte *buf) { return extract_unsigned_integer (buf, TYPE_LENGTH (type)); } CORE_ADDR -signed_pointer_to_address (struct type *type, const void *buf) +signed_pointer_to_address (struct type *type, const gdb_byte *buf) { return extract_signed_integer (buf, TYPE_LENGTH (type)); } @@ -309,13 +309,14 @@ signed_pointer_to_address (struct type *type, const void *buf) /* Given an address, store it as a pointer of type TYPE in target format in BUF. */ void -unsigned_address_to_pointer (struct type *type, void *buf, CORE_ADDR addr) +unsigned_address_to_pointer (struct type *type, gdb_byte *buf, + CORE_ADDR addr) { store_unsigned_integer (buf, TYPE_LENGTH (type), addr); } void -address_to_signed_pointer (struct type *type, void *buf, CORE_ADDR addr) +address_to_signed_pointer (struct type *type, gdb_byte *buf, CORE_ADDR addr) { store_signed_integer (buf, TYPE_LENGTH (type), addr); } |