diff options
author | Jon Turney <jon.turney@dronecode.org.uk> | 2020-06-30 16:52:41 +0100 |
---|---|---|
committer | Jon Turney <jon.turney@dronecode.org.uk> | 2020-09-18 17:12:11 +0100 |
commit | 62a5151b6b47d9e31bc49599b3f83803421d5819 (patch) | |
tree | d53ca3b505042f8c6c69ee8a7d94ba041c241ec5 /gdb/windows-tdep.h | |
parent | aff9d38745f734f3c0b162f6da39b8b9b5d1f81c (diff) | |
download | gdb-62a5151b6b47d9e31bc49599b3f83803421d5819.zip gdb-62a5151b6b47d9e31bc49599b3f83803421d5819.tar.gz gdb-62a5151b6b47d9e31bc49599b3f83803421d5819.tar.bz2 |
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 <jon.turney@dronecode.org.uk>
* 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.
Diffstat (limited to 'gdb/windows-tdep.h')
-rw-r--r-- | gdb/windows-tdep.h | 8 |
1 files changed, 8 insertions, 0 deletions
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. */ |