mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-04 05:48:20 +08:00
* gdbarch.sh (target_gdbarch): Remove macro.
(get_target_gdbarch): Rename to target_gdbarch. * gdbarch.c, gdbarch.h: Rebuild. * ada-tasks.c, aix-thread.c, amd64-linux-nat.c, arch-utils.c, arm-tdep.c, auxv.c, breakpoint.c, bsd-uthread.c, corefile.c, darwin-nat-info.c, dcache.c, dsrec.c, exec.c, fbsd-nat.c, filesystem.c, gcore.c, gnu-nat.c, i386-darwin-nat.c, i386-nat.c, ia64-vms-tdep.c, inf-ptrace.c, infcmd.c, jit.c, linux-nat.c, linux-tdep.c, linux-thread-db.c, m32r-rom.c, memattr.c, mep-tdep.c, microblaze-tdep.c, mips-linux-nat.c, mips-linux-tdep.c, mips-tdep.c, monitor.c, moxie-tdep.c, nto-procfs.c, nto-tdep.c, ppc-linux-nat.c, proc-service.c, procfs.c, progspace.c, ravenscar-thread.c, record.c, remote-m32r-sdi.c, remote-mips.c, remote-sim.c, remote.c, rl78-tdep.c, rs6000-nat.c, rx-tdep.c, s390-nat.c, sol-thread.c, solib-darwin.c, solib-dsbt.c, solib-frv.c, solib-ia64-hpux.c, solib-irix.c, solib-pa64.c, solib-som.c, solib-spu.c, solib-sunos.c, solib-svr4.c, solib.c, spu-linux-nat.c, spu-multiarch.c, spu-tdep.c, symfile-mem.c, symfile.c, symtab.c, target-descriptions.c, target.c, target.h, tracepoint.c, windows-nat.c, windows-tdep.c, xcoffsolib.c, cli/cli-dump.c, common/agent.c, mi/mi-interp.c, python/py-finishbreakpoint.c, python/py-inferior.c, python/python.c: Update.
This commit is contained in:
28
gdb/solib.c
28
gdb/solib.c
@ -143,12 +143,12 @@ show_solib_search_path (struct ui_file *file, int from_tty,
|
||||
char *
|
||||
solib_find (char *in_pathname, int *fd)
|
||||
{
|
||||
struct target_so_ops *ops = solib_ops (target_gdbarch);
|
||||
struct target_so_ops *ops = solib_ops (target_gdbarch ());
|
||||
int found_file = -1;
|
||||
char *temp_pathname = NULL;
|
||||
int gdb_sysroot_is_empty;
|
||||
const char *solib_symbols_extension
|
||||
= gdbarch_solib_symbols_extension (target_gdbarch);
|
||||
= gdbarch_solib_symbols_extension (target_gdbarch ());
|
||||
const char *fskind = effective_target_file_system_kind ();
|
||||
struct cleanup *old_chain = make_cleanup (null_cleanup, NULL);
|
||||
char *sysroot = NULL;
|
||||
@ -424,7 +424,7 @@ solib_bfd_open (char *pathname)
|
||||
}
|
||||
|
||||
/* Check bfd arch. */
|
||||
b = gdbarch_bfd_arch_info (target_gdbarch);
|
||||
b = gdbarch_bfd_arch_info (target_gdbarch ());
|
||||
if (!b->compatible (b, bfd_get_arch_info (abfd)))
|
||||
warning (_("`%s': Shared library architecture %s is not compatible "
|
||||
"with target architecture %s."), bfd_get_filename (abfd),
|
||||
@ -448,7 +448,7 @@ solib_bfd_open (char *pathname)
|
||||
static int
|
||||
solib_map_sections (struct so_list *so)
|
||||
{
|
||||
struct target_so_ops *ops = solib_ops (target_gdbarch);
|
||||
struct target_so_ops *ops = solib_ops (target_gdbarch ());
|
||||
char *filename;
|
||||
struct target_section *p;
|
||||
struct cleanup *old_chain;
|
||||
@ -549,7 +549,7 @@ free_so_symbols (struct so_list *so)
|
||||
void
|
||||
free_so (struct so_list *so)
|
||||
{
|
||||
struct target_so_ops *ops = solib_ops (target_gdbarch);
|
||||
struct target_so_ops *ops = solib_ops (target_gdbarch ());
|
||||
|
||||
free_so_symbols (so);
|
||||
ops->free_so (so);
|
||||
@ -668,7 +668,7 @@ solib_used (const struct so_list *const known)
|
||||
static void
|
||||
update_solib_list (int from_tty, struct target_ops *target)
|
||||
{
|
||||
struct target_so_ops *ops = solib_ops (target_gdbarch);
|
||||
struct target_so_ops *ops = solib_ops (target_gdbarch ());
|
||||
struct so_list *inferior = ops->current_sos();
|
||||
struct so_list *gdb, **gdb_link;
|
||||
|
||||
@ -930,7 +930,7 @@ solib_add (char *pattern, int from_tty,
|
||||
|
||||
if (loaded_any_symbols)
|
||||
{
|
||||
struct target_so_ops *ops = solib_ops (target_gdbarch);
|
||||
struct target_so_ops *ops = solib_ops (target_gdbarch ());
|
||||
|
||||
/* Getting new symbols may change our opinion about what is
|
||||
frameless. */
|
||||
@ -954,7 +954,7 @@ info_sharedlibrary_command (char *pattern, int from_tty)
|
||||
int addr_width;
|
||||
int nr_libs;
|
||||
struct cleanup *table_cleanup;
|
||||
struct gdbarch *gdbarch = target_gdbarch;
|
||||
struct gdbarch *gdbarch = target_gdbarch ();
|
||||
struct ui_out *uiout = current_uiout;
|
||||
|
||||
if (pattern)
|
||||
@ -1103,7 +1103,7 @@ solib_name_from_address (struct program_space *pspace, CORE_ADDR address)
|
||||
int
|
||||
solib_keep_data_in_core (CORE_ADDR vaddr, unsigned long size)
|
||||
{
|
||||
struct target_so_ops *ops = solib_ops (target_gdbarch);
|
||||
struct target_so_ops *ops = solib_ops (target_gdbarch ());
|
||||
|
||||
if (ops->keep_data_in_core)
|
||||
return ops->keep_data_in_core (vaddr, size);
|
||||
@ -1116,7 +1116,7 @@ solib_keep_data_in_core (CORE_ADDR vaddr, unsigned long size)
|
||||
void
|
||||
clear_solib (void)
|
||||
{
|
||||
struct target_so_ops *ops = solib_ops (target_gdbarch);
|
||||
struct target_so_ops *ops = solib_ops (target_gdbarch ());
|
||||
|
||||
/* This function is expected to handle ELF shared libraries. It is
|
||||
also used on Solaris, which can run either ELF or a.out binaries
|
||||
@ -1164,7 +1164,7 @@ clear_solib (void)
|
||||
void
|
||||
solib_create_inferior_hook (int from_tty)
|
||||
{
|
||||
struct target_so_ops *ops = solib_ops (target_gdbarch);
|
||||
struct target_so_ops *ops = solib_ops (target_gdbarch ());
|
||||
|
||||
ops->solib_create_inferior_hook (from_tty);
|
||||
}
|
||||
@ -1175,7 +1175,7 @@ solib_create_inferior_hook (int from_tty)
|
||||
int
|
||||
in_solib_dynsym_resolve_code (CORE_ADDR pc)
|
||||
{
|
||||
struct target_so_ops *ops = solib_ops (target_gdbarch);
|
||||
struct target_so_ops *ops = solib_ops (target_gdbarch ());
|
||||
|
||||
return ops->in_dynsym_resolve_code (pc);
|
||||
}
|
||||
@ -1277,7 +1277,7 @@ reload_shared_libraries (char *ignored, int from_tty,
|
||||
|
||||
reload_shared_libraries_1 (from_tty);
|
||||
|
||||
ops = solib_ops (target_gdbarch);
|
||||
ops = solib_ops (target_gdbarch ());
|
||||
|
||||
/* Creating inferior hooks here has two purposes. First, if we reload
|
||||
shared libraries then the address of solib breakpoint we've computed
|
||||
@ -1344,7 +1344,7 @@ solib_global_lookup (const struct objfile *objfile,
|
||||
const char *name,
|
||||
const domain_enum domain)
|
||||
{
|
||||
struct target_so_ops *ops = solib_ops (target_gdbarch);
|
||||
struct target_so_ops *ops = solib_ops (target_gdbarch ());
|
||||
|
||||
if (ops->lookup_lib_global_symbol != NULL)
|
||||
return ops->lookup_lib_global_symbol (objfile, name, domain);
|
||||
|
Reference in New Issue
Block a user