1999-04-16 01:35:26 +00:00
|
|
|
/* Definitions to make GDB run on an Alpha box under OSF1. This is
|
2002-02-24 22:56:08 +00:00
|
|
|
also used by the Alpha/Netware and Alpha GNU/Linux targets.
|
|
|
|
|
2004-02-16 23:59:43 +00:00
|
|
|
Copyright 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2002, 2004 Free
|
2002-02-24 22:56:08 +00:00
|
|
|
Software Foundation, Inc.
|
1999-04-16 01:35:26 +00:00
|
|
|
|
1999-07-07 20:19:36 +00:00
|
|
|
This file is part of GDB.
|
1999-04-16 01:35:26 +00:00
|
|
|
|
1999-07-07 20:19:36 +00:00
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
|
|
(at your option) any later version.
|
1999-04-16 01:35:26 +00:00
|
|
|
|
1999-07-07 20:19:36 +00:00
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
1999-04-16 01:35:26 +00:00
|
|
|
|
1999-07-07 20:19:36 +00:00
|
|
|
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. */
|
1999-04-16 01:35:26 +00:00
|
|
|
|
|
|
|
#ifndef TM_ALPHA_H
|
|
|
|
#define TM_ALPHA_H
|
|
|
|
|
|
|
|
#include "bfd.h"
|
|
|
|
#include "coff/sym.h" /* Needed for PDR below. */
|
|
|
|
#include "coff/symconst.h"
|
|
|
|
|
|
|
|
struct frame_info;
|
|
|
|
struct symbol;
|
|
|
|
|
|
|
|
/* Special symbol found in blocks associated with routines. We can hang
|
|
|
|
alpha_extra_func_info_t's off of this. */
|
|
|
|
|
|
|
|
#define MIPS_EFI_SYMBOL_NAME "__GDB_EFI_INFO__"
|
2000-05-28 01:12:42 +00:00
|
|
|
extern void ecoff_relocate_efi (struct symbol *, CORE_ADDR);
|
1999-04-16 01:35:26 +00:00
|
|
|
|
2002-04-21 16:52:39 +00:00
|
|
|
#define RA_REGNUM 26 /* XXXJRT needed by mdebugread.c */
|
|
|
|
|
1999-04-16 01:35:26 +00:00
|
|
|
/* Specific information about a procedure.
|
|
|
|
This overlays the ALPHA's PDR records,
|
|
|
|
alpharead.c (ab)uses this to save memory */
|
|
|
|
|
1999-07-07 20:19:36 +00:00
|
|
|
typedef struct alpha_extra_func_info
|
|
|
|
{
|
|
|
|
long numargs; /* number of args to procedure (was iopt) */
|
|
|
|
PDR pdr; /* Procedure descriptor record */
|
|
|
|
}
|
|
|
|
*alpha_extra_func_info_t;
|
1999-04-16 01:35:26 +00:00
|
|
|
|
|
|
|
/* Define the extra_func_info that mipsread.c needs.
|
|
|
|
FIXME: We should define our own PDR interface, perhaps in a separate
|
|
|
|
header file. This would get rid of the <bfd.h> inclusion in all sources
|
|
|
|
and would abstract the mips/alpha interface from ecoff. */
|
|
|
|
#define mips_extra_func_info alpha_extra_func_info
|
|
|
|
#define mips_extra_func_info_t alpha_extra_func_info_t
|
|
|
|
|
|
|
|
/* It takes two values to specify a frame on the ALPHA. 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
|
|
|
|
information from that function tells us which register is the frame
|
|
|
|
pointer base, and what offset from there is the "virtual frame pointer".
|
|
|
|
(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. */
|
|
|
|
|
2002-04-19 05:11:53 +00:00
|
|
|
#define SETUP_ARBITRARY_FRAME(argc, argv) \
|
|
|
|
alpha_setup_arbitrary_frame (argc, argv)
|
|
|
|
extern struct frame_info *alpha_setup_arbitrary_frame (int, CORE_ADDR *);
|
1999-04-16 01:35:26 +00:00
|
|
|
|
|
|
|
#endif /* TM_ALPHA_H */
|