2002-02-04 Elena Zannoni <ezannoni@redhat.com>

* gdbarch.sh: Add definitions for COFF_MAKE_MSYMBOL_SPECIAL and
	ELF_MAKE_MSYMBOL_SPECIAL.
	* gdbarch.c, gdbarch.h: Regenerate.
	* arch-utils.c (default_elf_make_msymbol_special,
        default_coff_make_msymbol_special): New functions.
	* arch-utils.h (default_elf_make_msymbol_special,
        default_coff_make_msymbol_special): Export.
	* elfread.c (elf_symtab_read): Compile use of
	ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
	multiarched.
	* coffread.c (coff_symtab_read): Ditto, for
	COFF_MAKE_MSYMBOL_SPECIAL.
This commit is contained in:
Elena Zannoni 2002-02-06 01:20:23 +00:00
parent 9a36a60b53
commit a2cf933af4
8 changed files with 202 additions and 61 deletions

View file

@ -1,3 +1,16 @@
2002-02-05 Elena Zannoni <ezannoni@redhat.com>
* gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
ELF_MAKE_MSYMBOL_SPECIAL.
* gdbarch.c, gdbarch.h: Regenerate.
* arch-utils.c (default_make_msymbol_special): New function.
* arch-utils.h (default_make_msymbol_special): Export.
* elfread.c (elf_symtab_read): Compile use of
ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
multiarched.
* coffread.c (coff_symtab_read): Ditto, for
COFF_MAKE_MSYMBOL_SPECIAL.
2002-02-05 Jim Blandy <jimb@redhat.com> 2002-02-05 Jim Blandy <jimb@redhat.com>
* solib-svr4.c (svr4_truncate_ptr): New function. * solib-svr4.c (svr4_truncate_ptr): New function.
@ -88,6 +101,7 @@
* language.c (_initialize_language): Ditto. * language.c (_initialize_language): Ditto.
* arc-tdep.c (_initialize_arc_tdep): Ditto. * arc-tdep.c (_initialize_arc_tdep): Ditto.
>>>>>>> 1.2142
2002-02-04 Michael Snyder <msnyder@redhat.com> 2002-02-04 Michael Snyder <msnyder@redhat.com>
* memattr.c (_initialize_mem): Elaborate the help for 'mem' command. * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
@ -371,6 +385,7 @@
read pseudo-register as well as real register. read pseudo-register as well as real register.
(legacy_write_register_gen): Ditto. (legacy_write_register_gen): Ditto.
>>>>>>> 1.2132
2002-01-28 Andrew Cagney <ac131313@redhat.com> 2002-01-28 Andrew Cagney <ac131313@redhat.com>
* config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete. * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.

View file

@ -359,6 +359,18 @@ init_frame_pc_default (int fromleaf, struct frame_info *prev)
prev->pc = read_pc (); prev->pc = read_pc ();
} }
void
default_elf_make_msymbol_special (asymbol *sym, struct minimal_symbol *msym)
{
return;
}
void
default_coff_make_msymbol_special (int val, struct minimal_symbol *msym)
{
return;
}
int int
cannot_register_not (int regnum) cannot_register_not (int regnum)
{ {

View file

@ -122,6 +122,14 @@ void init_frame_pc_noop (int fromleaf, struct frame_info *prev);
void init_frame_pc_default (int fromleaf, struct frame_info *prev); void init_frame_pc_default (int fromleaf, struct frame_info *prev);
/* Do nothing version of elf_make_msymbol_special. */
void default_elf_make_msymbol_special (asymbol *sym, struct minimal_symbol *msym);
/* Do nothing version of coff_make_msymbol_special. */
void default_coff_make_msymbol_special (int val, struct minimal_symbol *msym);
/* Version of cannot_fetch_register() / cannot_store_register() that /* Version of cannot_fetch_register() / cannot_store_register() that
always fails. */ always fails. */

View file

@ -975,10 +975,8 @@ coff_symtab_read (long symtab_offset, unsigned int nsyms,
msym = prim_record_minimal_symbol_and_info msym = prim_record_minimal_symbol_and_info
(cs->c_name, tmpaddr, ms_type, (void *) (long) cs->c_sclass, (cs->c_name, tmpaddr, ms_type, (void *) (long) cs->c_sclass,
sec, NULL, objfile); sec, NULL, objfile);
#ifdef COFF_MAKE_MSYMBOL_SPECIAL
if (msym) if (msym)
COFF_MAKE_MSYMBOL_SPECIAL (cs->c_sclass, msym); COFF_MAKE_MSYMBOL_SPECIAL (cs->c_sclass, msym);
#endif
} }
if (SDB_TYPE (cs->c_type)) if (SDB_TYPE (cs->c_type))
{ {

View file

@ -516,9 +516,7 @@ elf_symtab_read (struct objfile *objfile, int dynamic)
if (msym != NULL) if (msym != NULL)
msym->filename = filesymname; msym->filename = filesymname;
#endif #endif
#ifdef ELF_MAKE_MSYMBOL_SPECIAL
ELF_MAKE_MSYMBOL_SPECIAL (sym, msym); ELF_MAKE_MSYMBOL_SPECIAL (sym, msym);
#endif
} }
} }
do_cleanups (back_to); do_cleanups (back_to);

