mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-21 04:42:53 +08:00
8bedc05091
* gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC. * gdbarch.h, gdbarch.c: Re-generate. * xstormy16-tdep.c (xstormy16_gdbarch_init): Update. * x86-64-tdep.h: Update. * x86-64-tdep.c (x86_64_init_abi): Update. * v850-tdep.c (v850_gdbarch_init): Update. * sparc-tdep.c (sparc_gdbarch_init): Update. * sh-tdep.c (sh_gdbarch_init): Update. * s390-tdep.c (s390_gdbarch_init): Update. * rs6000-tdep.c (rs6000_gdbarch_init): Update. * ppc-linux-tdep.c (ppc_linux_init_abi): Update. * ns32k-tdep.c (ns32k_gdbarch_init): Update. * mn10300-tdep.c (mn10300_gdbarch_init): Update. * mips-tdep.c (mips_gdbarch_init): Update. * mcore-tdep.c (mcore_gdbarch_init): Update. * m68k-tdep.c (m68k_gdbarch_init): Update. * m68hc11-tdep.c (m68hc11_gdbarch_init): Update. * ia64-tdep.c (ia64_gdbarch_init): Update. * i386-tdep.c (i386_gdbarch_init): Update. * i386-interix-tdep.c (i386_interix_init_abi): Update. * hppa-tdep.c (hppa_gdbarch_init): Update. * h8300-tdep.c (h8300_gdbarch_init): Update. * frv-tdep.c (frv_gdbarch_init): Update. * cris-tdep.c (cris_gdbarch_init): Update. * avr-tdep.c (avr_gdbarch_init): Update. * arm-tdep.c (arm_gdbarch_init): Update. * alpha-tdep.c (alpha_gdbarch_init): Update. * sh-tdep.c (sh_init_extra_frame_info): Update. (sh64_init_extra_frame_info): Update. * ns32knbsd-nat.c (frame_num_args): Update. * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update. * xstormy16-tdep.c (xstormy16_pop_frame): Update. (xstormy16_frame_chain_valid): Update. * vax-tdep.c (vax_saved_pc_after_call): Update. * v850-tdep.c (v850_frame_chain): Update. (v850_pop_frame): Update. (v850_init_extra_frame_info): Update. * sparc-tdep.c (setup_arbitrary_frame): Update. * ns32k-tdep.c (umax_frame_num_args): Update. * s390-tdep.c (s390_pop_frame_regular): Update. * mn10300-tdep.c (mn10300_frame_chain): Update. (mn10300_pop_frame_regular): Update. (mn10300_init_extra_frame_info): Update. * mips-tdep.c (mips_init_frame_pc_first): Update. (mips_frame_chain): Update. (mips_pop_frame): Update. * mcore-tdep.c (mcore_frame_chain): Update. (mcore_pop_frame): Update. (mcore_init_extra_frame_info): Update. * arch-utils.c (init_frame_pc_default): Update. * m68k-tdep.c (isi_frame_num_args): Update. (delta68_frame_num_args): Update. (news_frame_num_args): Update. * ia64-tdep.c (ia64_pop_frame_regular): Update. * alpha-tdep.c (alpha_init_frame_pc_first): Update. (alpha_frame_chain): Update. (alpha_pop_frame): Update. * hppa-tdep.c (hppa_saved_pc_after_call): Update. (hppa_init_extra_frame_info): Update. (hppa_frame_chain): Update. (hppa_frame_chain_valid): Update. * cris-tdep.c (cris_init_extra_frame_info): Update. * avr-tdep.c (avr_init_extra_frame_info): Update. * arm-tdep.c (arm_frame_chain_valid): Update. (arm_init_extra_frame_info): Update. (arm_pop_frame): Update. * frame.c (frame_pc_unwind): Update. * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update. (DEPRECATED_INIT_FRAME_PC_FIRST): Update. * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update. * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update. * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update. * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update. 2003-03-12 Andrew Cagney <cagney@redhat.com> * gdbint.texinfo (Target Architecture Definition): Rename FRAME_SAVED_PC to DEPRECATED_FRAME_SAVED_PC.
121 lines
4.7 KiB
C
121 lines
4.7 KiB
C
/* Parameters for target execution on an RS6000, for GDB, the GNU debugger.
|
|
Copyright 1986, 1987, 1989, 1991, 1992, 1993, 1994, 1995, 1996, 1997,
|
|
1998, 1999, 2000
|
|
Free Software Foundation, Inc.
|
|
Contributed by IBM Corporation.
|
|
|
|
This file is part of GDB.
|
|
|
|
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.
|
|
|
|
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.
|
|
|
|
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 GDB_MULTI_ARCH 1
|
|
|
|
/* Minimum possible text address in AIX */
|
|
|
|
#define TEXT_SEGMENT_BASE 0x10000000
|
|
|
|
/* Return whether PC in function NAME is in code that should be skipped when
|
|
single-stepping. */
|
|
|
|
#define IN_SOLIB_RETURN_TRAMPOLINE(pc, name) \
|
|
rs6000_in_solib_return_trampoline (pc, name)
|
|
extern int rs6000_in_solib_return_trampoline (CORE_ADDR, char *);
|
|
|
|
/* If PC is in some function-call trampoline code, return the PC
|
|
where the function itself actually starts. If not, return NULL. */
|
|
|
|
#define SKIP_TRAMPOLINE_CODE(pc) rs6000_skip_trampoline_code (pc)
|
|
extern CORE_ADDR rs6000_skip_trampoline_code (CORE_ADDR);
|
|
|
|
/* Number of trap signals we need to skip over, once the inferior process
|
|
starts running. */
|
|
|
|
#define START_INFERIOR_TRAPS_EXPECTED 2
|
|
|
|
/* AIX has a couple of strange returns from wait(). */
|
|
|
|
#define CHILD_SPECIAL_WAITSTATUS(ourstatus, hoststatus) ( \
|
|
/* "stop after load" status. */ \
|
|
(hoststatus) == 0x57c ? (ourstatus)->kind = TARGET_WAITKIND_LOADED, 1 : \
|
|
\
|
|
/* signal 0. I have no idea why wait(2) returns with this status word. */ \
|
|
/* It looks harmless. */ \
|
|
(hoststatus) == 0x7f ? (ourstatus)->kind = TARGET_WAITKIND_SPURIOUS, 1 : \
|
|
\
|
|
/* A normal waitstatus. Let the usual macros deal with it. */ \
|
|
0)
|
|
|
|
/* In xcoff, we cannot process line numbers when we see them. This is
|
|
mainly because we don't know the boundaries of the include files. So,
|
|
we postpone that, and then enter and sort(?) the whole line table at
|
|
once, when we are closing the current symbol table in end_symtab(). */
|
|
|
|
#define PROCESS_LINENUMBER_HOOK() aix_process_linenos ()
|
|
extern void aix_process_linenos (void);
|
|
|
|
/* Register numbers of various important registers.
|
|
Note that some of these values are "real" register numbers,
|
|
and correspond to the general registers of the machine,
|
|
and some are "phony" register numbers which are too large
|
|
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. */
|
|
|
|
#define FP0_REGNUM 32 /* Floating point register 0 */
|
|
#define FPLAST_REGNUM 63 /* Last floating point register */
|
|
|
|
/* Define other aspects of the stack frame. */
|
|
|
|
#define DEPRECATED_INIT_FRAME_PC_FIRST(fromleaf, prev) \
|
|
(fromleaf ? SAVED_PC_AFTER_CALL (prev->next) : \
|
|
prev->next ? DEPRECATED_FRAME_SAVED_PC (prev->next) : read_pc ())
|
|
/* NOTE: cagney/2002-12-08: Add local declaration of
|
|
init_frame_pc_noop() because it isn't possible to include
|
|
"arch-utils.h" here. Not too bad as this entire file is going away
|
|
anyway. */
|
|
extern CORE_ADDR init_frame_pc_noop (int fromleaf, struct frame_info *prev);
|
|
#define DEPRECATED_INIT_FRAME_PC(fromleaf, prev) (init_frame_pc_noop (fromleaf, prev))
|
|
|
|
/* Flag for machine-specific stuff in shared files. FIXME */
|
|
#define IBM6000_TARGET
|
|
|
|
/* RS6000/AIX does not support PT_STEP. Has to be simulated. */
|
|
|
|
#define SOFTWARE_SINGLE_STEP_P() 1
|
|
extern void rs6000_software_single_step (enum target_signal, int);
|
|
#define SOFTWARE_SINGLE_STEP(sig,bp_p) rs6000_software_single_step (sig, bp_p)
|
|
|
|
/* Notice when a new child process is started. */
|
|
|
|
#define TARGET_CREATE_INFERIOR_HOOK rs6000_create_inferior
|
|
extern void rs6000_create_inferior (int);
|
|
|
|
/* Hook in rs6000-tdep.c for determining the TOC address when
|
|
calling functions in the inferior. */
|
|
|
|
extern CORE_ADDR (*rs6000_find_toc_address_hook) (CORE_ADDR);
|
|
|
|
/* Hook in rs6000-tdep.c to set the current architecture when starting a
|
|
child process. */
|
|
|
|
extern void (*rs6000_set_host_arch_hook) (int);
|
|
|
|
/* We need solib.h for building cross debuggers. However, we don't want
|
|
to clobber any special solib support required by native debuggers, so
|
|
only include solib.h if SOLIB_ADD is not defined. */
|
|
#ifndef SOLIB_ADD
|
|
#include "solib.h"
|
|
#endif
|