| 1 | /* HP SOM Shared library declarations for GDB, the GNU Debugger. |
| 2 | Copyright (C) 1992 Free Software Foundation, Inc. |
| 3 | |
| 4 | This file is part of GDB. |
| 5 | |
| 6 | This program is free software; you can redistribute it and/or modify |
| 7 | it under the terms of the GNU General Public License as published by |
| 8 | the Free Software Foundation; either version 2 of the License, or |
| 9 | (at your option) any later version. |
| 10 | |
| 11 | This program is distributed in the hope that it will be useful, |
| 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 | GNU General Public License for more details. |
| 15 | |
| 16 | You should have received a copy of the GNU General Public License |
| 17 | along with this program; if not, write to the Free Software |
| 18 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 19 | |
| 20 | Written by the Center for Software Science at the Univerity of Utah |
| 21 | and by Cygnus Support. */ |
| 22 | |
| 23 | #ifdef __STDC__ /* Forward decl's for prototypes */ |
| 24 | struct target_ops; |
| 25 | struct objfile; |
| 26 | struct section_offsets; |
| 27 | #endif |
| 28 | |
| 29 | /* Called to add symbols from a shared library to gdb's symbol table. */ |
| 30 | |
| 31 | #define SOLIB_ADD(filename, from_tty, targ) \ |
| 32 | som_solib_add (filename, from_tty, targ) |
| 33 | |
| 34 | extern void |
| 35 | som_solib_add PARAMS ((char *, int, struct target_ops *)); |
| 36 | |
| 37 | extern CORE_ADDR |
| 38 | som_solib_get_got_by_pc PARAMS ((CORE_ADDR)); |
| 39 | |
| 40 | extern int |
| 41 | som_solib_section_offsets PARAMS ((struct objfile *, struct section_offsets *)); |
| 42 | |
| 43 | /* Function to be called when the inferior starts up, to discover the names |
| 44 | of shared libraries that are dynamically linked, the base addresses to |
| 45 | which they are linked, and sufficient information to read in their symbols |
| 46 | at a later time. */ |
| 47 | |
| 48 | #define SOLIB_CREATE_INFERIOR_HOOK(PID) som_solib_create_inferior_hook() |
| 49 | |
| 50 | extern void |
| 51 | som_solib_create_inferior_hook PARAMS((void)); |