* configure.in (alpha-*-osf*), config/alpha/alpha-osf.mh: New
authorSteve Chamberlain <sac@cygnus>
Thu, 17 Jun 1993 22:16:07 +0000 (22:16 +0000)
committerSteve Chamberlain <sac@cygnus>
Thu, 17 Jun 1993 22:16:07 +0000 (22:16 +0000)
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/ChangeLog
gdb/config/alpha/.Sanitize [new file with mode: 0644]
gdb/config/alpha/alpha-osf1.mh [new file with mode: 0644]
gdb/config/sh/tm-sh.h
gdb/configure.in
gdb/sh-tdep.c
gdb/values.c

index 829fc3aa74abf44ebf83a38420213daf654a7e8d..bea4db0032d57cdc89f7e0ea6afe39ca95367fa0 100644 (file)
@@ -1,3 +1,14 @@
+Thu Jun 17 15:08:35 1993  Steve Chamberlain  (sac@phydeaux.cygnus.com)
+
+       * 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.
+
 Wed Jun 16 16:08:18 1993  K. Richard Pixley  (rich@sendai.cygnus.com)
 
        * NEWS: tracking user visible changes starting with
@@ -203,7 +214,7 @@ Tue Jun  8 17:54:09 1993  Rob Savoye  (rob@rtl.cygnus.com)
 
        * serial.c (serial_close): If scb is NULL, don't try to close
        it. 
-       * configure.in: Add support for rom68k and bug boot monitors.
+o      * configure.in: Add support for rom68k and bug boot monitors.
 
 Tue Jun  8 17:39:12 1993  Steve Chamberlain  (sac@phydeaux.cygnus.com)
 
diff --git a/gdb/config/alpha/.Sanitize b/gdb/config/alpha/.Sanitize
new file mode 100644 (file)
index 0000000..1d64d97
--- /dev/null
@@ -0,0 +1,30 @@
+# Each directory to survive it's way into a release will need a file
+# like this one called "./.Sanitize".  All keyword lines must exist,
+# and must exist in the order specified by this file.  Each directory
+# in the tree will be processed, top down, in the following order.
+
+# Hash started lines like this one are comments and will be deleted
+# before anything else is done.  Blank lines will also be squashed
+# out.
+
+# The lines between the "Do-first:" line and the "Things-to-keep:"
+# line are executed as a /bin/sh shell script before anything else is
+# done in this 
+
+Do-first:
+
+# All files listed between the "Things-to-keep:" line and the
+# "Files-to-sed:" line will be kept.  All other files will be removed.
+# Directories listed in this section will have their own Sanitize
+# called.  Directories not listed will be removed in their entirety
+# with rm -rf.
+
+Things-to-keep:
+
+alpha-osf.mh
+
+Things-to-lose:
+
+Do-last:
+
+# End of file.
diff --git a/gdb/config/alpha/alpha-osf1.mh b/gdb/config/alpha/alpha-osf1.mh
new file mode 100644 (file)
index 0000000..345779c
--- /dev/null
@@ -0,0 +1,13 @@
+# Host: Little-endian Alpha
+XDEPFILES= 
+XM_FILE= xm-alpha.h
+NAT_FILE= nm-alpha.h
+NATDEPFILES= infptrace.o inftarg.o corelow.o alpha-nat.o fork-child.o
+
+MMALLOC_LIB = 
+MMALLOC_DISABLE = -DNO_MMALLOC 
+MH_CFLAGS = -non_shared -DHOST_64_BIT="long"
+MUNCH_DEFINE=-B
+
+
+
index af2a0236a252bee293324d65388293a154b27500..7dc6819db0e03505a72c0141a9cc361be991f3db 100644 (file)
@@ -126,9 +126,9 @@ extern CORE_ADDR sh_skip_prologue ();
 #define REGISTER_NAMES \
   {"r0", "r1", "r2", "r3", "r4", "r5", "r6", "r7", \
    "r8", "r9", "r10","r11","r12","r13","r14","r15",\
-   "pc", "pr","gbr","vbr","mach","macl","sr","ticks","cycles","insts"     }
+   "pc", "pr","gbr","vbr","mach","macl","sr","ticks","stalls","cycles","insts" ,"plr","tlr"    }
 
-#define NUM_REGS 25
+#define NUM_REGS 28
 
 /* Register numbers of various important registers.
    Note that some of these values are "real" register numbers,
@@ -196,8 +196,6 @@ extern CORE_ADDR sh_skip_prologue ();
 #define FRAMELESS_FUNCTION_INVOCATION(FI, FRAMELESS) \
   (FRAMELESS) = frameless_look_for_prologue(FI)
 
-CORE_ADDR h8500_frame_chain (/* FRAME thisframe */);
-
 #define FRAME_CHAIN(FRAME)       sh_frame_chain(FRAME)
 #define FRAME_SAVED_PC(FRAME)    ((FRAME)->return_pc)
 #define FRAME_ARGS_ADDRESS(fi)   (fi)->frame
@@ -227,7 +225,7 @@ CORE_ADDR h8500_frame_chain (/* FRAME thisframe */);
 
 typedef unsigned short INSN_WORD;
 
-#define ADDR_BITS_REMOVE(addr) ((addr) & 0xfffff)
+#define ADDR_BITS_REMOVE(addr) ((addr) & 0xffffff)
 #define ADDR_BITS_SET(addr)    (addr)
 
 #define CALL_DUMMY_LENGTH 10
index 0078d8d696f9924d16e68706b4db9d5e6b314c1d..f0f6409a189a50eb5601571efed0a0a1fed2df29 100644 (file)
@@ -25,6 +25,8 @@ case "${host}" in
 
 a29k-*-*)              gdb_host=ultra3 ;;
 
+alpha-*-osf*)          gdb_host=alpha-osf1 ;;
+
 arm-*-*)               gdb_host=arm ;;
 
 c[12]-*-*)             gdb_host=convex ;;
index e70dfbb9c66d145e306cbf02330b02b8d59342e9..9a604895a5fde38f8eabe21ac40508783bc43271 100644 (file)
@@ -111,7 +111,7 @@ frame_find_saved_regs (fi, fsr)
      struct frame_info *fi;
      struct frame_saved_regs *fsr;
 {
-  int where[16];
+  int where[NUM_REGS];
   int rn;
   int have_fp = 0;
   int depth;
index c4a04ff989d49d4e90576f5c9c761a5becc2dcc7..76c2429586d55be73b326a20448dd904fa9cf176 100644 (file)
@@ -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))
       {
This page took 0.030228 seconds and 4 git commands to generate.