diff options
author | Pedro Franco de Carvalho <pedromfc@linux.ibm.com> | 2018-10-26 09:37:53 -0300 |
---|---|---|
committer | Pedro Franco de Carvalho <pedromfc@linux.ibm.com> | 2018-10-26 09:41:20 -0300 |
commit | afde3032dde478a2bbb2e0c4b0cb4256b27eb949 (patch) | |
tree | 82722bc0bbdba33634a51e4d76d1e61c51662108 /gdb/source.h | |
parent | b971899198607b844f5a37e39dc561766c3b331a (diff) | |
download | gdb-afde3032dde478a2bbb2e0c4b0cb4256b27eb949.zip gdb-afde3032dde478a2bbb2e0c4b0cb4256b27eb949.tar.gz gdb-afde3032dde478a2bbb2e0c4b0cb4256b27eb949.tar.bz2 |
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.
Diffstat (limited to 'gdb/source.h')
0 files changed, 0 insertions, 0 deletions