2002-08-06 Andrew Cagney <cagney@redhat.com>

* configure.tgt: Make arc-*-* obsolete.
* NEWS: Mention that arc-*-* has been identifed as obsolete.
* MAINTAINERS: Make arc-elf obsolete.
* arc-tdep.c: Make file obsolete.
* config/arc/arc.mt: Ditto.
* config/arc/tm-arc.h: Ditto.
This commit is contained in:
Andrew Cagney 2002-08-06 14:12:47 +00:00
parent 7fc44b9cd6
commit eb4c54a288
7 changed files with 1089 additions and 1081 deletions

View File

@ -1,3 +1,12 @@
2002-08-06 Andrew Cagney <cagney@redhat.com>
* configure.tgt: Make arc-*-* obsolete.
* NEWS: Mention that arc-*-* has been identifed as obsolete.
* MAINTAINERS: Make arc-elf obsolete.
* arc-tdep.c: Make file obsolete.
* config/arc/arc.mt: Ditto.
* config/arc/tm-arc.h: Ditto.
2002-08-05 Theodore A. Roth <troth@verinet.com> 2002-08-05 Theodore A. Roth <troth@verinet.com>
* gdb/avr-tdep.c(avr_skip_prologue): Fix to return the correct pc. * gdb/avr-tdep.c(avr_skip_prologue): Fix to return the correct pc.

View File

@ -59,9 +59,7 @@ maintainer works with the native maintainer when resolving API issues.
alpha --target=alpha-dec-osf4.0a -Werror alpha --target=alpha-dec-osf4.0a -Werror
Maintenance only Maintenance only
arc --target=arc-elf ,-Werror arc (--target=arc-elf OBSOLETE)
Maintenance only
OBSOLETE candidate, not multi-arch
arm --target=arm-elf , arm --target=arm-elf ,
Fernando Nasser fnasser@redhat.com Fernando Nasser fnasser@redhat.com

View File

@ -59,6 +59,7 @@ Mitsubishi D30V d30v-*-*
OS/9000 i[34]86-*-os9k OS/9000 i[34]86-*-os9k
Fujitsu FR30 fr30-*-elf* Fujitsu FR30 fr30-*-elf*
Motorola Delta 88000 running Sys V m88k-motorola-sysv or delta88 Motorola Delta 88000 running Sys V m88k-motorola-sysv or delta88
Argonaut Risc Chip (ARC) arc-*-*
* OBSOLETE languages * OBSOLETE languages

File diff suppressed because it is too large Load Diff

View File

@ -1,3 +1,3 @@
# Target: ARC processor # OBSOLETE # Target: ARC processor
TDEPFILES = arc-tdep.o # OBSOLETE TDEPFILES = arc-tdep.o
TM_FILE = tm-arc.h # OBSOLETE TM_FILE = tm-arc.h

View File

