* config/mips/linux.mt (DEPRECATED_TM_FILE): Delete.
* config/mips/tm-linux.h: Delete. * mips-linux-tdep.c (mips_svr4_so_ops): New. (mips_linux_in_dynsym_resolve_code): Make static. Use svr4_in_dynsym_resolve_code. (mips_linux_init_abi): Initialize mips_svr4_so_ops. Call set_solib_ops. * solib-svr4.c (svr4_in_dynsym_resolve_code, svr4_so_ops): Make global. * solib-svr4.h (svr4_so_ops, svr4_in_dynsym_resolve_code): Declare. * Makefile.in (mips-linux-tdep.o): Update. * solib.c (set_solib_ops): New. (current_target_so_ops): Update comment. * solib.h (set_solib_ops): New prototype.
This commit is contained in:
parent
5d51a2dbdb
commit
7d522c902e
8 changed files with 60 additions and 7 deletions
12
gdb/solib.c
12
gdb/solib.c
|
@ -67,11 +67,21 @@ solib_ops (struct gdbarch *gdbarch)
|
|||
struct target_so_ops **ops = gdbarch_data (gdbarch, solib_data);
|
||||
return *ops;
|
||||
}
|
||||
|
||||
/* Set the solib operations for GDBARCH to NEW_OPS. */
|
||||
|
||||
void
|
||||
set_solib_ops (struct gdbarch *gdbarch, struct target_so_ops *new_ops)
|
||||
{
|
||||
struct target_so_ops **ops = gdbarch_data (gdbarch, solib_data);
|
||||
*ops = new_ops;
|
||||
}
|
||||
|
||||
|
||||
/* external data declarations */
|
||||
|
||||
/* FIXME: gdbarch needs to control this variable */
|
||||
/* FIXME: gdbarch needs to control this variable, or else every
|
||||
configuration needs to call set_solib_ops. */
|
||||
struct target_so_ops *current_target_so_ops;
|
||||
|
||||
/* local data declarations */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue