aboutsummaryrefslogtreecommitdiff
path: root/gdb/core.c
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1993-07-10 05:03:22 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1993-07-10 05:03:22 +0000
commit58e49e2178609318ec612ec400d76a24c86b7d6d (patch)
tree113fde38c427472a953a30e42497f5d408515b26 /gdb/core.c
parent34df79fc9d631a7cacdb2f9a9e12d5e3f8c6dd1c (diff)
downloadgdb-58e49e2178609318ec612ec400d76a24c86b7d6d.zip
gdb-58e49e2178609318ec612ec400d76a24c86b7d6d.tar.gz
gdb-58e49e2178609318ec612ec400d76a24c86b7d6d.tar.bz2
* values.c, value.h (modify_field), callers: Make fieldval a LONGEST.
* h8300-tdep.c (NEXT_PROLOGUE_INSN): Make pword1 an INSN_WORD * not short *. * findvar.c, defs.h ({extract,store}_{signed_integer,unsigned_integer,address}): New routines to replace SWAP_TARGET_AND_HOST. All over: All uses of SWAP_TARGET_AND_HOST on integers replaced.
Diffstat (limited to 'gdb/core.c')
-rw-r--r--gdb/core.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gdb/core.c b/gdb/core.c
index 4c60fb7..4ef24d3 100644
--- a/gdb/core.c
+++ b/gdb/core.c
@@ -214,9 +214,8 @@ read_memory_integer (memaddr, len)
CORE_ADDR memaddr;
int len;
{
- char *buf;
+ char buf[sizeof (LONGEST)];
- buf = alloca (len);
read_memory (memaddr, buf, len);
return extract_signed_integer (buf, len);
}
@@ -226,9 +225,8 @@ read_memory_unsigned_integer (memaddr, len)
CORE_ADDR memaddr;
int len;
{
- char *buf;
+ char buf[sizeof (unsigned LONGEST)];
- buf = alloca (len);
read_memory (memaddr, buf, len);
return extract_unsigned_integer (buf, len);
}