View file

@ -258,6 +258,8 @@ struct gdbarch
gdbarch_in_function_epilogue_p_ftype *in_function_epilogue_p; gdbarch_in_function_epilogue_p_ftype *in_function_epilogue_p;
gdbarch_construct_inferior_arguments_ftype *construct_inferior_arguments; gdbarch_construct_inferior_arguments_ftype *construct_inferior_arguments;
gdbarch_dwarf2_build_frame_info_ftype *dwarf2_build_frame_info; gdbarch_dwarf2_build_frame_info_ftype *dwarf2_build_frame_info;
gdbarch_elf_make_msymbol_special_ftype *elf_make_msymbol_special;
gdbarch_coff_make_msymbol_special_ftype *coff_make_msymbol_special;
}; };
@ -400,6 +402,8 @@ struct gdbarch startup_gdbarch =
generic_in_function_epilogue_p, generic_in_function_epilogue_p,
construct_inferior_arguments, construct_inferior_arguments,
0, 0,
0,
0,
/* startup_gdbarch() */ /* startup_gdbarch() */
}; };
@ -513,6 +517,8 @@ gdbarch_alloc (const struct gdbarch_info *info,
current_gdbarch->in_solib_call_trampoline = generic_in_solib_call_trampoline; current_gdbarch->in_solib_call_trampoline = generic_in_solib_call_trampoline;
current_gdbarch->in_function_epilogue_p = generic_in_function_epilogue_p; current_gdbarch->in_function_epilogue_p = generic_in_function_epilogue_p;
current_gdbarch->construct_inferior_arguments = construct_inferior_arguments; current_gdbarch->construct_inferior_arguments = construct_inferior_arguments;
current_gdbarch->elf_make_msymbol_special = default_elf_make_msymbol_special;
current_gdbarch->coff_make_msymbol_special = default_coff_make_msymbol_special;
/* gdbarch_alloc() */ /* gdbarch_alloc() */
return current_gdbarch; return current_gdbarch;
@ -768,6 +774,8 @@ verify_gdbarch (struct gdbarch *gdbarch)
/* Skip verify of in_function_epilogue_p, invalid_p == 0 */ /* Skip verify of in_function_epilogue_p, invalid_p == 0 */
/* Skip verify of construct_inferior_arguments, invalid_p == 0 */ /* Skip verify of construct_inferior_arguments, invalid_p == 0 */
/* Skip verify of dwarf2_build_frame_info, has predicate */ /* Skip verify of dwarf2_build_frame_info, has predicate */
/* Skip verify of elf_make_msymbol_special, invalid_p == 0 */
/* Skip verify of coff_make_msymbol_special, invalid_p == 0 */
buf = ui_file_xstrdup (log, &dummy); buf = ui_file_xstrdup (log, &dummy);
make_cleanup (xfree, buf); make_cleanup (xfree, buf);
if (strlen (buf) > 0) if (strlen (buf) > 0)
@ -792,18 +800,17 @@ gdbarch_dump (struct gdbarch *gdbarch, struct ui_file *file)
fprintf_unfiltered (file, fprintf_unfiltered (file,
"gdbarch_dump: GDB_MULTI_ARCH = %d\n", "gdbarch_dump: GDB_MULTI_ARCH = %d\n",
GDB_MULTI_ARCH); GDB_MULTI_ARCH);
#ifdef ADDR_BITS_REMOVE
fprintf_unfiltered (file,
"gdbarch_dump: %s # %s\n",
"ADDR_BITS_REMOVE(addr)",
XSTRING (ADDR_BITS_REMOVE (addr)));
if (GDB_MULTI_ARCH) if (GDB_MULTI_ARCH)
fprintf_unfiltered (file, fprintf_unfiltered (file,
"gdbarch_dump: in_function_epilogue_p = 0x%08lx\n", "gdbarch_dump: ADDR_BITS_REMOVE = 0x%08lx\n",
(long) current_gdbarch->in_function_epilogue_p); (long) current_gdbarch->addr_bits_remove
if (GDB_MULTI_ARCH) /*ADDR_BITS_REMOVE ()*/);
fprintf_unfiltered (file, #endif
"gdbarch_dump: register_read = 0x%08lx\n",
(long) current_gdbarch->register_read);
if (GDB_MULTI_ARCH)
fprintf_unfiltered (file,
"gdbarch_dump: register_write = 0x%08lx\n",
(long) current_gdbarch->register_write);
#ifdef ADDRESS_TO_POINTER #ifdef ADDRESS_TO_POINTER
#if GDB_MULTI_ARCH #if GDB_MULTI_ARCH
/* Macro might contain `[{}]' when not multi-arch */ /* Macro might contain `[{}]' when not multi-arch */
@ -818,17 +825,6 @@ gdbarch_dump (struct gdbarch *gdbarch, struct ui_file *file)
(long) current_gdbarch->address_to_pointer (long) current_gdbarch->address_to_pointer
/*ADDRESS_TO_POINTER ()*/); /*ADDRESS_TO_POINTER ()*/);
#endif #endif
#ifdef ADDR_BITS_REMOVE
fprintf_unfiltered (file,
"gdbarch_dump: %s # %s\n",
"ADDR_BITS_REMOVE(addr)",
XSTRING (ADDR_BITS_REMOVE (addr)));
if (GDB_MULTI_ARCH)
fprintf_unfiltered (file,
"gdbarch_dump: ADDR_BITS_REMOVE = 0x%08lx\n",
(long) current_gdbarch->addr_bits_remove
/*ADDR_BITS_REMOVE ()*/);
#endif
#ifdef BELIEVE_PCC_PROMOTION #ifdef BELIEVE_PCC_PROMOTION
fprintf_unfiltered (file, fprintf_unfiltered (file,
"gdbarch_dump: BELIEVE_PCC_PROMOTION # %s\n", "gdbarch_dump: BELIEVE_PCC_PROMOTION # %s\n",
@ -974,6 +970,20 @@ gdbarch_dump (struct gdbarch *gdbarch, struct ui_file *file)
"gdbarch_dump: COERCE_FLOAT_TO_DOUBLE = 0x%08lx\n", "gdbarch_dump: COERCE_FLOAT_TO_DOUBLE = 0x%08lx\n",
(long) current_gdbarch->coerce_float_to_double (long) current_gdbarch->coerce_float_to_double
/*COERCE_FLOAT_TO_DOUBLE ()*/); /*COERCE_FLOAT_TO_DOUBLE ()*/);
#endif
#ifdef COFF_MAKE_MSYMBOL_SPECIAL
#if GDB_MULTI_ARCH
/* Macro might contain `[{}]' when not multi-arch */
fprintf_unfiltered (file,
"gdbarch_dump: %s # %s\n",
"COFF_MAKE_MSYMBOL_SPECIAL(val, msym)",
XSTRING (COFF_MAKE_MSYMBOL_SPECIAL (val, msym)));
#endif
if (GDB_MULTI_ARCH)
fprintf_unfiltered (file,
"gdbarch_dump: COFF_MAKE_MSYMBOL_SPECIAL = 0x%08lx\n",
(long) current_gdbarch->coff_make_msymbol_special
/*COFF_MAKE_MSYMBOL_SPECIAL ()*/);
#endif #endif
if (GDB_MULTI_ARCH) if (GDB_MULTI_ARCH)
fprintf_unfiltered (file, fprintf_unfiltered (file,
@ -1059,6 +1069,20 @@ gdbarch_dump (struct gdbarch *gdbarch, struct ui_file *file)
(long) current_gdbarch->ecoff_reg_to_regnum (long) current_gdbarch->ecoff_reg_to_regnum
/*ECOFF_REG_TO_REGNUM ()*/); /*ECOFF_REG_TO_REGNUM ()*/);
#endif #endif
#ifdef ELF_MAKE_MSYMBOL_SPECIAL
#if GDB_MULTI_ARCH
/* Macro might contain `[{}]' when not multi-arch */
fprintf_unfiltered (file,
"gdbarch_dump: %s # %s\n",
"ELF_MAKE_MSYMBOL_SPECIAL(sym, msym)",
XSTRING (ELF_MAKE_MSYMBOL_SPECIAL (sym, msym)));
#endif
if (GDB_MULTI_ARCH)
fprintf_unfiltered (file,
"gdbarch_dump: ELF_MAKE_MSYMBOL_SPECIAL = 0x%08lx\n",
(long) current_gdbarch->elf_make_msymbol_special
/*ELF_MAKE_MSYMBOL_SPECIAL ()*/);
#endif
#ifdef EXTRACT_RETURN_VALUE #ifdef EXTRACT_RETURN_VALUE
#if GDB_MULTI_ARCH #if GDB_MULTI_ARCH
/* Macro might contain `[{}]' when not multi-arch */ /* Macro might contain `[{}]' when not multi-arch */
@ -1136,17 +1160,6 @@ gdbarch_dump (struct gdbarch *gdbarch, struct ui_file *file)
"gdbarch_dump: FP_REGNUM = %d\n", "gdbarch_dump: FP_REGNUM = %d\n",
FP_REGNUM); FP_REGNUM);
#endif #endif
#ifdef FRAMELESS_FUNCTION_INVOCATION
fprintf_unfiltered (file,
"gdbarch_dump: %s # %s\n",
"FRAMELESS_FUNCTION_INVOCATION(fi)",
XSTRING (FRAMELESS_FUNCTION_INVOCATION (fi)));
if (GDB_MULTI_ARCH)
fprintf_unfiltered (file,
"gdbarch_dump: FRAMELESS_FUNCTION_INVOCATION = 0x%08lx\n",
(long) current_gdbarch->frameless_function_invocation
/*FRAMELESS_FUNCTION_INVOCATION ()*/);
#endif
#ifdef FRAME_ARGS_ADDRESS #ifdef FRAME_ARGS_ADDRESS
fprintf_unfiltered (file, fprintf_unfiltered (file,
"gdbarch_dump: %s # %s\n", "gdbarch_dump: %s # %s\n",
@ -1202,6 +1215,17 @@ gdbarch_dump (struct gdbarch *gdbarch, struct ui_file *file)
(long) current_gdbarch->frame_init_saved_regs (long) current_gdbarch->frame_init_saved_regs
/*FRAME_INIT_SAVED_REGS ()*/); /*FRAME_INIT_SAVED_REGS ()*/);
#endif #endif
#ifdef FRAMELESS_FUNCTION_INVOCATION
fprintf_unfiltered (file,
"gdbarch_dump: %s # %s\n",
"FRAMELESS_FUNCTION_INVOCATION(fi)",
XSTRING (FRAMELESS_FUNCTION_INVOCATION (fi)));
if (GDB_MULTI_ARCH)
fprintf_unfiltered (file,
"gdbarch_dump: FRAMELESS_FUNCTION_INVOCATION = 0x%08lx\n",
(long) current_gdbarch->frameless_function_invocation
/*FRAMELESS_FUNCTION_INVOCATION ()*/);
#endif
#ifdef FRAME_LOCALS_ADDRESS #ifdef FRAME_LOCALS_ADDRESS
fprintf_unfiltered (file, fprintf_unfiltered (file,
"gdbarch_dump: %s # %s\n", "gdbarch_dump: %s # %s\n",
@ -1271,20 +1295,6 @@ gdbarch_dump (struct gdbarch *gdbarch, struct ui_file *file)
(long) current_gdbarch->init_extra_frame_info (long) current_gdbarch->init_extra_frame_info
/*INIT_EXTRA_FRAME_INFO ()*/); /*INIT_EXTRA_FRAME_INFO ()*/);
#endif #endif
#ifdef INIT_FRAME_PC
#if GDB_MULTI_ARCH
/* Macro might contain `[{}]' when not multi-arch */
fprintf_unfiltered (file,
"gdbarch_dump: %s # %s\n",
"INIT_FRAME_PC(fromleaf, prev)",
XSTRING (INIT_FRAME_PC (fromleaf, prev)));
#endif
if (GDB_MULTI_ARCH)
fprintf_unfiltered (file,
"gdbarch_dump: INIT_FRAME_PC = 0x%08lx\n",
(long) current_gdbarch->init_frame_pc
/*INIT_FRAME_PC ()*/);
#endif
#ifdef INIT_FRAME_PC_FIRST #ifdef INIT_FRAME_PC_FIRST
#if GDB_MULTI_ARCH #if GDB_MULTI_ARCH
/* Macro might contain `[{}]' when not multi-arch */ /* Macro might contain `[{}]' when not multi-arch */
@ -1299,6 +1309,20 @@ gdbarch_dump (struct gdbarch *gdbarch, struct ui_file *file)
(long) current_gdbarch->init_frame_pc_first (long) current_gdbarch->init_frame_pc_first
/*INIT_FRAME_PC_FIRST ()*/); /*INIT_FRAME_PC_FIRST ()*/);
#endif #endif
#ifdef INIT_FRAME_PC
#if GDB_MULTI_ARCH
/* Macro might contain `[{}]' when not multi-arch */
fprintf_unfiltered (file,
"gdbarch_dump: %s # %s\n",
"INIT_FRAME_PC(fromleaf, prev)",
XSTRING (INIT_FRAME_PC (fromleaf, prev)));
#endif
if (GDB_MULTI_ARCH)
fprintf_unfiltered (file,
"gdbarch_dump: INIT_FRAME_PC = 0x%08lx\n",
(long) current_gdbarch->init_frame_pc
/*INIT_FRAME_PC ()*/);
#endif
#ifdef INNER_THAN #ifdef INNER_THAN
fprintf_unfiltered (file, fprintf_unfiltered (file,
"gdbarch_dump: %s # %s\n", "gdbarch_dump: %s # %s\n",
@ -1310,17 +1334,6 @@ gdbarch_dump (struct gdbarch *gdbarch, struct ui_file *file)
(long) current_gdbarch->inner_than (long) current_gdbarch->inner_than
/*INNER_THAN ()*/); /*INNER_THAN ()*/);
#endif #endif
#ifdef INTEGER_TO_ADDRESS
fprintf_unfiltered (file,
"gdbarch_dump: %s # %s\n",
"INTEGER_TO_ADDRESS(type, buf)",
XSTRING (INTEGER_TO_ADDRESS (type, buf)));
if (GDB_MULTI_ARCH)
fprintf_unfiltered (file,
"gdbarch_dump: INTEGER_TO_ADDRESS = 0x%08lx\n",
(long) current_gdbarch->integer_to_address
/*INTEGER_TO_ADDRESS ()*/);
#endif
#ifdef IN_SOLIB_CALL_TRAMPOLINE #ifdef IN_SOLIB_CALL_TRAMPOLINE
fprintf_unfiltered (file, fprintf_unfiltered (file,
"gdbarch_dump: %s # %s\n", "gdbarch_dump: %s # %s\n",
@ -1332,6 +1345,21 @@ gdbarch_dump (struct gdbarch *gdbarch, struct ui_file *file)
(long) current_gdbarch->in_solib_call_trampoline (long) current_gdbarch->in_solib_call_trampoline
/*IN_SOLIB_CALL_TRAMPOLINE ()*/); /*IN_SOLIB_CALL_TRAMPOLINE ()*/);
#endif #endif
#ifdef INTEGER_TO_ADDRESS
fprintf_unfiltered (file,
"gdbarch_dump: %s # %s\n",
"INTEGER_TO_ADDRESS(type, buf)",
XSTRING (INTEGER_TO_ADDRESS (type, buf)));
if (GDB_MULTI_ARCH)
fprintf_unfiltered (file,
"gdbarch_dump: INTEGER_TO_ADDRESS = 0x%08lx\n",
(long) current_gdbarch->integer_to_address
/*INTEGER_TO_ADDRESS ()*/);
#endif
if (GDB_MULTI_ARCH)
fprintf_unfiltered (file,
"gdbarch_dump: in_function_epilogue_p = 0x%08lx\n",
(long) current_gdbarch->in_function_epilogue_p);
#ifdef MAX_REGISTER_RAW_SIZE #ifdef MAX_REGISTER_RAW_SIZE
fprintf_unfiltered (file, fprintf_unfiltered (file,
"gdbarch_dump: MAX_REGISTER_RAW_SIZE # %s\n", "gdbarch_dump: MAX_REGISTER_RAW_SIZE # %s\n",
@ -2091,6 +2119,14 @@ gdbarch_dump (struct gdbarch *gdbarch, struct ui_file *file)
(long) current_gdbarch->use_struct_convention (long) current_gdbarch->use_struct_convention
/*USE_STRUCT_CONVENTION ()*/); /*USE_STRUCT_CONVENTION ()*/);
#endif #endif
if (GDB_MULTI_ARCH)
fprintf_unfiltered (file,
"gdbarch_dump: register_read = 0x%08lx\n",
(long) current_gdbarch->register_read);
if (GDB_MULTI_ARCH)
fprintf_unfiltered (file,
"gdbarch_dump: register_write = 0x%08lx\n",
(long) current_gdbarch->register_write);
if (current_gdbarch->dump_tdep != NULL) if (current_gdbarch->dump_tdep != NULL)
current_gdbarch->dump_tdep (current_gdbarch, file); current_gdbarch->dump_tdep (current_gdbarch, file);
} }
@ -4386,6 +4422,42 @@ set_gdbarch_dwarf2_build_frame_info (struct gdbarch *gdbarch,
gdbarch->dwarf2_build_frame_info = dwarf2_build_frame_info; gdbarch->dwarf2_build_frame_info = dwarf2_build_frame_info;
} }
void
gdbarch_elf_make_msymbol_special (struct gdbarch *gdbarch, asymbol *sym, struct minimal_symbol *msym)
{
if (gdbarch->elf_make_msymbol_special == 0)
internal_error (__FILE__, __LINE__,
"gdbarch: gdbarch_elf_make_msymbol_special invalid");
if (gdbarch_debug >= 2)
fprintf_unfiltered (gdb_stdlog, "gdbarch_elf_make_msymbol_special called\n");
gdbarch->elf_make_msymbol_special (sym, msym);
}
void
set_gdbarch_elf_make_msymbol_special (struct gdbarch *gdbarch,
gdbarch_elf_make_msymbol_special_ftype elf_make_msymbol_special)
{
gdbarch->elf_make_msymbol_special = elf_make_msymbol_special;
}
void
gdbarch_coff_make_msymbol_special (struct gdbarch *gdbarch, int val, struct minimal_symbol *msym)
{
if (gdbarch->coff_make_msymbol_special == 0)
internal_error (__FILE__, __LINE__,
"gdbarch: gdbarch_coff_make_msymbol_special invalid");
if (gdbarch_debug >= 2)
fprintf_unfiltered (gdb_stdlog, "gdbarch_coff_make_msymbol_special called\n");
gdbarch->coff_make_msymbol_special (val, msym);
}
void
set_gdbarch_coff_make_msymbol_special (struct gdbarch *gdbarch,
gdbarch_coff_make_msymbol_special_ftype coff_make_msymbol_special)
{
gdbarch->coff_make_msymbol_special = coff_make_msymbol_special;
}
/* Keep a registry of per-architecture data-pointers required by GDB /* Keep a registry of per-architecture data-pointers required by GDB
modules. */ modules. */

