Commit cce74817 authored by Jason Molenda's avatar Jason Molenda
Browse files

import gdb-1999-06-07 snapshot

parent eb858bb4
1999-06-07 Keith Seitz <keiths@cygnus.com>
* v850ice.c (init_hidden_window): Do not rely on the existence of
a gui for window creation. Return boolean status.
(v850ice_open): Use boolean status of init_hidden_window.
Allow any ICE execution command to run under CLI. Maybe one
day gdb will use a real event loop and allow this code to run.
* configure.tgt: Configure the v850 ice for all cygwin-hosted
toolchains.
Mon Jun 7 23:37:26 1999 Andrew Cagney <cagney@amy.cygnus.com>
* config/mips/tm-mips.h (EXTRA_FRAME_INFO): Delete.
* mips-tdep.c (mips_init_extra_frame_info): Allocate saved_regs.
(temp_saved_regs): Replace struct with a simple pointer.
(set_reg_offset, mips32_heuristic_proc_desc, heuristic_proc_desc,
mips_init_extra_frame_info): Update.
Mon Jun 7 21:40:12 1999 Andrew Cagney <cagney@amy.cygnus.com>
* config/mips/tm-mips.h (EXTRA_FRAME_INFO): Move elements from here.
* mips-tdep.c (struct frame_extra_info): To here.
* mips-tdep.c (mips_print_extra_frame_info, mips_find_saved_regs,
mips_init_extra_frame_info, mips_pop_frame): Update
(mips_init_extra_frame_info): Allocate space for the extra info.
Mon Jun 7 21:08:50 1999 Andrew Cagney <cagney@amy.cygnus.com>
* config/mips/tm-mips.h (mips_init_extra_frame_info), mips-tdep.c:
Rename init_extra_frame_info. Add argument ``fromleaf''.
* config/mips/tm-mips.h (mips_print_extra_frame_info),
mips-tdep.c: New function.
(PRINT_EXTRA_FRAME_INFO): Update definition.
Mon Jun 7 20:11:07 1999 Andrew Cagney <cagney@amy.cygnus.com>
* config/mips/tm-mips.h, config/mips/tm-irix3.h,
config/mips/tm-tx19.h, config/mips/tm-tx19l.h,
config/mips/tm-tx39.h, config/mips/tm-tx39l.h: Rename macro
REGISTER_NAMES to MIPS_REGISTER_NAMES.
* config/mips/tm-mips.h (REGISTER_NAME): Define.
* mips-tdep.c (mips_processor_reg_names): New static variable.
(mips_register_name): New function.
(mips_set_processor_type): Update mips_processor_reg_names.
(mips_generic_reg_names): Initialize using MIPS_REGISTER_NAMES.
Sun Jun 6 11:09:19 1999 Andrew Cagney <cagney@b1.cygnus.com>
* remote.c (PBUFSIZ): Re-define so that value is computed at
run-time.
(MAXBUFBYTES): Re-define as a macro function.
1999-06-05 Fernando Nasser <fnasser@totem.to.cygnus.com>
* symtab.c (decode_line_1): Accept filenames with spaces in
'linespecs' when enclosed in double quotation marks and handle
drive specification is DOS format (D:).
1999-06-04 Jim Blandy <jimb@zwingli.cygnus.com>
* parse.c: Don't include <ctype.h> twice.
1999-06-04 David Taylor <taylor@louisiana.cygnus.com>
Sat May 15 12:16:09 1999 Per Bothner <bothner@deneb.cygnus.com>
* eval.c (evaluate_subexp_standard): Remove Gilmore rant.
(Of course C has "expected types", at least if you allow
brace-initializer expressions - as in Gcc.)
Remove NULLing out expect_type. Do pass NULL_TYPE in place
the incoming expect_type where appropriate.
Fri Jun 4 10:56:23 1999 Jeffrey A Law (law@cygnus.com)
* hppa-tdep.c (hppa_fix_call_dummy): Make it work for GCC compiled
executables without end.o. Clean up lots of mis-guided comments.
Fri Jun 4 17:10:36 1999 Andrew Cagney <cagney@b1.cygnus.com>
* parser-defs.h (std_regs): Replace array with pointer.
* parse.c (build_parse): Build the std_regs table according to the
standard registers available.
1999-06-03 Michael Snyder <msnyder@cleaver.cygnus.com>
* thread.c: eliminate the target_thread_vector (functionality
moved into the standard target vector).
* gdbthread.h: eliminate target_thread_vector. Move all related
defines into remote.c, since they are no longer shared with thread.c.
* remote.c: eliminate the target_thread_vector.
(remote_find_new_threads): change return type to void, consistent
with the target vector table. (cont_thread): rename continue_thread.
(record_currthread): remove dead code. (remote_thread_alive):
clean up and simplify. (threadref etc.): move definitions to here
from gdbthread.h.
1999-06-02 Jason Molenda (jsm@bugshack.cygnus.com)
* inftarg.c (child_create_inferior): Remove dead HPUX specific code
which tries to find csh.
* fork-child.c: Remove DEBUGGING predefine and conditionalized
printfs.
(fork_inferior): Remove dead HPUX specific code which assumes shell
is csh.
* hppa-tdep.c: Remove DEBUGGING and #if 0 debugging printfs.
* parse.c: Ditto.
* somread.c: Ditto.
Thu Jun 3 10:12:38 1999 Andrew Cagney <cagney@b1.cygnus.com>
* d10v-tdep.c (do_d10v_pop_frame): Rename d10v_pop_frame. Make
static.
* d10v-tdep.c (d10v_pop_frame), config/d10v/tm-d10v.h: New
function. Call generic_pop_current_frame.
* config/d10v/tm-d10v.h (POP_FRAME): Update.
* gdbarch.h, gdbarch.c (frame_num_args_unknown): New function.
* config/d10v/tm-d10v.h (DMEM_START, IMEM_START, STACK_START,
ARG1_REGNUM, ARGN_REGNUM, RET1_REGNUM): Move definitions from
here.
* d10v-tdep.c: To here.
* config/d10v/tm-d10v.h (struct type): Move declaration from here.
* gdbarch.h: To here.
* config/d10v/tm-d10v.h (struct frame_info, struct
frame_saved_regs, struct type): Delete declarations.
1999-06-02 Robert Hoehne <robert.hoehne@gmx.net>
* go32-nat.c: go32_terminal_init, go32_terminal_inferior and
go32_terminal_ours are new functions to save/restore the inferior`s
stdin/stdout filemodes
1999-06-02 Stan Shebs <shebs@andros.cygnus.com>
* MAINTAINERS: Add Mark Kettenis, Jeff Law, and Philippe De Muyter
as maintainers for Hurd, HP/UX, and COFF, respectively.
1999-06-02 Mark Kettenis <kettenis@gnu.org>
* gnu-nat.c (inf_continue): New function.
(struct inf): Use `unsigned int' instead of `int' for bit-fields.
Add new bit-field named `nomsg'.
(inf_validate_procinfo): Renamed from inf_validate_stopped, all
callers changed. Also update the `nomsg' and `traced' fields of
INF.
(make_inf): Initialize INF->nomsg.
(inf_cleanup): Reset INF->nomsg.
(inf_detach): Call `inf_validate_procinfo'. Call `inf_continue'
instead of `inf_signal' if the inferior does not have a message
port.
(gnu_resume): Likewise.
(gnu_create_inferior): Reset INF->nomsg in `attach_to_child'.
Call `inf_validate_procinfo' after returning from `fork_inferior'.
(gnu_attach): Update signal thread and tracing state.
* config/i386/tm-i386gnu.h: Include "i386/tm-i386.h" instead of
"i386/tm-i386v.h".
(STACK_END_ADDR): Remove.
(SIGCONTEXT_PC_OFFSET): New define.
Include "tm-sysv4.h".
1999-06-02 J.T. Conklin <jtc@redback.com>
* config/tm-vxworks.h: New file, header for definitions common to
all vxWorks targets.
* config/a29k/tm-vx29k.h, config/i960/tm-vx960.h,
config/m68k/tm-vx68.h, config/mips/tm-vxmips.h,
config/sparc/tm-vxsparc.h: Include tm-vxworks.h.
Wed Jun 2 17:37:03 1999 Jeffrey A Law (law@cygnus.com)
* config/pa/tm-hppa.h (IMPORT_SHLIB): New unwind stub type.
1999-06-02 Christopher Faylor <cgf@cygnus.com>
* configure.tgt: Alphabetically reorder some targets.
1999-06-02 Keith Seitz <keiths@cygnus.com>
* v850ice.c (v850ice_xfer_memory): Insert lost "break".
1999-06-02 Jim Blandy <jimb@zwingli.cygnus.com>
* rs6000-tdep.c (variants): Fix description of 750 register set.
(Thanks to J. T. Conklin.)
Wed Jun 2 16:10:08 1999 Andrew Cagney <cagney@b1.cygnus.com>
* config/d10v/tm-d10v.h (FRAME_INIT_SAVED_REGS): Replace
FRAME_FIND_SAVED_REGS.
(d10v_frame_init_saved_regs): Replace d10v_frame_find_saved_regs.
* d10v-tdep.c (d10v_pop_frame, d10v_frame_chain,
d10v_frame_init_saved_regs): Update.
* config/d10v/tm-d10v.h (EXTRA_FRAME_INFO): Delete.
* d10v-tdep.c (struct frame_extra_info): Define.
(d10v_init_extra_frame_info, d10v_pop_frame, d10v_frame_chain,
d10v_frame_find_saved_regs): Update.
Tue Jun 1 13:36:31 1999 Philippe De Muyter <phdm@macqel.be>
* config/m68k/tm-delta68.h (FRAME_NUM_ARGS): Macro prototype fixed.
* config/m68k/tm-news.h, config/ns32k/tm-merlin.h: Ditto.
* config/ns32k/tm-umax.h (FRAME_NUM_ARGS): Old macro definition
removed; new macro prototype fixed.
Wed Jun 2 11:18:37 1999 Andrew Cagney <cagney@b1.cygnus.com>
* defs.h (REGISTER_NAME): Move compatibility definition from here.
* gdbarch.h: To here.
* frame.h, blockframe.c (generic_fix_call_dummy): New
stub function.
Tue Jun 1 18:47:54 1999 Andrew Cagney <cagney@b1.cygnus.com>
* parse.c (build_parse): New function. Initialize
......
......@@ -17,10 +17,13 @@ elf reader Jim Blandy jimb@cygnus.com
stabs reader Jim Blandy jimb@cygnus.com
x86 linux native Jim Blandy jimb@cygnus.com
Scheme support Jim Blandy jimb@cygnus.com
hurd native Mark Kettenis kettenis@wins.va.nl
hpux, hp pa native Jeff Law law@cygnus.com
m32r target Michael Snyder msnyder@cygnus.com
tracing Michael Snyder msnyder@cygnus.com
threads Michael Snyder msnyder@cygnus.com
breakpoint.c Michael Snyder msnyder@cygnus.com
coff reader Philippe De Muyter phdm@macqel.be
macos host & native Stan Shebs shebs@cygnus.com
sds protocol Stan Shebs shebs@cygnus.com
rdi/adp protocol Stan Shebs shebs@cygnus.com
......
......@@ -219,7 +219,7 @@ CDEPS = $(XM_CDEPS) $(TM_CDEPS) $(NAT_CDEPS) $(SIM) $(BFD) $(READLINE) \
ADD_FILES = $(REGEX) $(XM_ADD_FILES) $(TM_ADD_FILES) $(NAT_ADD_FILES)
ADD_DEPS = $(REGEX1) $(XM_ADD_FILES) $(TM_ADD_FILES) $(NAT_ADD_FILES)
VERSION = 19990601
VERSION = 19990607
DIST=gdb
LINT=/usr/5bin/lint
......
......@@ -1107,7 +1107,8 @@ pc_in_call_dummy_at_entry_point (pc, sp, frame_address)
* zero, and CALL_DUMMY_LOCATION to AT_ENTRY. Then you must remember
* to define PUSH_RETURN_ADDRESS, because no call instruction will be
* being executed by the target. Also FRAME_CHAIN_VALID as
* generic_frame_chain_valid. */
* generic_frame_chain_valid and FIX_CALL_DUMMY as
* generic_fix_call_dummy. */
/* Dummy frame. This saves the processor state just prior to setting
up the inferior function call. Older targets save the registers
......@@ -1272,6 +1273,23 @@ generic_frame_chain_valid (fp, fi)
&& !inside_entry_file (FRAME_SAVED_PC(fi)));
}
/* Function: fix_call_dummy
Stub function. Generic dumy frames typically do not need to fix
the frame being created */
void
generic_fix_call_dummy (dummy, pc, fun, nargs, args, type, gcc_p)
char *dummy;
CORE_ADDR pc;
CORE_ADDR fun;
int nargs;
struct value **args;
struct type *type;
int gcc_p;
{
return;
}
/* Function: get_saved_register
Find register number REGNUM relative to FRAME and put its (raw,
target format) contents in *RAW_BUFFER.
......
/* Target machine description for VxWorks on the 29k, for GDB, the GNU debugger.
Copyright 1994 Free Software Foundation, Inc.
Copyright 1994, 1999 Free Software Foundation, Inc.
Contributed by Cygnus Support.
This file is part of GDB.
......@@ -19,10 +19,7 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#include "a29k/tm-a29k.h"
#define GDBINIT_FILENAME ".vxgdbinit"
#define DEFAULT_PROMPT "(vxgdb) "
#include "tm-vxworks.h"
/* Number of registers in a ptrace_getregs call. */
......
......@@ -31,20 +31,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#define FUNCTION_START_OFFSET 0
/* these are the addresses the D10V-EVA board maps data */
/* and instruction memory to. */
#define DMEM_START 0x0000000
#define IMEM_START 0x1000000
#define STACK_START 0x0007ffe
#ifdef __STDC__ /* Forward decls for prototypes */
struct frame_info;
struct frame_saved_regs;
struct type;
struct value;
#endif
/* Advance PC across any function entry prologue instructions
to reach some "real" code. */
......@@ -74,6 +60,8 @@ extern char *d10v_register_name PARAMS ((int reg_nr));
to be actual register numbers as far as the user is concerned
but do serve to get the desired values when passed to read_register. */
/* Used by both d10v-tdep.c and remote-d10v.c */
#define R0_REGNUM 0
#define LR_REGNUM 13
#define SP_REGNUM 15
......@@ -85,8 +73,11 @@ extern char *d10v_register_name PARAMS ((int reg_nr));
#define DMAP_REGNUM 34
#define A0_REGNUM 35
/* ??? */
#define REGISTER_SIZE 2
/* Say how much memory is needed to store a copy of the register set */
#define REGISTER_BYTES ((NUM_REGS-2)*2+16)
#define REGISTER_BYTES ((37/*NUM_REGS*/-2)*2+16)
/* Index within `registers' of the first byte of the space for
register N. */
......@@ -117,14 +108,13 @@ extern int d10v_register_virtual_size PARAMS ((int reg_nr));
extern struct type *d10v_register_virtual_type PARAMS ((int reg_nr));
#define REGISTER_VIRTUAL_TYPE(N) (d10v_register_virtual_type (N))
/* convert $pc and $sp to/from virtual addresses */
extern int d10v_register_convertible PARAMS ((int nr));
#define REGISTER_CONVERTIBLE(N) (d10v_register_convertible ((N)))
extern void d10v_register_convert_to_virtual PARAMS ((int regnum, struct type *type, char *from, char *to));
extern void d10v_register_convert_to_raw PARAMS ((struct type *type, int regnum, char *from, char *to));
#define REGISTER_CONVERTIBLE(N) (d10v_register_convertible ((N)))
#define REGISTER_CONVERT_TO_VIRTUAL(REGNUM,TYPE,FROM,TO) \
d10v_register_convert_to_virtual ((REGNUM), (TYPE), (FROM), (TO))
extern void d10v_register_convert_to_raw PARAMS ((struct type *type, int regnum, char *from, char *to));
#define REGISTER_CONVERT_TO_RAW(TYPE,REGNUM,FROM,TO) \
d10v_register_convert_to_raw ((TYPE), (REGNUM), (FROM), (TO))
......@@ -143,10 +133,6 @@ extern CORE_ADDR d10v_convert_daddr_to_raw PARAMS ((CORE_ADDR x));
extern CORE_ADDR d10v_convert_iaddr_to_raw PARAMS ((CORE_ADDR x));
#define D10V_CONVERT_IADDR_TO_RAW(X) (d10v_convert_iaddr_to_raw (X))
#define ARG1_REGNUM R0_REGNUM
#define ARGN_REGNUM 3
#define RET1_REGNUM R0_REGNUM
/* Store the address of the place in which to copy the structure the
subroutine will return. This is called from call_function.
......@@ -184,21 +170,14 @@ extern use_struct_convention_fn d10v_use_struct_convention;
#define USE_STRUCT_CONVENTION(gcc_p, type) d10v_use_struct_convention (gcc_p, type)
/* Define other aspects of the stack frame.
we keep a copy of the worked out return pc lying around, since it
is a useful bit of info */
#define EXTRA_FRAME_INFO \
CORE_ADDR return_pc; \
int frameless; \
int size;
extern void d10v_init_extra_frame_info PARAMS ((int fromleaf, struct frame_info *fi));
#define INIT_EXTRA_FRAME_INFO(fromleaf, fi) \
d10v_init_extra_frame_info(fromleaf, fi)
extern void d10v_init_extra_frame_info PARAMS (( int fromleaf, struct frame_info *fi ));
/* A macro that tells us whether the function invocation represented
by FI does not have a frame on the stack associated with it. If it
does not, FRAMELESS is set to 1, else 0. */
......@@ -234,17 +213,15 @@ extern CORE_ADDR d10v_saved_pc_after_call PARAMS ((struct frame_info *frame));
#define FRAME_ARGS_SKIP 0
/* Put here the code to store, into a struct frame_saved_regs,
the addresses of the saved registers of frame described by FRAME_INFO.
/* Put here the code to store, into frame_info->saved_regs, the
addresses of the saved registers of frame described by FRAME_INFO.
This includes special registers such as pc and fp saved in special
ways in the stack frame. sp is even more special:
the address we return for it IS the sp for the next frame. */
#define FRAME_FIND_SAVED_REGS(frame_info, frame_saved_regs) \
d10v_frame_find_saved_regs(frame_info, &(frame_saved_regs))
ways in the stack frame. sp is even more special: the address we
return for it IS the sp for the next frame. */
extern void d10v_frame_find_saved_regs PARAMS ((struct frame_info *, struct frame_saved_regs *));
extern void d10v_frame_init_saved_regs PARAMS ((struct frame_info *));
#define FRAME_INIT_SAVED_REGS(frame_info) \
d10v_frame_init_saved_regs(frame_info)
/* DUMMY FRAMES. Need these to support inferior function calls. They
work like this on D10V: First we set a breakpoint at 0 or __start.
......@@ -255,8 +232,8 @@ extern void d10v_frame_find_saved_regs PARAMS ((struct frame_info *, struct fram
breakpoint, clear the break point and pop the old register contents
off the stack. */
extern void d10v_pop_frame PARAMS ((struct frame_info *frame));
#define POP_FRAME generic_pop_current_frame (d10v_pop_frame)
extern void d10v_pop_frame PARAMS ((void));
#define POP_FRAME d10v_pop_frame ()
#define USE_GENERIC_DUMMY_FRAMES 1
#define CALL_DUMMY {0}
......@@ -289,18 +266,8 @@ extern CORE_ADDR d10v_push_arguments PARAMS ((int, struct value **, CORE_ADDR, i
#define EXTRACT_RETURN_VALUE(TYPE,REGBUF,VALBUF) \
d10v_extract_return_value(TYPE, REGBUF, VALBUF)
extern void
d10v_extract_return_value PARAMS ((struct type *, char *, char *));
#define REGISTER_SIZE 2
extern void d10v_extract_return_value PARAMS ((struct type *, char *, char *));
#ifdef CC_HAS_LONG_LONG
# define LONGEST long long
#else
# define LONGEST long
#endif
#define ULONGEST unsigned LONGEST
void d10v_write_pc PARAMS ((CORE_ADDR val, int pid));
CORE_ADDR d10v_read_pc PARAMS ((int pid));
......
/* Macro definitions for i386, GNU Hurd
Copyright (C) 1992 Free Software Foundation, Inc.
Copyright (C) 1992, 1999 Free Software Foundation, Inc.
This file is part of GDB.
......@@ -17,6 +17,9 @@ 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#ifndef TM_I386GNU_H
#define TM_I386GNU_H 1
/* Include common definitions for gnu systems */
#include "nm-gnu.h"
......@@ -33,16 +36,15 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
/* we can do it */
#define ATTACH_DETACH 1
/* Sigh. There should be a file for i386 but no sysv stuff in it */
#include "i386/tm-i386v.h"
#include "i386/tm-i386.h"
/* I want to test this float info code. See comment in tm-i386v.h */
#undef FLOAT_INFO
#define FLOAT_INFO { i386_mach3_float_info (); }
/* Address of end of stack space.
* for MACH, see <machine/vmparam.h>
* @@@ I don't know what is in the 5 ints...
*/
#undef STACK_END_ADDR
#define STACK_END_ADDR (0xc0000000-sizeof(int [5]))
/* Offset to saved PC in sigcontext. */
#define SIGCONTEXT_PC_OFFSET 68
/* We need this file for the SOLIB_TRAMPOLINE stuff. */
#include "tm-sysv4.h"
#endif /* TM_I386GNU_H */
/* Parameters for VxWorks Intel 960's, for GDB, the GNU debugger.
Copyright (C) 1986-1991 Free Software Foundation, Inc.
Copyright (C) 1986-1991, 1999 Free Software Foundation, Inc.
Contributed by Cygnus Support.
This file is part of GDB.
......@@ -19,16 +19,13 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#include "i960/tm-i960.h"
#include "tm-vxworks.h"
/* Under VxWorks the IP isn't filled in. Skip it, go with RIP, which has
the real value. */
#undef PC_REGNUM
#define PC_REGNUM RIP_REGNUM
#define GDBINIT_FILENAME ".vxgdbinit"
#define DEFAULT_PROMPT "(vxgdb) "
/* We have more complex, useful breakpoints on the target.
Amount ip must be decremented by after a breakpoint. */
......
......@@ -76,7 +76,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
Can return -1, meaning no way to tell. */
extern int delta68_frame_num_args PARAMS ((struct frame_info *fi));
#define FRAME_NUM_ARGS (delta68_frame_num_args ((fi)))
#define FRAME_NUM_ARGS(fi) (delta68_frame_num_args ((fi)))
/* On M68040 versions of sysV68 R3V7.1, ptrace(PT_WRITE_I) does not clear
the processor's instruction cache as it should. */
......
......@@ -60,6 +60,6 @@ Here is an m-news.h file for gdb. It supports the 68881 registers.
Can return -1, meaning no way to tell. */
extern int news_frame_num_args PARAMS ((struct frame_info *fi));
#define FRAME_NUM_ARGS (news_frame_num_args ((fi)))
#define FRAME_NUM_ARGS(fi) (news_frame_num_args ((fi)))
#include "m68k/tm-m68k.h"
/* Target machine description for VxWorks m68k's, for GDB, the GNU debugger.
Copyright 1986, 1987, 1989, 1991, 1992, 1993 Free Software Foundation, Inc.
Copyright 1986, 1987, 1989, 1991, 1992, 1993, 1999 Free Software Foundation, Inc.
Contributed by Cygnus Support.
This file is part of GDB.
......@@ -18,10 +18,6 @@ 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#define GDBINIT_FILENAME ".vxgdbinit"
#define DEFAULT_PROMPT "(vxgdb) "
/* GCC is probably the only compiler used on this configuration. So
get this right even if the code which detects gcc2_compiled. is
still broken. */
......@@ -32,6 +28,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#define DECR_PC_AFTER_BREAK 0
#include "m68k/tm-m68k.h"
#include "tm-vxworks.h"
/* Takes the current frame-struct pointer and returns the chain-pointer
to get to the calling frame.
......
......@@ -27,7 +27,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
/* Redefine register numbers for SGI. */
#undef NUM_REGS
#undef REGISTER_NAMES
#undef MIPS_REGISTER_NAMES
#undef FP0_REGNUM
#undef PC_REGNUM
#undef PS_REGNUM
......@@ -45,7 +45,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
/* Initializer for an array of names of registers.
There should be NUM_REGS strings in this initializer. */
#define REGISTER_NAMES \
#define MIPS_REGISTER_NAMES \
{ "zero", "at", "v0", "v1", "a0", "a1", "a2", "a3", \
"t0", "t1", "t2", "t3", "t4", "t5", "t6", "t7", \
"s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", \
......
......@@ -151,11 +151,16 @@ extern breakpoint_from_pc_fn mips_breakpoint_from_pc;
#define NUM_REGS 90
#endif
/* Given the register index, return the name of the corresponding
register. */
extern char *mips_register_name PARAMS ((int regnr));
#define REGISTER_NAME(i) mips_register_name (i)
/* Initializer for an array of names of registers.
There should be NUM_REGS strings in this initializer. */
#ifndef REGISTER_NAMES
#define REGISTER_NAMES \
#ifndef MIPS_REGISTER_NAMES
#define MIPS_REGISTER_NAMES \
{ "zero", "at", "v0", "v1", "a0", "a1", "a2", "a3", \
"t0", "t1", "t2", "t3", "t4", "t5", "t6", "t7", \
"s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", \
......@@ -438,20 +443,13 @@ typedef struct mips_extra_func_info {
PDR pdr; /* Procedure descriptor record */
} *mips_extra_func_info_t;
#define EXTRA_FRAME_INFO \
mips_extra_func_info_t proc_desc; \
int num_args;
#define INIT_EXTRA_FRAME_INFO(fromleaf, fci) init_extra_frame_info(fci)
extern void init_extra_frame_info PARAMS ((struct frame_info *));
extern void mips_init_extra_frame_info PARAMS ((int fromleaf, struct frame_info *));
#define INIT_EXTRA_FRAME_INFO(fromleaf, fci) \
mips_init_extra_frame_info(fromleaf, fci)
extern void mips_print_extra_frame_info PARAMS ((struct frame_info *frame));
#define PRINT_EXTRA_FRAME_INFO(fi) \
{ \
if (fi && fi->proc_desc && fi->proc_desc->pdr.framereg < NUM_REGS) \
printf_filtered (" frame pointer is at %s+%d\n", \
REGISTER_NAME (fi->proc_desc->pdr.framereg), \
fi->proc_desc->pdr.frameoffset); \
}
mips_print_extra_frame_info (fi)
/* It takes two values to specify a frame on the MIPS.
......
......@@ -22,8 +22,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#include "mips/tm-bigmips.h"
#undef REGISTER_NAMES
#define REGISTER_NAMES \
#undef MIPS_REGISTER_NAMES
#define MIPS_REGISTER_NAMES \
{ "zero", "at", "v0", "v1", "a0", "a1", "a2", "a3", \
"t0", "t1", "t2", "t3", "t4", "t5", "t6", "t7", \
"s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", \
......
......@@ -22,8 +22,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#include "mips/tm-mips.h"
#undef REGISTER_NAMES
#define REGISTER_NAMES \
#undef MIPS_REGISTER_NAMES
#define MIPS_REGISTER_NAMES \
{ "zero", "at", "v0", "v1", "a0", "a1", "a2", "a3", \
"t0", "t1", "t2", "t3", "t4", "t5", "t6", "t7", \
"s0", "s1", "s2", "s3", "s4", "s5", "s6", "s7", \
......
/* Target machine description for VxWorks MIPS's, for GDB, the GNU debugger.
Copyright 1996 Free Software Foundation, Inc.
Copyright 1996, 1999 Free Software Foundation, Inc.
Contributed by Cygnus Support.