This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
gdb and binutils branch master updated. d763de106f7146d7b972f98c7d0113f80a65e4f5
- From: brobecke at sourceware dot org
- To: gdb-cvs at sourceware dot org
- Date: 26 Feb 2014 20:05:45 -0000
- Subject: gdb and binutils branch master updated. d763de106f7146d7b972f98c7d0113f80a65e4f5
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 d763de106f7146d7b972f98c7d0113f80a65e4f5 (commit)
via 850a0f76c25f74c4f3f86b079893e26ae2d52a9a (commit)
via f25b3fc33406d83293679955ac9fba088cd5ac5c (commit)
from 31aa7e4ee988b175da848cee7cff6cfb28a5aa99 (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=d763de106f7146d7b972f98c7d0113f80a65e4f5
commit d763de106f7146d7b972f98c7d0113f80a65e4f5
Author: Joel Brobecker <brobecker@adacore.com>
Date: Mon Feb 24 15:21:14 2014 -0800
gdbserver/Windows: Rely purely on event info when handling DLL load event
This is the GDBserver counterpart of a change we recently made in
GDB to only rely on get_image_name to determine its name.
This simplification, in turn, allows us to remove a fair amount of
functions and globals which now become unused.
gdb/gdbserver/ChangeLog:
* win32-low.c (psapi_get_dll_name,
* win32_CreateToolhelp32Snapshot): Delete.
(win32_CreateToolhelp32Snapshot, win32_Module32First)
(win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
Delete.
(handle_load_dll): Add function description.
Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=850a0f76c25f74c4f3f86b079893e26ae2d52a9a
commit 850a0f76c25f74c4f3f86b079893e26ae2d52a9a
Author: Joel Brobecker <brobecker@adacore.com>
Date: Mon Feb 24 15:21:13 2014 -0800
windows: Factorize handling of DLL load address offset
This patch is a small cleanup that moves the magic 0x1000 offset
to apply to a DLL's base address inside the win32_add_one_solib
function, rather than delegate that reponsibility to its callers.
gdb/gdbserver/ChangeLog:
* win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
Add comment.
(win32_add_all_dlls): Remove 0x1000 offset applied to DLL
base address when calling win32_add_one_solib.
(handle_load_dll): Delete local variable load_addr.
Remove 0x1000 offset applied to DLL base address when calling
win32_add_one_solib.
(handle_unload_dll): Add comment.
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=f25b3fc33406d83293679955ac9fba088cd5ac5c
commit f25b3fc33406d83293679955ac9fba088cd5ac5c
Author: Joel Brobecker <brobecker@adacore.com>
Date: Mon Feb 24 15:21:12 2014 -0800
gdbserver/windows: Ignore DLL load/unload events during child initialization.
This GDBserver patch mirrors a change made in GDB wich 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.
As a side-effect, it fixes a small bug where win32_ensure_ntdll_loaded
was missing a 0x1000 offset in the DLL base address. This problem
should only be visible on the 64bit version of Windows 8.1, since
this is the only platform where win32_ensure_ntdll_loaded is actually
needed.
gdb/gdbserver/ChangeLog:
* win32-low.c (win32_add_all_dlls): Renames
win32_ensure_ntdll_loaded. Rewrite function documentation.
Adjust implementation to always load all DLLs.
Add 0x1000 offset to DLL base address when calling
win32_add_one_solib.
(child_initialization_done): New static global.
(do_initial_child_stuff): Set child_initialization_done to
zero during child initialization, and 1 after. Replace call
to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
Add comment.
(match_dll_by_basename, dll_is_loaded_by_basename): Delete.
(handle_unload_dll): Add function documentation.
(get_child_debug_event): Ignore load and unload DLL events
during child initialization.
-----------------------------------------------------------------------
Summary of changes:
gdb/gdbserver/ChangeLog | 38 ++++++
gdb/gdbserver/win32-low.c | 279 ++++++++++-----------------------------------
2 files changed, 96 insertions(+), 221 deletions(-)
hooks/post-receive
--
gdb and binutils