aboutsummaryrefslogtreecommitdiff
path: root/gdb/ChangeLog
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@adacore.com>2014-02-03 06:10:48 -0500
committerJoel Brobecker <brobecker@adacore.com>2014-02-20 09:43:03 +0100
commit47f7ffdb18d09177068d1252538395feb7ca09ec (patch)
treed2dc43f458319431646594aa56fa1689fb646aad /gdb/ChangeLog
parent1cd9feab11bb859cd737afc553e0d6073454bdd2 (diff)
downloadgdb-47f7ffdb18d09177068d1252538395feb7ca09ec.zip
gdb-47f7ffdb18d09177068d1252538395feb7ca09ec.tar.gz
gdb-47f7ffdb18d09177068d1252538395feb7ca09ec.tar.bz2
Simplify windows-nat.c::get_module_name
Now that get_module_name is no longer called for handling DLL events, we can simplify it a bit, knowing that the only use is to get the executable's filename. While doing so, we adjusted the implementation a bit to avoid references to DLLs, renamed it to make its more-targeted usage more explicit, moved it right before the only function that uses it. We also remove the use of hard-coded length for the buffers being used. gdb/ChangeLog: * windows-nat.c (get_module_name): Delete. (windows_get_exec_module_filename): New function, mostly inspired from get_module_name. (windows_pid_to_exec_file): Replace call to get_module_name by call to windows_get_exec_module_filename.
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r--gdb/ChangeLog8
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 0a01488..2745653 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,13 @@
2014-02-20 Joel Brobecker <brobecker@adacore.com>
+ * windows-nat.c (get_module_name): Delete.
+ (windows_get_exec_module_filename): New function, mostly
+ inspired from get_module_name.
+ (windows_pid_to_exec_file): Replace call to get_module_name
+ by call to windows_get_exec_module_filename.
+
+2014-02-20 Joel Brobecker <brobecker@adacore.com>
+
* windows-nat.c (handle_load_dll): Rewrite this function's
introductory comment. Remove code using get_module_name
to get the DLL's name.