aboutsummaryrefslogtreecommitdiff
path: root/gdb/tm-mips.h
diff options
context:
space:
mode:
authorJohn Gilmore <gnu@cygnus>1993-02-02 02:08:19 +0000
committerJohn Gilmore <gnu@cygnus>1993-02-02 02:08:19 +0000
commit07c2fa3e5320e644e386e270e461151d207a6310 (patch)
tree91a1aa79408c8cf7b1716bc8a52b1b49bea92b87 /gdb/tm-mips.h
parent6edd74aef3d552b3498ec7fb3fc307c250e22cd9 (diff)
downloadgdb-07c2fa3e5320e644e386e270e461151d207a6310.zip
gdb-07c2fa3e5320e644e386e270e461151d207a6310.tar.gz
gdb-07c2fa3e5320e644e386e270e461151d207a6310.tar.bz2
* 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.
Diffstat (limited to 'gdb/tm-mips.h')
-rw-r--r--gdb/tm-mips.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/gdb/tm-mips.h b/gdb/tm-mips.h
index 93a3aef..772c09f 100644
--- a/gdb/tm-mips.h
+++ b/gdb/tm-mips.h
@@ -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)