aboutsummaryrefslogtreecommitdiff
path: root/gdb/findvar.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2003-01-06 18:49:09 +0000
committerAndrew Cagney <cagney@redhat.com>2003-01-06 18:49:09 +0000
commit66140c26166febde29e6e7f2001674a930967545 (patch)
treefb09101d171b327c41d6046fcedd059db6ebef62 /gdb/findvar.c
parentc180f50118e01dc9863da47ad0b7d2b55f68cfb0 (diff)
downloadgdb-66140c26166febde29e6e7f2001674a930967545.zip
gdb-66140c26166febde29e6e7f2001674a930967545.tar.gz
gdb-66140c26166febde29e6e7f2001674a930967545.tar.bz2
2003-01-06 Andrew Cagney <cagney@redhat.com>
* MAINTAINERS (Target Instruction Set Architectures): Update arm-elf. Can be built with -Werror, has been multiarched. * value.h (unpack_long): Make buffer parameter constant. (unpack_double, unpack_pointer, unpack_field_as_long): Ditto. * scm-lang.h (scm_parse): Ditto. * defs.h (extract_typed_address, extract_address): Ditto. (extract_long_unsigned_integer): Ditto. * inferior.h (unsigned_pointer_to_address): Ditto. (signed_pointer_to_address): Ditto. * gdbarch.sh (POINTER_TO_ADDRESS): Ditto. * gdbarch.h, gdbarch.c: Regenerate. * findvar.c (extract_long_unsigned_integer): Update. (extract_address): Update. (extract_typed_address): Update. (unsigned_pointer_to_address): Update. * values.c (unpack_long): Update. (unpack_double): Update. (unpack_pointer): Update. (unpack_field_as_long): Update. * d10v-tdep.c (d10v_pointer_to_address): Update. * avr-tdep.c (avr_pointer_to_address): Update. * scm-lang.c (scm_unpack): Update. * findvar.c (signed_pointer_to_address): Update.
Diffstat (limited to 'gdb/findvar.c')
-rw-r--r--gdb/findvar.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/findvar.c b/gdb/findvar.c
index 9a34b85..980bb57 100644
--- a/gdb/findvar.c
+++ b/gdb/findvar.c
@@ -115,7 +115,7 @@ That operation is not available on integers of more than %d bytes.",
function returns 1 and sets *PVAL. Otherwise it returns 0. */
int
-extract_long_unsigned_integer (void *addr, int orig_len, LONGEST *pval)
+extract_long_unsigned_integer (const void *addr, int orig_len, LONGEST *pval)
{
char *p, *first_addr;
int len;
@@ -173,7 +173,7 @@ extract_long_unsigned_integer (void *addr, int orig_len, LONGEST *pval)
else based on POINTER_TO_ADDRESS. */
CORE_ADDR
-extract_address (void *addr, int len)
+extract_address (const void *addr, int len)
{
/* Assume a CORE_ADDR can fit in a LONGEST (for now). Not sure
whether we want this to be true eventually. */
@@ -184,7 +184,7 @@ extract_address (void *addr, int len)
/* Treat the bytes at BUF as a pointer of type TYPE, and return the
address it represents. */
CORE_ADDR
-extract_typed_address (void *buf, struct type *type)
+extract_typed_address (const void *buf, struct type *type)
{
if (TYPE_CODE (type) != TYPE_CODE_PTR
&& TYPE_CODE (type) != TYPE_CODE_REF)
@@ -347,13 +347,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, void *buf)
+unsigned_pointer_to_address (struct type *type, const void *buf)
{
return extract_address (buf, TYPE_LENGTH (type));
}
CORE_ADDR
-signed_pointer_to_address (struct type *type, void *buf)
+signed_pointer_to_address (struct type *type, const void *buf)
{
return extract_signed_integer (buf, TYPE_LENGTH (type));
}