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/amd64-windows-tdep.c | |
parent | aff9d38745f734f3c0b162f6da39b8b9b5d1f81c (diff) | |
download | fsf-binutils-gdb-62a5151b6b47d9e31bc49599b3f83803421d5819.zip fsf-binutils-gdb-62a5151b6b47d9e31bc49599b3f83803421d5819.tar.gz fsf-binutils-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/amd64-windows-tdep.c')
-rw-r--r-- | gdb/amd64-windows-tdep.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/amd64-windows-tdep.c b/gdb/amd64-windows-tdep.c index 7bb98bd..e427c20 100644 --- a/gdb/amd64-windows-tdep.c +++ b/gdb/amd64-windows-tdep.c @@ -1310,6 +1310,11 @@ amd64_windows_init_abi_common (gdbarch_info info, struct gdbarch *gdbarch) tdep->sizeof_gregset = AMD64_WINDOWS_SIZEOF_GREGSET; tdep->sizeof_fpregset = 0; + /* Core file support. */ + set_gdbarch_core_xfer_shared_libraries + (gdbarch, windows_core_xfer_shared_libraries); + set_gdbarch_core_pid_to_str (gdbarch, windows_core_pid_to_str); + set_gdbarch_auto_wide_charset (gdbarch, amd64_windows_auto_wide_charset); } |