This is the mail archive of the
gdb-testers@sourceware.org
mailing list for the GDB project.
[binutils-gdb] Zero-initialize linux note sections
- From: sergiodj+buildbot at sergiodj dot net
- To: gdb-testers at sourceware dot org
- Date: Fri, 26 Oct 2018 12:12:55 -0400
- Subject: [binutils-gdb] Zero-initialize linux note sections
*** TEST RESULTS FOR COMMIT afde3032dde478a2bbb2e0c4b0cb4256b27eb949 ***
Author: Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
Branch: master
Commit: afde3032dde478a2bbb2e0c4b0cb4256b27eb949
Zero-initialize linux note sections
This patches changes linux-tdep.c so that the buffer used to write
note sections when generating a core file is zero-initialized. This
way, bytes that are not collected won't contain random
data (e.g. padding bytes).
gdb/ChangeLog:
2018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
* linux-tdep.c (linux_collect_regset_section_cb): Use
std::vector<gdb_byte> instead of char * and malloc for buf.
Remove xfree.