xref: /netbsd-src/external/gpl3/gdb/dist/gdbserver/dll.h (revision 13ed34fa5696ce1ff8e9519eeb5619eee4331db8)
1*13ed34faSchristos /* Copyright (C) 1993-2024 Free Software Foundation, Inc.
28dffb485Schristos 
38dffb485Schristos    This file is part of GDB.
48dffb485Schristos 
58dffb485Schristos    This program is free software; you can redistribute it and/or modify
68dffb485Schristos    it under the terms of the GNU General Public License as published by
78dffb485Schristos    the Free Software Foundation; either version 3 of the License, or
88dffb485Schristos    (at your option) any later version.
98dffb485Schristos 
108dffb485Schristos    This program is distributed in the hope that it will be useful,
118dffb485Schristos    but WITHOUT ANY WARRANTY; without even the implied warranty of
128dffb485Schristos    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
138dffb485Schristos    GNU General Public License for more details.
148dffb485Schristos 
158dffb485Schristos    You should have received a copy of the GNU General Public License
168dffb485Schristos    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
178dffb485Schristos 
188dffb485Schristos #ifndef GDBSERVER_DLL_H
198dffb485Schristos #define GDBSERVER_DLL_H
208dffb485Schristos 
218dffb485Schristos #include <list>
228dffb485Schristos 
234b169a6bSchristos struct process_info;
244b169a6bSchristos 
258dffb485Schristos struct dll_info
268dffb485Schristos {
278dffb485Schristos   dll_info (const std::string &name_, CORE_ADDR base_addr_)
288dffb485Schristos   : name (name_), base_addr (base_addr_)
298dffb485Schristos   {}
308dffb485Schristos 
318dffb485Schristos   std::string name;
328dffb485Schristos   CORE_ADDR base_addr;
338dffb485Schristos };
348dffb485Schristos 
358dffb485Schristos extern void clear_dlls (void);
368dffb485Schristos extern void loaded_dll (const char *name, CORE_ADDR base_addr);
374b169a6bSchristos extern void loaded_dll (process_info *proc, const char *name,
384b169a6bSchristos 			CORE_ADDR base_addr);
398dffb485Schristos extern void unloaded_dll (const char *name, CORE_ADDR base_addr);
404b169a6bSchristos extern void unloaded_dll (process_info *proc, const char *name,
414b169a6bSchristos 			  CORE_ADDR base_addr);
428dffb485Schristos 
438dffb485Schristos #endif /* GDBSERVER_DLL_H */
44