This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
gdb and binutils branch master updated. 47f7ffdb18d09177068d1252538395feb7ca09ec
- From: brobecke at sourceware dot org
- To: gdb-cvs at sourceware dot org
- Date: 20 Feb 2014 08:44:29 -0000
- Subject: gdb and binutils branch master updated. 47f7ffdb18d09177068d1252538395feb7ca09ec
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "gdb and binutils".
The branch, master has been updated
via 47f7ffdb18d09177068d1252538395feb7ca09ec (commit)
via 1cd9feab11bb859cd737afc553e0d6073454bdd2 (commit)
via ea39ad355eb72b296b30a66bbc81256a071e8f1e (commit)
from 95060284901dbfb617a988069604f0835c36c0ca (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=47f7ffdb18d09177068d1252538395feb7ca09ec
commit 47f7ffdb18d09177068d1252538395feb7ca09ec
Author: Joel Brobecker <brobecker@adacore.com>
Date: Mon Feb 3 06:10:48 2014 -0500
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.
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=1cd9feab11bb859cd737afc553e0d6073454bdd2
commit 1cd9feab11bb859cd737afc553e0d6073454bdd2
Author: Joel Brobecker <brobecker@adacore.com>
Date: Mon Feb 3 03:03:39 2014 -0500
Windows: Rely purely on event info when handling DLL load event
When a DLL gets loaded an the debugger gets a debug event about it,
the currently implementation in handle_load_dll currently tries to
fetch the DLL's name by first iterating over all DLLs known to
the system. It should be sufficient to rely on the name provided
with the event, however, especially in the situation we are now,
where we now know that we're past the statup phase for our inferior.
This patch therefore simplifies windows-nat.c::handle_load_dll to
only rely on the event's lpImageName.
It also updates the function's comment to document the assumption
regarding not being during the inferior's startup phase. And while
at it, it fixes the function documentation, which was probably
unintentionally inherited from another function (perhaps windows_wait).
gdb/ChangeLog:
* windows-nat.c (handle_load_dll): Rewrite this function's
introductory comment. Remove code using get_module_name
to get the DLL's name.
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=ea39ad355eb72b296b30a66bbc81256a071e8f1e
commit ea39ad355eb72b296b30a66bbc81256a071e8f1e
Author: Joel Brobecker <brobecker@adacore.com>
Date: Mon Feb 3 08:32:40 2014 +0100
Ignore DLL load/unload events during inferior initialization.
This patch aims at simplifying DLL handling during the inferior
initialization (process creation during the "run", or during an
"attach"). Instead of processing each DLL load event, which is
sometimes incomplete, we ignore these events until the inferior
has completed its startup phase, and then just iterate over all
DLLs via EnumProcessModules.
gdb/ChangeLog:
* windows-nat.c (get_windows_debug_event): Ignore
LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
if windows_initialization_done == 0.
(windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
Adjust implementation to always load all DLLs.
(do_initial_windows_stuff): Replace call to
windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
-----------------------------------------------------------------------
Summary of changes:
gdb/ChangeLog | 24 ++++++
gdb/windows-nat.c | 213 +++++++++++++++++++----------------------------------
2 files changed, 101 insertions(+), 136 deletions(-)
hooks/post-receive
--
gdb and binutils