450005e7c2
before deleting and restoring it. (safe_symbol_file_add): Ensure that gdb_stderr is flushed before reassigning it. (handle_load_dll): Split into two functions so that WFI can handle shared library events. (child_solib_loaded_library_pathname): New function. (child_clear_solibs): New function. Clears shared library list. (child_solib_add): New function. Adds shared library symbols. (dll_symbol_command): New function. Handles "dll-symbol" command. (info_dll_command): New function. Handles info "sharedlibrary" command. (handle_exceptions): Eliminate 'ignore_trap' argument. (get_child_debug_event): Eliminate two arguments. Return "pid" when appropriate. Break out on most events to allow WFI to handle stuff. (child_wait): Accomodate get_child_debug_event changes. (child_attach): Clear thread list and list of loaded dlls. (child_create_inferior): Clear list of loaded dlls. Use wait_for_inferior in a loop to look for first "trap". (child_resume): Avoid accessing a possibly-freed thread pointer. (_initialize_inftarg): Add "dll-symbols", "sharedlibrary", and "info dll", and "info sharedlibrary" commands. * config/i386/tm-cygwin.h: Add some shared library (aka DLL) hooks.
43 lines
1.7 KiB
C
43 lines
1.7 KiB
C
/* Macro definitions for i386 running under the win32 API Unix.
|
|
Copyright 1995, 1996, 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
|
|
|
|
This file is part of GDB.
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
(at your option) any later version.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program; if not, write to the Free Software
|
|
Foundation, Inc., 59 Temple Place - Suite 330,
|
|
Boston, MA 02111-1307, USA. */
|
|
|
|
|
|
#undef HAVE_SSE_REGS /* FIXME! win32-nat.c needs to support XMMi registers */
|
|
#define HAVE_I387_REGS
|
|
|
|
#include "i386/tm-i386v.h"
|
|
|
|
#if 0
|
|
#define IN_SOLIB_CALL_TRAMPOLINE(pc, name) skip_trampoline_code (pc, name)
|
|
#define SKIP_TRAMPOLINE_CODE(pc) skip_trampoline_code (pc, 0)
|
|
extern CORE_ADDR skip_trampoline_code (CORE_ADDR pc, char *name);
|
|
#endif
|
|
|
|
#define SOLIB_ADD(filename, from_tty, targ) child_solib_add(filename, from_tty, targ)
|
|
#define SOLIB_LOADED_LIBRARY_PATHNAME(pid) child_solib_loaded_library_pathname(pid)
|
|
#define CLEAR_SOLIB child_clear_solib
|
|
#define ADD_SHARED_SYMBOL_FILES dll_symbol_command
|
|
|
|
struct target_ops;
|
|
char *cygwin_pid_to_str (int pid);
|
|
void child_solib_add (char *, int, struct target_ops *);
|
|
char *child_solib_loaded_library_pathname(int);
|
|
void child_clear_solib (void);
|
|
void dll_symbol_command (char *, int);
|