| 1 | /* COFF (SVR3) 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., 675 Mass Ave, Cambridge, MA 02139, USA. */ |
| 19 | |
| 20 | #ifdef __STDC__ /* Forward decl's for prototypes */ |
| 21 | struct target_ops; |
| 22 | #endif |
| 23 | |
| 24 | /* Called when we free all symtabs, to free the shared library information |
| 25 | as well. */ |
| 26 | |
| 27 | #if 0 |
| 28 | #define CLEAR_SOLIB coff_clear_solib |
| 29 | |
| 30 | extern void |
| 31 | coff_clear_solib PARAMS ((void)); |
| 32 | #endif |
| 33 | |
| 34 | /* Called to add symbols from a shared library to gdb's symbol table. */ |
| 35 | |
| 36 | #define SOLIB_ADD(filename, from_tty, targ) \ |
| 37 | coff_solib_add (filename, from_tty, targ) |
| 38 | |
| 39 | extern void |
| 40 | coff_solib_add PARAMS ((char *, int, struct target_ops *)); |
| 41 | |
| 42 | /* Function to be called when the inferior starts up, to discover the names |
| 43 | of shared libraries that are dynamically linked, the base addresses to |
| 44 | which they are linked, and sufficient information to read in their symbols |
| 45 | at a later time. */ |
| 46 | |
| 47 | #define SOLIB_CREATE_INFERIOR_HOOK(PID) coff_solib_create_inferior_hook() |
| 48 | |
| 49 | extern void |
| 50 | coff_solib_create_inferior_hook PARAMS((void)); /* solib.c */ |
| 51 | |
| 52 | /* If we can't set a breakpoint, and it's in a shared library, just |
| 53 | disable it. */ |
| 54 | |
| 55 | #if 0 |
| 56 | #define DISABLE_UNSETTABLE_BREAK(addr) coff_solib_address(addr) |
| 57 | |
| 58 | extern int |
| 59 | solib_address PARAMS ((CORE_ADDR)); /* solib.c */ |
| 60 | #endif |