1 /* Shared library declarations for GDB, the GNU Debugger.
3 Copyright (C) 1992-2013 Free Software Foundation, Inc.
5 This file is part of GDB.
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 3 of the License, or
10 (at your option) any later version.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program. If not, see <http://www.gnu.org/licenses/>. */
23 /* Forward decl's for prototypes */
29 /* Called when we free all symtabs, to free the shared library information
32 extern void clear_solib (void);
34 /* Called to add symbols from a shared library to gdb's symbol table. */
36 extern void solib_add (char *, int, struct target_ops
*, int);
37 extern int solib_read_symbols (struct so_list
*, int);
39 /* Function to be called when the inferior starts up, to discover the
40 names of shared libraries that are dynamically linked, the base
41 addresses to which they are linked, and sufficient information to
42 read in their symbols at a later time. */
44 extern void solib_create_inferior_hook (int from_tty
);
46 /* If ADDR lies in a shared library, return its name. */
48 extern char *solib_name_from_address (struct program_space
*, CORE_ADDR
);
50 /* Return 1 if ADDR lies within SOLIB. */
52 extern int solib_contains_address_p (const struct so_list
*, CORE_ADDR
);
54 /* Return whether the data starting at VADDR, size SIZE, must be kept
55 in a core file for shared libraries loaded before "gcore" is used
56 to be handled correctly when the core file is loaded. This only
57 applies when the section would otherwise not be kept in the core
58 file (in particular, for readonly sections). */
60 extern int solib_keep_data_in_core (CORE_ADDR vaddr
, unsigned long size
);
62 /* Return 1 if PC lies in the dynamic symbol resolution code of the
65 extern int in_solib_dynsym_resolve_code (CORE_ADDR
);
67 /* Discard symbols that were auto-loaded from shared libraries. */
69 extern void no_shared_libraries (char *ignored
, int from_tty
);
71 /* Set the solib operations for GDBARCH to NEW_OPS. */
73 extern void set_solib_ops (struct gdbarch
*gdbarch
,
74 struct target_so_ops
*new_ops
);
76 /* Return non-zero if NAME is the libpthread shared library. */
78 extern int libpthread_name_p (const char *name
);
80 /* Look up symbol from both symbol table and dynamic string table. */
82 extern CORE_ADDR
gdb_bfd_lookup_symbol (bfd
*abfd
,
83 int (*match_sym
) (asymbol
*, void *),
86 /* Look up symbol from symbol table. */
88 extern CORE_ADDR
gdb_bfd_lookup_symbol_from_symtab (bfd
*abfd
,
89 int (*match_sym
) (asymbol
*,
This page took 0.03419 seconds and 4 git commands to generate.