View file

@ -43,6 +43,7 @@
struct frame_info; struct frame_info;
struct value; struct value;
struct objfile; struct objfile;
struct minimal_symbol;
extern struct gdbarch *current_gdbarch; extern struct gdbarch *current_gdbarch;
@ -2225,6 +2226,40 @@ extern void set_gdbarch_dwarf2_build_frame_info (struct gdbarch *gdbarch, gdbarc
#endif #endif
#endif #endif
/* Default (function) for non- multi-arch platforms. */
#if (!GDB_MULTI_ARCH) && !defined (ELF_MAKE_MSYMBOL_SPECIAL)
#define ELF_MAKE_MSYMBOL_SPECIAL(sym, msym) (default_elf_make_msymbol_special (sym, msym))
#endif
typedef void (gdbarch_elf_make_msymbol_special_ftype) (asymbol *sym, struct minimal_symbol *msym);
extern void gdbarch_elf_make_msymbol_special (struct gdbarch *gdbarch, asymbol *sym, struct minimal_symbol *msym);
extern void set_gdbarch_elf_make_msymbol_special (struct gdbarch *gdbarch, gdbarch_elf_make_msymbol_special_ftype *elf_make_msymbol_special);
#if (GDB_MULTI_ARCH > GDB_MULTI_ARCH_PARTIAL) && defined (ELF_MAKE_MSYMBOL_SPECIAL)
#error "Non multi-arch definition of ELF_MAKE_MSYMBOL_SPECIAL"
#endif
#if GDB_MULTI_ARCH
#if (GDB_MULTI_ARCH > GDB_MULTI_ARCH_PARTIAL) || !defined (ELF_MAKE_MSYMBOL_SPECIAL)
#define ELF_MAKE_MSYMBOL_SPECIAL(sym, msym) (gdbarch_elf_make_msymbol_special (current_gdbarch, sym, msym))
#endif
#endif
/* Default (function) for non- multi-arch platforms. */
#if (!GDB_MULTI_ARCH) && !defined (COFF_MAKE_MSYMBOL_SPECIAL)
#define COFF_MAKE_MSYMBOL_SPECIAL(val, msym) (default_coff_make_msymbol_special (val, msym))
#endif
typedef void (gdbarch_coff_make_msymbol_special_ftype) (int val, struct minimal_symbol *msym);
extern void gdbarch_coff_make_msymbol_special (struct gdbarch *gdbarch, int val, struct minimal_symbol *msym);
extern void set_gdbarch_coff_make_msymbol_special (struct gdbarch *gdbarch, gdbarch_coff_make_msymbol_special_ftype *coff_make_msymbol_special);
#if (GDB_MULTI_ARCH > GDB_MULTI_ARCH_PARTIAL) && defined (COFF_MAKE_MSYMBOL_SPECIAL)
#error "Non multi-arch definition of COFF_MAKE_MSYMBOL_SPECIAL"
#endif
#if GDB_MULTI_ARCH
#if (GDB_MULTI_ARCH > GDB_MULTI_ARCH_PARTIAL) || !defined (COFF_MAKE_MSYMBOL_SPECIAL)
#define COFF_MAKE_MSYMBOL_SPECIAL(val, msym) (gdbarch_coff_make_msymbol_special (current_gdbarch, val, msym))
#endif
#endif
extern struct gdbarch_tdep *gdbarch_tdep (struct gdbarch *gdbarch); extern struct gdbarch_tdep *gdbarch_tdep (struct gdbarch *gdbarch);

View file

@ -590,6 +590,8 @@ m:::int:in_function_epilogue_p:CORE_ADDR addr:addr::0:generic_in_function_epilog
# ARGV is an array of strings, one per argument. # ARGV is an array of strings, one per argument.
m::CONSTRUCT_INFERIOR_ARGUMENTS:char *:construct_inferior_arguments:int argc, char **argv:argc, argv:::construct_inferior_arguments::0 m::CONSTRUCT_INFERIOR_ARGUMENTS:char *:construct_inferior_arguments:int argc, char **argv:argc, argv:::construct_inferior_arguments::0
F:2:DWARF2_BUILD_FRAME_INFO:void:dwarf2_build_frame_info:struct objfile *objfile:objfile:::0 F:2:DWARF2_BUILD_FRAME_INFO:void:dwarf2_build_frame_info:struct objfile *objfile:objfile:::0
f:2:ELF_MAKE_MSYMBOL_SPECIAL:void:elf_make_msymbol_special:asymbol *sym, struct minimal_symbol *msym:sym, msym:::default_elf_make_msymbol_special::0
f:2:COFF_MAKE_MSYMBOL_SPECIAL:void:coff_make_msymbol_special:int val, struct minimal_symbol *msym:val, msym:::default_coff_make_msymbol_special::0
EOF EOF
} }
@ -697,6 +699,7 @@ cat <<EOF
struct frame_info; struct frame_info;
struct value; struct value;
struct objfile; struct objfile;
struct minimal_symbol;
extern struct gdbarch *current_gdbarch; extern struct gdbarch *current_gdbarch;