diff options
author | 2022-04-26 14:16:57 -0600 | |
---|---|---|
committer | 2022-05-13 08:21:16 -0600 | |
commit | fcab58390fc7a972f499b8ae1b2ff06994b6c1fc (patch) | |
tree | 71deaa52a04fb55d314b4fe78783fcb9ea9a8b16 /gdbserver/win32-low.h | |
parent | Remove windows_process_info::id (diff) | |
download | binutils-gdb-fcab58390fc7a972f499b8ae1b2ff06994b6c1fc.tar.gz binutils-gdb-fcab58390fc7a972f499b8ae1b2ff06994b6c1fc.tar.bz2 binutils-gdb-fcab58390fc7a972f499b8ae1b2ff06994b6c1fc.zip |
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.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gdbserver/win32-low.h b/gdbserver/win32-low.h index c5f40dd8d0a..d16f1f9609c 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. */ |