* stack.c (parse_frame_specification): Parse as many arguments
authorJohn Gilmore <gnu@cygnus>
Tue, 2 Feb 1993 02:08:19 +0000 (02:08 +0000)
committerJohn Gilmore <gnu@cygnus>
Tue, 2 Feb 1993 02:08:19 +0000 (02:08 +0000)
as there are (up to MAXARGS).  Pass all of them in argc, argv
format to SETUP_ARBITRARY_FRAME.  Put the burden of checking how
many there were, onto SETUP_ARBITRARY_FRAME.
* tm-mips.h, tm-sparc.h:  Corresponding changes.
* mips-tdep.c, sparc-tdep.c:  Ditto.

gdb/ChangeLog
gdb/tm-mips.h
gdb/tm-sparc.h

index 380271069b37e392fb7f3415406eea7557b2f5d0..c60ce50302d8f8468da2f155fd8f0345fa38ee37 100644 (file)
@@ -1,3 +1,12 @@
+Mon Feb  1 17:56:47 1993  John Gilmore  (gnu@cygnus.com)
+
+       * stack.c (parse_frame_specification):  Parse as many arguments
+       as there are (up to MAXARGS).  Pass all of them in argc, argv
+       format to SETUP_ARBITRARY_FRAME.  Put the burden of checking how
+       many there were, onto SETUP_ARBITRARY_FRAME.
+       * tm-mips.h, tm-sparc.h:  Corresponding changes.
+       * mips-tdep.c, sparc-tdep.c:  Ditto.
+
 Mon Feb  1 17:19:37 1993  John Gilmore  (gnu@cygnus.com)
 
        * hp300ux-nat.c:  Update copyrights.
index 93a3aef142082889c39b16289847b19473d5a40b..772c09f955c854b36bc933a83f6c760cbc454882 100644 (file)
@@ -1,7 +1,7 @@
 /* Definitions to make GDB run on a mips box under 4.3bsd.
-   Copyright (C) 1986, 1987, 1989, 1991, 1992 Free Software Foundation, Inc.
+   Copyright 1986, 1987, 1989, 1991, 1992, 1993 Free Software Foundation, Inc.
    Contributed by Per Bothner (bothner@cs.wisc.edu) at U.Wisconsin
-   and by Alessandro Forin (af@cs.cmu.edu) at CMU.
+   and by Alessandro Forin (af@cs.cmu.edu) at CMU..
 
 This file is part of GDB.
 
@@ -356,7 +356,7 @@ typedef struct mips_extra_func_info {
                                  fi->proc_desc->pdr.frameoffset); \
   }
 
-/* It takes two values to specify a frame (at least!) on the MIPS.  Sigh.
+/* It takes two values to specify a frame on the MIPS.  Sigh.
 
    In fact, at the moment, the *PC* is the primary value that sets up
    a frame.  The PC is looked up to see what function it's in; symbol
@@ -365,6 +365,8 @@ typedef struct mips_extra_func_info {
    (This is usually an offset from SP.)  FIXME -- this should be cleaned
    up so that the primary value is the SP, and the PC is used to disambiguate
    multiple functions with the same SP that are at different stack levels. */
-#define        FRAME_SPECIFICATION_DYADIC
+
+#define SETUP_ARBITRARY_FRAME(argc, argv) setup_arbitrary_frame (argc, argv)
+extern FRAME setup_arbitrary_frame ();
 
 #define STAB_REG_TO_REGNUM(num) ((num) < 32 ? (num) : (num)+FP0_REGNUM-32)
index 25fc6d3314097ef48e2aca51f525262fb8b29d48..0e0396529560b8cc1a6b75f0c556ff6b1d073dab 100644 (file)
@@ -1,6 +1,6 @@
 /* Target machine sub-parameters for SPARC, for GDB, the GNU debugger.
    This is included by other tm-*.h files to define SPARC cpu-related info.
-   Copyright 1986, 1987, 1989, 1991, 1992 Free Software Foundation, Inc.
+   Copyright 1986, 1987, 1989, 1991, 1992, 1993 Free Software Foundation, Inc.
    Contributed by Michael Tiemann (tiemann@mcc.com)
 
 This file is part of GDB.
@@ -187,6 +187,8 @@ extern CORE_ADDR sparc_pc_adjust();
 #define REGISTER_IN_WINDOW_P(regnum)   \
   ((regnum) >= 8 && (regnum) < 32)
 
+
+
 /* Number of bytes of storage in the actual machine representation
    for register N.  */
 
@@ -546,11 +548,11 @@ arguments.  */
 #define NO_SINGLE_STEP 1
 extern void single_step ();
 
-/* We need two arguments (in general) to the "info frame" command.
-   Note that the definition of this macro implies that there exists a
-   function "setup_arbitrary_frame" in sparc-tdep.c */
+/* We need more arguments in a frame specification for the
+   "frame" or "info frame" command.  */
 
-#define FRAME_SPECIFICATION_DYADIC
+#define SETUP_ARBITRARY_FRAME(argc, argv) setup_arbitrary_frame (argc, argv)
+extern FRAME setup_arbitrary_frame ();
 
 /* To print every pair of float registers as a double, we use this hook.  */
 
This page took 0.029438 seconds and 4 git commands to generate.