X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Fconfig%2Fsparc%2Ftm-sun4os4.h;h=b561b13adc7391c486f7549357ed8dffc3b0d72a;hb=b6ba6518e9254bc25f88088228e93ac966ebccd1;hp=52d2d139ee09f97f5e1f414447d21cb9c9fe4d53;hpb=8357834fbec086011dbb4b445f63c03c9f4c6c1e;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/config/sparc/tm-sun4os4.h b/gdb/config/sparc/tm-sun4os4.h index 52d2d139ee..b561b13adc 100644 --- a/gdb/config/sparc/tm-sun4os4.h +++ b/gdb/config/sparc/tm-sun4os4.h @@ -1,40 +1,33 @@ /* Macro definitions for GDB for a Sun 4 running sunos 4. - Copyright 1989, 1992 Free Software Foundation, Inc. + Copyright 1989, 1992, 1994, 1995, 1998, 2000 + Free Software Foundation, Inc. -This file is part of GDB. + 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 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. + 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., 675 Mass Ave, Cambridge, MA 02139, USA. */ + 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. */ #include "sparc/tm-sparc.h" #include "tm-sunos.h" -/* Do variables in the debug stabs occur after the N_LBRAC or before it? - acc: after, gcc: before, SunOS4 /bin/cc: before. */ +/* Redefine SKIP_TRAMPOLINE_CODE to handle PIC compiled modules + in main executables. */ -#define VARIABLES_INSIDE_BLOCK(desc, gcc_p) (!(gcc_p) && n_opt_found) - -/* For acc, there's no need to correct LBRAC entries by guessing how - they should work. In fact, this is harmful because the LBRAC - entries now all appear at the end of the function, not intermixed - with the SLINE entries. - - For binary from SunOS4 /bin/cc, need to correct LBRAC's. - - For gcc, doesn't matter, attempting the correction is harmless. */ - -#define SUN_FIXED_LBRAC_BUG (n_opt_found) +#undef SKIP_TRAMPOLINE_CODE +#define SKIP_TRAMPOLINE_CODE(pc) sunos4_skip_trampoline_code (pc) +extern CORE_ADDR sunos4_skip_trampoline_code (CORE_ADDR); /* Offsets into jmp_buf. Not defined by Sun, but at least documented in a comment in ! */ @@ -57,7 +50,10 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ extract the pc (JB_PC) that we will land at. The pc is copied into ADDR. This routine returns true on success */ -extern int -get_longjmp_target PARAMS ((CORE_ADDR *)); +extern int get_longjmp_target (CORE_ADDR *); #define GET_LONGJMP_TARGET(ADDR) get_longjmp_target(ADDR) + +extern char *sunpro_static_transform_name (char *); +#define STATIC_TRANSFORM_NAME(x) sunpro_static_transform_name (x) +#define IS_STATIC_TRANSFORM_NAME(name) ((name)[0] == '$')