@ -1,336 +1,336 @@
/* Parameters for target machine ARC, for GDB, the GNU debugger. // OBSOLETE /* Parameters for target machine ARC, for GDB, the GNU debugger.
Copyright 1995, 1996, 1998, 1999, 2000 Free Software Foundation, Inc. // OBSOLETE Copyright 1995, 1996, 1998, 1999, 2000 Free Software Foundation, Inc.
Contributed by Cygnus Support. // OBSOLETE Contributed by Cygnus Support.
// OBSOLETE
This file is part of GDB. // OBSOLETE This file is part of GDB.
// OBSOLETE
This program is free software; you can redistribute it and/or modify // OBSOLETE 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 // OBSOLETE it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or // OBSOLETE the Free Software Foundation; either version 2 of the License, or
(at your option) any later version. // OBSOLETE (at your option) any later version.
// OBSOLETE
This program is distributed in the hope that it will be useful, // OBSOLETE This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of // OBSOLETE but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // OBSOLETE MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details. // OBSOLETE GNU General Public License for more details.
// OBSOLETE
You should have received a copy of the GNU General Public License // OBSOLETE You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software // OBSOLETE along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, // OBSOLETE Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */ // OBSOLETE Boston, MA 02111-1307, USA. */
// OBSOLETE
#include "regcache.h" // OBSOLETE #include "regcache.h"
// OBSOLETE
/* Used by arc-tdep.c to set the default cpu type. */ // OBSOLETE /* Used by arc-tdep.c to set the default cpu type. */
#define DEFAULT_ARC_CPU_TYPE "base" // OBSOLETE #define DEFAULT_ARC_CPU_TYPE "base"
// OBSOLETE
/* Offset from address of function to start of its code. // OBSOLETE /* Offset from address of function to start of its code.
Zero on most machines. */ // OBSOLETE Zero on most machines. */
#define FUNCTION_START_OFFSET 0 // OBSOLETE #define FUNCTION_START_OFFSET 0
// OBSOLETE
/* Advance PC across any function entry prologue instructions // OBSOLETE /* Advance PC across any function entry prologue instructions
to reach some "real" code. */ // OBSOLETE to reach some "real" code. */
// OBSOLETE
#define SKIP_PROLOGUE(pc) (arc_skip_prologue (pc, 0)) // OBSOLETE #define SKIP_PROLOGUE(pc) (arc_skip_prologue (pc, 0))
extern CORE_ADDR arc_skip_prologue (CORE_ADDR, int); // OBSOLETE extern CORE_ADDR arc_skip_prologue (CORE_ADDR, int);
// OBSOLETE
#define PROLOGUE_FRAMELESS_P(pc) arc_prologue_frameless_p(pc) // OBSOLETE #define PROLOGUE_FRAMELESS_P(pc) arc_prologue_frameless_p(pc)
extern int arc_prologue_frameless_p (CORE_ADDR); // OBSOLETE extern int arc_prologue_frameless_p (CORE_ADDR);
// OBSOLETE
/* Sequence of bytes for breakpoint instruction. // OBSOLETE /* Sequence of bytes for breakpoint instruction.
??? The current value is "sr -1,[-1]" and is for the simulator only. // OBSOLETE ??? The current value is "sr -1,[-1]" and is for the simulator only.
The simulator watches for this and does the right thing. // OBSOLETE The simulator watches for this and does the right thing.
The hardware version will have to associate with each breakpoint // OBSOLETE The hardware version will have to associate with each breakpoint
the sequence "flag 1; nop; nop; nop". IE: The breakpoint insn will not // OBSOLETE the sequence "flag 1; nop; nop; nop". IE: The breakpoint insn will not
be a fixed set of bits but instead will be a branch to a semi-random // OBSOLETE be a fixed set of bits but instead will be a branch to a semi-random
address. Presumably this will be cleaned up for "second silicon". */ // OBSOLETE address. Presumably this will be cleaned up for "second silicon". */
#define BIG_BREAKPOINT { 0x12, 0x1f, 0xff, 0xff } // OBSOLETE #define BIG_BREAKPOINT { 0x12, 0x1f, 0xff, 0xff }
#define LITTLE_BREAKPOINT { 0xff, 0xff, 0x1f, 0x12 } // OBSOLETE #define LITTLE_BREAKPOINT { 0xff, 0xff, 0x1f, 0x12 }
// OBSOLETE
/* Given the exposed pipeline, there isn't any one correct value. // OBSOLETE /* Given the exposed pipeline, there isn't any one correct value.
However, this value must be 4. GDB can't handle any other value (other than // OBSOLETE However, this value must be 4. GDB can't handle any other value (other than
zero). See for example infrun.c: // OBSOLETE zero). See for example infrun.c:
"prev_pc != stop_pc - DECR_PC_AFTER_BREAK" */ // OBSOLETE "prev_pc != stop_pc - DECR_PC_AFTER_BREAK" */
/* FIXME */ // OBSOLETE /* FIXME */
#define DECR_PC_AFTER_BREAK 8 // OBSOLETE #define DECR_PC_AFTER_BREAK 8
// OBSOLETE
/* We don't have a reliable single step facility. // OBSOLETE /* We don't have a reliable single step facility.
??? We do have a cycle single step facility, but that won't work. */ // OBSOLETE ??? We do have a cycle single step facility, but that won't work. */
#define SOFTWARE_SINGLE_STEP_P() 1 // OBSOLETE #define SOFTWARE_SINGLE_STEP_P() 1
extern void arc_software_single_step (enum target_signal, int); // OBSOLETE extern void arc_software_single_step (enum target_signal, int);
#define SOFTWARE_SINGLE_STEP(sig,bp_p) arc_software_single_step (sig, bp_p) // OBSOLETE #define SOFTWARE_SINGLE_STEP(sig,bp_p) arc_software_single_step (sig, bp_p)
// OBSOLETE
/* FIXME: Need to set STEP_SKIPS_DELAY. */ // OBSOLETE /* FIXME: Need to set STEP_SKIPS_DELAY. */
// OBSOLETE
/* Given a pc value as defined by the hardware, return the real address. // OBSOLETE /* Given a pc value as defined by the hardware, return the real address.
Remember that on the ARC blink contains that status register which // OBSOLETE Remember that on the ARC blink contains that status register which
includes PC + flags (so we have to mask out the flags). */ // OBSOLETE includes PC + flags (so we have to mask out the flags). */
#define ARC_PC_TO_REAL_ADDRESS(pc) (((pc) & 0xffffff) << 2) // OBSOLETE #define ARC_PC_TO_REAL_ADDRESS(pc) (((pc) & 0xffffff) << 2)
// OBSOLETE
/* Immediately after a function call, return the saved pc. // OBSOLETE /* Immediately after a function call, return the saved pc.
Can't always go through the frames for this because on some machines // OBSOLETE Can't always go through the frames for this because on some machines
the new frame is not set up until the new function // OBSOLETE the new frame is not set up until the new function
executes some instructions. */ // OBSOLETE executes some instructions. */
// OBSOLETE
#define SAVED_PC_AFTER_CALL(frame) \ // OBSOLETE #define SAVED_PC_AFTER_CALL(frame) \
(ARC_PC_TO_REAL_ADDRESS (read_register (BLINK_REGNUM))) // OBSOLETE (ARC_PC_TO_REAL_ADDRESS (read_register (BLINK_REGNUM)))
// OBSOLETE
/* Stack grows upward */ // OBSOLETE /* Stack grows upward */
// OBSOLETE
#define INNER_THAN(lhs,rhs) ((lhs) < (rhs)) // OBSOLETE #define INNER_THAN(lhs,rhs) ((lhs) < (rhs))
// OBSOLETE
/* Say how long (ordinary) registers are. This is a piece of bogosity // OBSOLETE /* Say how long (ordinary) registers are. This is a piece of bogosity
used in push_word and a few other places; REGISTER_RAW_SIZE is the // OBSOLETE used in push_word and a few other places; REGISTER_RAW_SIZE is the
real way to know how big a register is. */ // OBSOLETE real way to know how big a register is. */
#define REGISTER_SIZE 4 // OBSOLETE #define REGISTER_SIZE 4
// OBSOLETE
/* Number of machine registers */ // OBSOLETE /* Number of machine registers */
#define NUM_REGS 92 // OBSOLETE #define NUM_REGS 92
// OBSOLETE
/* Initializer for an array of names of registers. // OBSOLETE /* Initializer for an array of names of registers.
There should be NUM_REGS strings in this initializer. */ // OBSOLETE There should be NUM_REGS strings in this initializer. */
// OBSOLETE
#define REGISTER_NAMES \ // OBSOLETE #define REGISTER_NAMES \
{ \ // OBSOLETE { \
/* 0 */ "r0", "r1", "r2", "r3", "r4", "r5", "r6", "r7", \ // OBSOLETE /* 0 */ "r0", "r1", "r2", "r3", "r4", "r5", "r6", "r7", \
/* 8 */ "r8", "r9", "r10", "r11", "r12", "r13", "r14", "r15", \ // OBSOLETE /* 8 */ "r8", "r9", "r10", "r11", "r12", "r13", "r14", "r15", \
/* 16 */ "r16", "r17", "r18", "r19", "r20", "r21", "r22", "r23", \ // OBSOLETE /* 16 */ "r16", "r17", "r18", "r19", "r20", "r21", "r22", "r23", \
/* 24 */ "r24", "r25", "r26", "fp", "sp", "ilink1", "ilink2", "blink", \ // OBSOLETE /* 24 */ "r24", "r25", "r26", "fp", "sp", "ilink1", "ilink2", "blink", \
/* 32 */ "r32", "r33", "r34", "r35", "r36", "r37", "r38", "r39", \ // OBSOLETE /* 32 */ "r32", "r33", "r34", "r35", "r36", "r37", "r38", "r39", \
/* 40 */ "r40", "r41", "r42", "r43", "r44", "r45", "r46", "r47", \ // OBSOLETE /* 40 */ "r40", "r41", "r42", "r43", "r44", "r45", "r46", "r47", \
/* 48 */ "r48", "r49", "r50", "r51", "r52", "r53", "r54", "r55", \ // OBSOLETE /* 48 */ "r48", "r49", "r50", "r51", "r52", "r53", "r54", "r55", \
/* 56 */ "r56", "mlo", "mmid", "mhi", "lp_count", \ // OBSOLETE /* 56 */ "r56", "mlo", "mmid", "mhi", "lp_count", \
/* 61 */ "status", "sema", "lp_start", "lp_end", "identity", "debug", \ // OBSOLETE /* 61 */ "status", "sema", "lp_start", "lp_end", "identity", "debug", \
/* 67 */ "aux10", "aux11", "aux12", "aux13", "aux14", \ // OBSOLETE /* 67 */ "aux10", "aux11", "aux12", "aux13", "aux14", \
/* 72 */ "aux15", "aux16", "aux17", "aux18", "aux19", \ // OBSOLETE /* 72 */ "aux15", "aux16", "aux17", "aux18", "aux19", \
/* 77 */ "aux1a", "aux1b", "aux1c", "aux1d", "aux1e", \ // OBSOLETE /* 77 */ "aux1a", "aux1b", "aux1c", "aux1d", "aux1e", \
/* 82 */ "aux1f", "aux20", "aux21", "aux22", \ // OBSOLETE /* 82 */ "aux1f", "aux20", "aux21", "aux22", \
/* 86 */ "aux30", "aux31", "aux32", "aux33", "aux40", \ // OBSOLETE /* 86 */ "aux30", "aux31", "aux32", "aux33", "aux40", \
/* 91 */ "pc" \ // OBSOLETE /* 91 */ "pc" \
} // OBSOLETE }
// OBSOLETE
/* Register numbers of various important registers (used to index // OBSOLETE /* Register numbers of various important registers (used to index
into arrays of register names and register values). */ // OBSOLETE into arrays of register names and register values). */
// OBSOLETE
#define R0_REGNUM 0 /* First local register */ // OBSOLETE #define R0_REGNUM 0 /* First local register */
#define R59_REGNUM 59 /* Last local register */ // OBSOLETE #define R59_REGNUM 59 /* Last local register */
#define FP_REGNUM 27 /* Contains address of executing stack frame */ // OBSOLETE #define FP_REGNUM 27 /* Contains address of executing stack frame */
#define SP_REGNUM 28 /* stack pointer */ // OBSOLETE #define SP_REGNUM 28 /* stack pointer */
#define BLINK_REGNUM 31 /* link register */ // OBSOLETE #define BLINK_REGNUM 31 /* link register */
#define STA_REGNUM 61 /* processor status word */ // OBSOLETE #define STA_REGNUM 61 /* processor status word */
#define PC_REGNUM 91 /* instruction pointer */ // OBSOLETE #define PC_REGNUM 91 /* instruction pointer */
#define AUX_BEG_REGNUM 61 /* aux reg begins */ // OBSOLETE #define AUX_BEG_REGNUM 61 /* aux reg begins */
#define AUX_END_REGNUM 90 /* aux reg ends, pc not real aux reg */ // OBSOLETE #define AUX_END_REGNUM 90 /* aux reg ends, pc not real aux reg */
// OBSOLETE
/* Fake registers used to mark immediate data. */ // OBSOLETE /* Fake registers used to mark immediate data. */
#define SHIMM_FLAG_REGNUM 61 // OBSOLETE #define SHIMM_FLAG_REGNUM 61
#define LIMM_REGNUM 62 // OBSOLETE #define LIMM_REGNUM 62
#define SHIMM_REGNUM 63 // OBSOLETE #define SHIMM_REGNUM 63
// OBSOLETE
#define AUX_REG_MAP \ // OBSOLETE #define AUX_REG_MAP \
{ \ // OBSOLETE { \
{ 0, 1, 2, 3, 4, 5, \ // OBSOLETE { 0, 1, 2, 3, 4, 5, \
16, -1, -1, -1, -1, \ // OBSOLETE 16, -1, -1, -1, -1, \
-1, -1, -1, -1, -1, \ // OBSOLETE -1, -1, -1, -1, -1, \
-1, -1, -1, -1, 30, \ // OBSOLETE -1, -1, -1, -1, 30, \
-1, 32, 33, -1, \ // OBSOLETE -1, 32, 33, -1, \
48, 49, 50, 51, 64, \ // OBSOLETE 48, 49, 50, 51, 64, \
0 \ // OBSOLETE 0 \
}, \ // OBSOLETE }, \
{ 0, 1, 2, 3, 4, 5, \ // OBSOLETE { 0, 1, 2, 3, 4, 5, \
16, -1, -1, -1, -1, \ // OBSOLETE 16, -1, -1, -1, -1, \
-1, -1, -1, -1, -1, \ // OBSOLETE -1, -1, -1, -1, -1, \
-1, -1, -1, -1, 30, \ // OBSOLETE -1, -1, -1, -1, 30, \
31, 32, 33, -1, \ // OBSOLETE 31, 32, 33, -1, \
-1, -1, -1, -1, -1, \ // OBSOLETE -1, -1, -1, -1, -1, \
0 \ // OBSOLETE 0 \
}, \ // OBSOLETE }, \
{ 0, 1, 2, 3, 4, 5, \ // OBSOLETE { 0, 1, 2, 3, 4, 5, \
16, 17, 18, 19, 20, \ // OBSOLETE 16, 17, 18, 19, 20, \
21, 22, 23, 24, 25, \ // OBSOLETE 21, 22, 23, 24, 25, \
26, 27, 28, 29, 30, \ // OBSOLETE 26, 27, 28, 29, 30, \
31, 32, 33, 34, \ // OBSOLETE 31, 32, 33, 34, \
-1, -1, -1, -1, -1, \ // OBSOLETE -1, -1, -1, -1, -1, \
0 \ // OBSOLETE 0 \
} \ // OBSOLETE } \
} // OBSOLETE }
// OBSOLETE
#define PFP_REGNUM R0_REGNUM /* Previous frame pointer */ // OBSOLETE #define PFP_REGNUM R0_REGNUM /* Previous frame pointer */
// OBSOLETE
/* Total amount of space needed to store our copies of the machine's // OBSOLETE /* Total amount of space needed to store our copies of the machine's
register state, the array `registers'. */ // OBSOLETE register state, the array `registers'. */
#define REGISTER_BYTES (NUM_REGS * 4) // OBSOLETE #define REGISTER_BYTES (NUM_REGS * 4)
// OBSOLETE
/* Index within `registers' of the first byte of the space for register N. */ // OBSOLETE /* Index within `registers' of the first byte of the space for register N. */
#define REGISTER_BYTE(N) (4*(N)) // OBSOLETE #define REGISTER_BYTE(N) (4*(N))
// OBSOLETE
/* Number of bytes of storage in the actual machine representation // OBSOLETE /* Number of bytes of storage in the actual machine representation
for register N. */ // OBSOLETE for register N. */
#define REGISTER_RAW_SIZE(N) 4 // OBSOLETE #define REGISTER_RAW_SIZE(N) 4
// OBSOLETE
/* Number of bytes of storage in the program's representation for register N. */ // OBSOLETE /* Number of bytes of storage in the program's representation for register N. */
#define REGISTER_VIRTUAL_SIZE(N) 4 // OBSOLETE #define REGISTER_VIRTUAL_SIZE(N) 4
// OBSOLETE
/* Largest value REGISTER_RAW_SIZE can have. */ // OBSOLETE /* Largest value REGISTER_RAW_SIZE can have. */
#define MAX_REGISTER_RAW_SIZE 4 // OBSOLETE #define MAX_REGISTER_RAW_SIZE 4
// OBSOLETE
/* Largest value REGISTER_VIRTUAL_SIZE can have. */ // OBSOLETE /* Largest value REGISTER_VIRTUAL_SIZE can have. */
#define MAX_REGISTER_VIRTUAL_SIZE 4 // OBSOLETE #define MAX_REGISTER_VIRTUAL_SIZE 4
// OBSOLETE
/* Return the GDB type object for the "standard" data type // OBSOLETE /* Return the GDB type object for the "standard" data type
of data in register N. */ // OBSOLETE of data in register N. */
#define REGISTER_VIRTUAL_TYPE(N) (builtin_type_int) // OBSOLETE #define REGISTER_VIRTUAL_TYPE(N) (builtin_type_int)
// OBSOLETE
// OBSOLETE
/* Macros for understanding function return values... */ // OBSOLETE /* Macros for understanding function return values... */
// OBSOLETE
/* Does the specified function use the "struct returning" convention // OBSOLETE /* Does the specified function use the "struct returning" convention
or the "value returning" convention? The "value returning" convention // OBSOLETE or the "value returning" convention? The "value returning" convention
almost invariably returns the entire value in registers. The // OBSOLETE almost invariably returns the entire value in registers. The
"struct returning" convention often returns the entire value in // OBSOLETE "struct returning" convention often returns the entire value in
memory, and passes a pointer (out of or into the function) saying // OBSOLETE memory, and passes a pointer (out of or into the function) saying
where the value (is or should go). // OBSOLETE where the value (is or should go).
// OBSOLETE
Since this sometimes depends on whether it was compiled with GCC, // OBSOLETE Since this sometimes depends on whether it was compiled with GCC,
this is also an argument. This is used in call_function to build a // OBSOLETE this is also an argument. This is used in call_function to build a
stack, and in value_being_returned to print return values. // OBSOLETE stack, and in value_being_returned to print return values.
// OBSOLETE
On arc, a structure is always retunred with pointer in r0. */ // OBSOLETE On arc, a structure is always retunred with pointer in r0. */
// OBSOLETE
#define USE_STRUCT_CONVENTION(gcc_p, type) 1 // OBSOLETE #define USE_STRUCT_CONVENTION(gcc_p, type) 1
// OBSOLETE
/* Extract from an array REGBUF containing the (raw) register state // OBSOLETE /* Extract from an array REGBUF containing the (raw) register state
a function return value of type TYPE, and copy that, in virtual format, // OBSOLETE a function return value of type TYPE, and copy that, in virtual format,
into VALBUF. This is only called if USE_STRUCT_CONVENTION for this // OBSOLETE into VALBUF. This is only called if USE_STRUCT_CONVENTION for this
type is 0. // OBSOLETE type is 0.
*/ // OBSOLETE */
#define DEPRECATED_EXTRACT_RETURN_VALUE(TYPE,REGBUF,VALBUF) \ // OBSOLETE #define DEPRECATED_EXTRACT_RETURN_VALUE(TYPE,REGBUF,VALBUF) \
memcpy(VALBUF, REGBUF+REGISTER_BYTE(R0_REGNUM), TYPE_LENGTH (TYPE)) // OBSOLETE memcpy(VALBUF, REGBUF+REGISTER_BYTE(R0_REGNUM), TYPE_LENGTH (TYPE))
// OBSOLETE
/* If USE_STRUCT_CONVENTION produces a 1, // OBSOLETE /* If USE_STRUCT_CONVENTION produces a 1,
extract from an array REGBUF containing the (raw) register state // OBSOLETE extract from an array REGBUF containing the (raw) register state
the address in which a function should return its structure value, // OBSOLETE the address in which a function should return its structure value,
as a CORE_ADDR (or an expression that can be used as one). */ // OBSOLETE as a CORE_ADDR (or an expression that can be used as one). */
#define DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS(REGBUF) \ // OBSOLETE #define DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS(REGBUF) \
(error("Don't know where large structure is returned on arc"), 0) // OBSOLETE (error("Don't know where large structure is returned on arc"), 0)
// OBSOLETE
/* Write into appropriate registers a function return value // OBSOLETE /* Write into appropriate registers a function return value
of type TYPE, given in virtual format, for "value returning" functions. // OBSOLETE of type TYPE, given in virtual format, for "value returning" functions.
For 'return' command: not (yet) implemented for arc. */ // OBSOLETE For 'return' command: not (yet) implemented for arc. */
#define STORE_RETURN_VALUE(TYPE,VALBUF) \ // OBSOLETE #define STORE_RETURN_VALUE(TYPE,VALBUF) \
error ("Returning values from functions is not implemented in arc gdb") // OBSOLETE error ("Returning values from functions is not implemented in arc gdb")
// OBSOLETE
/* Store the address of the place in which to copy the structure the // OBSOLETE /* Store the address of the place in which to copy the structure the
subroutine will return. This is called from call_function. */ // OBSOLETE subroutine will return. This is called from call_function. */
#define STORE_STRUCT_RETURN(ADDR, SP) \ // OBSOLETE #define STORE_STRUCT_RETURN(ADDR, SP) \
error ("Returning values from functions is not implemented in arc gdb") // OBSOLETE error ("Returning values from functions is not implemented in arc gdb")
// OBSOLETE
// OBSOLETE
/* Describe the pointer in each stack frame to the previous stack frame // OBSOLETE /* Describe the pointer in each stack frame to the previous stack frame
(its caller). */ // OBSOLETE (its caller). */
// OBSOLETE
/* We cache information about saved registers in the frame structure, // OBSOLETE /* We cache information about saved registers in the frame structure,
to save us from having to re-scan function prologues every time // OBSOLETE to save us from having to re-scan function prologues every time
a register in a non-current frame is accessed. */ // OBSOLETE a register in a non-current frame is accessed. */
// OBSOLETE
#define EXTRA_FRAME_INFO \ // OBSOLETE #define EXTRA_FRAME_INFO \
struct frame_saved_regs *fsr; \ // OBSOLETE struct frame_saved_regs *fsr; \
CORE_ADDR arg_pointer; // OBSOLETE CORE_ADDR arg_pointer;
// OBSOLETE
/* Zero the frame_saved_regs pointer when the frame is initialized, // OBSOLETE /* Zero the frame_saved_regs pointer when the frame is initialized,
so that FRAME_FIND_SAVED_REGS () will know to allocate and // OBSOLETE so that FRAME_FIND_SAVED_REGS () will know to allocate and
initialize a frame_saved_regs struct the first time it is called. // OBSOLETE initialize a frame_saved_regs struct the first time it is called.
Set the arg_pointer to -1, which is not valid; 0 and other values // OBSOLETE Set the arg_pointer to -1, which is not valid; 0 and other values
indicate real, cached values. */ // OBSOLETE indicate real, cached values. */
// OBSOLETE
#define INIT_EXTRA_FRAME_INFO(fromleaf, fi) \ // OBSOLETE #define INIT_EXTRA_FRAME_INFO(fromleaf, fi) \
((fi)->fsr = 0, (fi)->arg_pointer = -1) // OBSOLETE ((fi)->fsr = 0, (fi)->arg_pointer = -1)
// OBSOLETE
/* FRAME_CHAIN takes a frame's nominal address // OBSOLETE /* FRAME_CHAIN takes a frame's nominal address
and produces the frame's chain-pointer. // OBSOLETE and produces the frame's chain-pointer.
However, if FRAME_CHAIN_VALID returns zero, // OBSOLETE However, if FRAME_CHAIN_VALID returns zero,
it means the given frame is the outermost one and has no caller. */ // OBSOLETE it means the given frame is the outermost one and has no caller. */
/* On the arc, we get the chain pointer by reading the PFP saved // OBSOLETE /* On the arc, we get the chain pointer by reading the PFP saved
on the stack. */ // OBSOLETE on the stack. */
/* The PFP and RPC is in fp and fp+4. */ // OBSOLETE /* The PFP and RPC is in fp and fp+4. */
// OBSOLETE
#define FRAME_CHAIN(thisframe) \ // OBSOLETE #define FRAME_CHAIN(thisframe) \
(read_memory_integer (FRAME_FP (thisframe), 4)) // OBSOLETE (read_memory_integer (FRAME_FP (thisframe), 4))
// OBSOLETE
/* FRAME_CHAIN_VALID returns zero if the given frame is the outermost one // OBSOLETE /* FRAME_CHAIN_VALID returns zero if the given frame is the outermost one
and has no caller. */ // OBSOLETE and has no caller. */
#define FRAME_CHAIN_VALID(chain, thisframe) nonnull_frame_chain_valid (chain, thisframe) // OBSOLETE #define FRAME_CHAIN_VALID(chain, thisframe) nonnull_frame_chain_valid (chain, thisframe)
// OBSOLETE
/* An expression that tells us whether the function invocation represented // OBSOLETE /* An expression that tells us whether the function invocation represented
by FI does not have a frame on the stack associated with it. */ // OBSOLETE by FI does not have a frame on the stack associated with it. */
// OBSOLETE
#define FRAMELESS_FUNCTION_INVOCATION(FI) \ // OBSOLETE #define FRAMELESS_FUNCTION_INVOCATION(FI) \
(((FI)->signal_handler_caller) ? 0 : frameless_look_for_prologue (FI)) // OBSOLETE (((FI)->signal_handler_caller) ? 0 : frameless_look_for_prologue (FI))
// OBSOLETE
/* Where is the PC for a specific frame. // OBSOLETE /* Where is the PC for a specific frame.
A leaf function may never save blink, so we have to check for that here. */ // OBSOLETE A leaf function may never save blink, so we have to check for that here. */
// OBSOLETE
#define FRAME_SAVED_PC(frame) (arc_frame_saved_pc (frame)) // OBSOLETE #define FRAME_SAVED_PC(frame) (arc_frame_saved_pc (frame))
struct frame_info; /* in case frame.h not included yet */ // OBSOLETE struct frame_info; /* in case frame.h not included yet */
CORE_ADDR arc_frame_saved_pc (struct frame_info *); // OBSOLETE CORE_ADDR arc_frame_saved_pc (struct frame_info *);
// OBSOLETE
/* If the argument is on the stack, it will be here. // OBSOLETE /* If the argument is on the stack, it will be here.
We cache this value in the frame info if we've already looked it up. */ // OBSOLETE We cache this value in the frame info if we've already looked it up. */
/* ??? Is the arg_pointer check necessary? */ // OBSOLETE /* ??? Is the arg_pointer check necessary? */
// OBSOLETE
#define FRAME_ARGS_ADDRESS(fi) \ // OBSOLETE #define FRAME_ARGS_ADDRESS(fi) \
(((fi)->arg_pointer != -1) ? (fi)->arg_pointer : (fi)->frame) // OBSOLETE (((fi)->arg_pointer != -1) ? (fi)->arg_pointer : (fi)->frame)
// OBSOLETE
/* This is the same except it should return 0 when // OBSOLETE /* This is the same except it should return 0 when
it does not really know where the args are, rather than guessing. // OBSOLETE it does not really know where the args are, rather than guessing.
This value is not cached since it is only used infrequently. */ // OBSOLETE This value is not cached since it is only used infrequently. */
// OBSOLETE
#define FRAME_LOCALS_ADDRESS(fi) ((fi)->frame) // OBSOLETE #define FRAME_LOCALS_ADDRESS(fi) ((fi)->frame)
// OBSOLETE
/* Set NUMARGS to the number of args passed to a frame. // OBSOLETE /* Set NUMARGS to the number of args passed to a frame.
Can return -1, meaning no way to tell. */ // OBSOLETE Can return -1, meaning no way to tell. */
// OBSOLETE
#define FRAME_NUM_ARGS(fi) (-1) // OBSOLETE #define FRAME_NUM_ARGS(fi) (-1)
// OBSOLETE
/* Return number of bytes at start of arglist that are not really args. */ // OBSOLETE /* Return number of bytes at start of arglist that are not really args. */
// OBSOLETE
#define FRAME_ARGS_SKIP 0 // OBSOLETE #define FRAME_ARGS_SKIP 0
// OBSOLETE
/* Produce the positions of the saved registers in a stack frame. */ // OBSOLETE /* Produce the positions of the saved registers in a stack frame. */
// OBSOLETE
#define FRAME_FIND_SAVED_REGS(frame_info_addr, sr) \ // OBSOLETE #define FRAME_FIND_SAVED_REGS(frame_info_addr, sr) \
frame_find_saved_regs (frame_info_addr, &sr) // OBSOLETE frame_find_saved_regs (frame_info_addr, &sr)
extern void frame_find_saved_regs (); /* See arc-tdep.c */ // OBSOLETE extern void frame_find_saved_regs (); /* See arc-tdep.c */
// OBSOLETE
// OBSOLETE
/* Things needed for making calls to functions in the inferior process */ // OBSOLETE /* Things needed for making calls to functions in the inferior process */
void arc_push_dummy_frame (void); // OBSOLETE void arc_push_dummy_frame (void);
#define PUSH_DUMMY_FRAME \ // OBSOLETE #define PUSH_DUMMY_FRAME \
arc_push_dummy_frame () // OBSOLETE arc_push_dummy_frame ()
// OBSOLETE
/* Discard from the stack the innermost frame, restoring all registers. */ // OBSOLETE /* Discard from the stack the innermost frame, restoring all registers. */
void arc_pop_frame (void); // OBSOLETE void arc_pop_frame (void);
#define POP_FRAME \ // OBSOLETE #define POP_FRAME \
arc_pop_frame () // OBSOLETE arc_pop_frame ()
// OBSOLETE
/* This sequence of words is the instructions bl xxxx, flag 1 */ // OBSOLETE /* This sequence of words is the instructions bl xxxx, flag 1 */
#define CALL_DUMMY { 0x28000000, 0x1fbe8001 } // OBSOLETE #define CALL_DUMMY { 0x28000000, 0x1fbe8001 }
#define CALL_DUMMY_LENGTH 8 // OBSOLETE #define CALL_DUMMY_LENGTH 8
// OBSOLETE
/* Start execution at beginning of dummy */ // OBSOLETE /* Start execution at beginning of dummy */
#define CALL_DUMMY_START_OFFSET 0 // OBSOLETE #define CALL_DUMMY_START_OFFSET 0
// OBSOLETE
/* Insert the specified number of args and function address // OBSOLETE /* Insert the specified number of args and function address
into a call sequence of the above form stored at 'dummyname'. */ // OBSOLETE into a call sequence of the above form stored at 'dummyname'. */
#define FIX_CALL_DUMMY(dummyname, pc, fun, nargs, args, type, gcc_p) \ // OBSOLETE #define FIX_CALL_DUMMY(dummyname, pc, fun, nargs, args, type, gcc_p) \
{ \ // OBSOLETE { \
int from, to, delta, loc; \ // OBSOLETE int from, to, delta, loc; \
loc = (int)(read_register (SP_REGNUM) - CALL_DUMMY_LENGTH); \ // OBSOLETE loc = (int)(read_register (SP_REGNUM) - CALL_DUMMY_LENGTH); \
from = loc + 4; \ // OBSOLETE from = loc + 4; \
to = (int)(fun); \ // OBSOLETE to = (int)(fun); \
delta = (to - from) >> 2; \ // OBSOLETE delta = (to - from) >> 2; \
*((char *)(dummyname) + 1) = (delta & 0x1); \ // OBSOLETE *((char *)(dummyname) + 1) = (delta & 0x1); \
*((char *)(dummyname) + 2) = ((delta >> 1) & 0xff); \ // OBSOLETE *((char *)(dummyname) + 2) = ((delta >> 1) & 0xff); \
*((char *)(dummyname) + 3) = ((delta >> 9) & 0xff); \ // OBSOLETE *((char *)(dummyname) + 3) = ((delta >> 9) & 0xff); \
*((char *)(dummyname) + 4) = ((delta >> 17) & 0x7); \ // OBSOLETE *((char *)(dummyname) + 4) = ((delta >> 17) & 0x7); \
} // OBSOLETE }

View File

@ -43,7 +43,7 @@ alpha*-*-linux*) gdb_target=alpha-linux ;;
alpha*-*-freebsd*) gdb_target=fbsd ;; alpha*-*-freebsd*) gdb_target=fbsd ;;
alpha*-*-netbsd*) gdb_target=nbsd ;; alpha*-*-netbsd*) gdb_target=nbsd ;;
arc-*-*) gdb_target=arc ;; # OBSOLETE arc-*-*) gdb_target=arc ;;
arm*-wince-pe) gdb_target=wince ;; arm*-wince-pe) gdb_target=wince ;;
arm*-*-linux*) gdb_target=linux arm*-*-linux*) gdb_target=linux