From 62a5151b6b47d9e31bc49599b3f83803421d5819 Mon Sep 17 00:00:00 2001 From: Jon Turney Date: Tue, 30 Jun 2020 16:52:41 +0100 Subject: Promote windows_core_xfer_shared_libraries and windows_core_pid_to_str Move windows_core_xfer_shared_libraries() and windows_core_pid_to_str() to windows-tdep, and use in amd64-windows-tdep.c to handle Cygwin x86_64 core dumps. v2: Keep _initialize function at the bottom of the file. gdb/ChangeLog: 2020-07-01 Jon Turney * windows-tdep.h: Add prototypes. * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move. (i386_windows_core_pid_to_str): Move and rename ... * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here (windows_core_pid_to_str): ... and here. * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here. --- gdb/windows-tdep.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'gdb/windows-tdep.h') diff --git a/gdb/windows-tdep.h b/gdb/windows-tdep.h index cd7717b..ec677cb 100644 --- a/gdb/windows-tdep.h +++ b/gdb/windows-tdep.h @@ -31,6 +31,14 @@ extern void windows_xfer_shared_library (const char* so_name, struct gdbarch *gdbarch, struct obstack *obstack); +extern ULONGEST windows_core_xfer_shared_libraries (struct gdbarch *gdbarch, + gdb_byte *readbuf, + ULONGEST offset, + ULONGEST len); + +extern std::string windows_core_pid_to_str (struct gdbarch *gdbarch, + ptid_t ptid); + /* To be called from the various GDB_OSABI_WINDOWS handlers for the various Windows architectures and machine types. */ -- cgit v1.1