aboutsummaryrefslogtreecommitdiff
path: root/gdbserver/win32-low.h
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2022-04-26 14:16:57 -0600
committerTom Tromey <tromey@adacore.com>2022-05-13 08:21:16 -0600
commitfcab58390fc7a972f499b8ae1b2ff06994b6c1fc (patch)
tree71deaa52a04fb55d314b4fe78783fcb9ea9a8b16 /gdbserver/win32-low.h
parent4eab18b566a0a10d8436eb221c606df4a2803edc (diff)
downloadgdb-fcab58390fc7a972f499b8ae1b2ff06994b6c1fc.zip
gdb-fcab58390fc7a972f499b8ae1b2ff06994b6c1fc.tar.gz
gdb-fcab58390fc7a972f499b8ae1b2ff06994b6c1fc.tar.bz2
Implement pid_to_exec_file for Windows in gdbserver
I noticed that gdbserver did not implement pid_to_exec_file for Windows, while gdb did implement it. This patch moves the code to nat/windows-nat.c, so that it can be shared. This makes the gdbserver implementation trivial.
Diffstat (limited to 'gdbserver/win32-low.h')
-rw-r--r--gdbserver/win32-low.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdbserver/win32-low.h b/gdbserver/win32-low.h
index c5f40dd..d16f1f9 100644
--- a/gdbserver/win32-low.h
+++ b/gdbserver/win32-low.h
@@ -160,6 +160,11 @@ public:
bool supports_stopped_by_sw_breakpoint () override;
const char *thread_name (ptid_t thread) override;
+
+ bool supports_pid_to_exec_file () override
+ { return true; }
+
+ const char *pid_to_exec_file (int pid) override;
};
/* The sole Windows process. */