aboutsummaryrefslogtreecommitdiff
path: root/gdb/tm-mips.h
diff options
context:
space:
mode:
authorStu Grossman <grossman@cygnus>1992-03-31 01:21:01 +0000
committerStu Grossman <grossman@cygnus>1992-03-31 01:21:01 +0000
commitd1bb1d417052cccfaf3d74671d51a6be1ebe3e62 (patch)
tree092e02d56b80346454ffaa193df7743a7a29e01b /gdb/tm-mips.h
parentd26b50b794acb49dd37c959f7781f52d292a4d1a (diff)
downloadgdb-d1bb1d417052cccfaf3d74671d51a6be1ebe3e62.zip
gdb-d1bb1d417052cccfaf3d74671d51a6be1ebe3e62.tar.gz
gdb-d1bb1d417052cccfaf3d74671d51a6be1ebe3e62.tar.bz2
* mipsread.c (parse_symbol, parse_procedure): Re-do the way that
.gdbinfo. symbols are created. Move creation from parse_procedure to parse_symbol, where it is fairly easy to grow the symtab. This also fixes a symtab trashing bug on all mips-based systems. * (got_numargs, lookup_numargs, free_numargs): Delete. Not needed anymore. * tm-mips.h, tm-iris3.h, mips-tdep.c, mipsread.c: Re-do struct mips_extra_func_info, and all the PROC_xxx macros that look at it.
Diffstat (limited to 'gdb/tm-mips.h')
-rw-r--r--gdb/tm-mips.h20
1 files changed, 7 insertions, 13 deletions
diff --git a/gdb/tm-mips.h b/gdb/tm-mips.h
index 0716c9f..f7a5cd0 100644
--- a/gdb/tm-mips.h
+++ b/gdb/tm-mips.h
@@ -19,6 +19,12 @@ You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
+#ifndef LANGUAGE_C
+#define LANGUAGE_C
+#endif
+#include <sym.h>
+#include <symconst.h>
+
#if !defined (TARGET_BYTE_ORDER)
#define TARGET_BYTE_ORDER LITTLE_ENDIAN
#endif
@@ -320,20 +326,8 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
mipsread.c (ab)uses this to save memory */
typedef struct mips_extra_func_info {
- unsigned long adr; /* memory address of start of procedure */
- long isym; /* pointer to procedure symbol */
- long pad2; /* iline: start of line number entries*/
- long regmask; /* save register mask */
- long regoffset; /* save register offset */
long numargs; /* number of args to procedure (was iopt) */
- long fregmask; /* save floating point register mask */
- long fregoffset; /* save floating point register offset */
- long framesize; /* frameoffset: frame size */
- short framereg; /* frame pointer register */
- short pcreg; /* offset or reg of return pc */
- long lnLow; /* lowest line in the procedure */
- long lnHigh; /* highest line in the procedure */
- long pad3; /* cbLineOffset: byte offset for this procedure from the fd base */
+ PDR pdr; /* Procedure descriptor record */
} *mips_extra_func_info_t;
#define EXTRA_FRAME_INFO \