This is the mail archive of the
gdb-testers@sourceware.org
mailing list for the GDB project.
[binutils-gdb] Fetch all registers before writing the core register notes.
- From: sergiodj+buildbot at redhat dot com
- To: gdb-testers at sourceware dot org
- Date: Mon, 16 Mar 2015 10:09:09 -0400
- Subject: [binutils-gdb] Fetch all registers before writing the core register notes.
- Authentication-results: sourceware.org; auth=none
*** TEST RESULTS FOR COMMIT 3ce5b6e25ca2389c545282204b96064c00a13fab ***
Author: John Baldwin <jhb@FreeBSD.org>
Branch: master
Commit: 3ce5b6e25ca2389c545282204b96064c00a13fab
Fetch all registers before writing the core register notes.
Without this, not all registers were present in the core generated by
gcore. For example, running 'gcore' on a program without examining
the vector registers (SSE or AVX) would store all the vector registers
as zeros because they were not pulled into the regcache. Running
'info vector' before 'gcore' would store the correct values in the
core since it populated the regcache. For Linux processes, a similar
operation is achieved by having the thread iterator callback invoke
target_fetch_registers on each thread before its corresponding
register notes are dumped.
gdb/ChangeLog:
* fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
before writing core register notes.