windows-tdep.h 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /* Copyright (C) 2008-2022 Free Software Foundation, Inc.
  2. This file is part of GDB.
  3. This program is free software; you can redistribute it and/or modify
  4. it under the terms of the GNU General Public License as published by
  5. the Free Software Foundation; either version 3 of the License, or
  6. (at your option) any later version.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU General Public License for more details.
  11. You should have received a copy of the GNU General Public License
  12. along with this program. If not, see <http://www.gnu.org/licenses/>. */
  13. #ifndef WINDOWS_TDEP_H
  14. #define WINDOWS_TDEP_H
  15. struct obstack;
  16. struct gdbarch;
  17. extern struct cmd_list_element *info_w32_cmdlist;
  18. extern void init_w32_command_list (void);
  19. extern void windows_xfer_shared_library (const char* so_name,
  20. CORE_ADDR load_addr,
  21. CORE_ADDR *text_offset_cached,
  22. struct gdbarch *gdbarch,
  23. struct obstack *obstack);
  24. extern ULONGEST windows_core_xfer_shared_libraries (struct gdbarch *gdbarch,
  25. gdb_byte *readbuf,
  26. ULONGEST offset,
  27. ULONGEST len);
  28. extern std::string windows_core_pid_to_str (struct gdbarch *gdbarch,
  29. ptid_t ptid);
  30. /* To be called from the various GDB_OSABI_WINDOWS handlers for the
  31. various Windows architectures and machine types. */
  32. extern void windows_init_abi (struct gdbarch_info info,
  33. struct gdbarch *gdbarch);
  34. /* To be called from the various GDB_OSABI_CYGWIN handlers for the
  35. various Windows architectures and machine types. */
  36. extern void cygwin_init_abi (struct gdbarch_info info,
  37. struct gdbarch *gdbarch);
  38. /* Return true if the Portable Executable behind ABFD uses the Cygwin dll
  39. (cygwin1.dll). */
  40. extern bool is_linked_with_cygwin_dll (bfd *abfd);
  41. #endif