aboutsummaryrefslogtreecommitdiff
path: root/gdb/values.c
diff options
context:
space:
mode:
authorSteve Chamberlain <sac@cygnus>1993-06-17 22:16:07 +0000
committerSteve Chamberlain <sac@cygnus>1993-06-17 22:16:07 +0000
commit7ccb1e4401c7746a72294725c4e738ea2526009e (patch)
tree9e96f39257205aa99f3c713aeaeac1c25b64f7dd /gdb/values.c
parent219cf232835824f679751b269a4905da7d74881a (diff)
downloadgdb-7ccb1e4401c7746a72294725c4e738ea2526009e.zip
gdb-7ccb1e4401c7746a72294725c4e738ea2526009e.tar.gz
gdb-7ccb1e4401c7746a72294725c4e738ea2526009e.tar.bz2
* configure.in (alpha-*-osf*), config/alpha/alpha-osf.mh: New
host. * sh-tdep.c (frame_find_saved_regs): Use NUM_REGS rather than hard wired (and wrong) constant. * values.c (unpack_long): Add case to unpack when target object is sizeof(int). * config/sh/tm-sh.h (REGISTER_NAMES): Know about the news ones the simulator defines.
Diffstat (limited to 'gdb/values.c')
-rw-r--r--gdb/values.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/values.c b/gdb/values.c
index c4a04ff..76c2429 100644
--- a/gdb/values.c
+++ b/gdb/values.c
@@ -717,6 +717,13 @@ unpack_long (type, valaddr)
SWAP_TARGET_AND_HOST (&retval, len);
return retval;
}
+ else if (len == sizeof(int))
+ {
+ unsigned int retval;
+ memcpy (&retval, valaddr, len);
+ SWAP_TARGET_AND_HOST (&retval, len);
+ return retval;
+ }
#ifdef CC_HAS_LONG_LONG
else if (len == sizeof(long long))
{