From 7ccb1e4401c7746a72294725c4e738ea2526009e Mon Sep 17 00:00:00 2001 From: Steve Chamberlain Date: Thu, 17 Jun 1993 22:16:07 +0000 Subject: * 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. --- gdb/values.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'gdb/values.c') 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)) { -- cgit v1.1