mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-02-17 13:10:12 +08:00
* mips-tdep.c (mips_pdr_data): New.
(non_heuristic_proc_desc): Use objfile_data and set_objfile_data. (_initialize_mips_tdep): Initialize mips_pdr_data.
This commit is contained in:
parent
9d58e29db2
commit
8d5f9dcb37
@ -1,3 +1,9 @@
|
||||
2004-03-29 Daniel Jacobowitz <drow@mvista.com>
|
||||
|
||||
* mips-tdep.c (mips_pdr_data): New.
|
||||
(non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
|
||||
(_initialize_mips_tdep): Initialize mips_pdr_data.
|
||||
|
||||
2004-03-29 Corinna Vinschen <vinschen@redhat.com>
|
||||
|
||||
* minsyms.c (install_minimal_symbols): Move dropping leading
|
||||
|
@ -54,6 +54,8 @@
|
||||
#include "frame-base.h"
|
||||
#include "trad-frame.h"
|
||||
|
||||
static const struct objfile_data *mips_pdr_data;
|
||||
|
||||
static void set_reg_offset (CORE_ADDR *saved_regs, int regnum, CORE_ADDR off);
|
||||
static struct type *mips_register_type (struct gdbarch *gdbarch, int regnum);
|
||||
|
||||
@ -2298,7 +2300,7 @@ non_heuristic_proc_desc (CORE_ADDR pc, CORE_ADDR *addrptr)
|
||||
sec = find_pc_section (pc);
|
||||
if (sec != NULL)
|
||||
{
|
||||
priv = (struct mips_objfile_private *) sec->objfile->obj_private;
|
||||
priv = (struct mips_objfile_private *) objfile_data (sec->objfile, mips_pdr_data);
|
||||
|
||||
/* Search the ".pdr" section generated by GAS. This includes most of
|
||||
the information normally found in ECOFF PDRs. */
|
||||
@ -2316,7 +2318,7 @@ non_heuristic_proc_desc (CORE_ADDR pc, CORE_ADDR *addrptr)
|
||||
priv = obstack_alloc (&sec->objfile->objfile_obstack,
|
||||
sizeof (struct mips_objfile_private));
|
||||
priv->size = 0;
|
||||
sec->objfile->obj_private = priv;
|
||||
set_objfile_data (sec->objfile, mips_pdr_data, priv);
|
||||
}
|
||||
else if (priv == NULL)
|
||||
{
|
||||
@ -2344,7 +2346,7 @@ non_heuristic_proc_desc (CORE_ADDR pc, CORE_ADDR *addrptr)
|
||||
else
|
||||
priv->size = 0;
|
||||
|
||||
sec->objfile->obj_private = priv;
|
||||
set_objfile_data (sec->objfile, mips_pdr_data, priv);
|
||||
}
|
||||
the_bfd = NULL;
|
||||
|
||||
@ -6104,6 +6106,8 @@ _initialize_mips_tdep (void)
|
||||
|
||||
gdbarch_register (bfd_arch_mips, mips_gdbarch_init, mips_dump_tdep);
|
||||
|
||||
mips_pdr_data = register_objfile_data ();
|
||||
|
||||
/* Add root prefix command for all "set mips"/"show mips" commands */
|
||||
add_prefix_cmd ("mips", no_class, set_mips_command,
|
||||
"Various MIPS specific commands.",
|
||||
|
Loading…
Reference in New Issue
Block a user