diff options
author | Nick Alcock <nick.alcock@oracle.com> | 2019-07-11 16:21:26 +0100 |
---|---|---|
committer | Nick Alcock <nick.alcock@oracle.com> | 2019-10-03 17:04:55 +0100 |
commit | 2db912ba1a9e1c249cb4795f781fd4ea9fe9e7f2 (patch) | |
tree | b2fbac05c35401a797365b1ce7f4f12f6cb70ff4 /gdb/stub-termcap.c | |
parent | 6d5944fca682fe97f37e537f78b665ada2400f51 (diff) | |
download | gdb-2db912ba1a9e1c249cb4795f781fd4ea9fe9e7f2.zip gdb-2db912ba1a9e1c249cb4795f781fd4ea9fe9e7f2.tar.gz gdb-2db912ba1a9e1c249cb4795f781fd4ea9fe9e7f2.tar.bz2 |
libctf: add the object index and function index sections
No code handles these yet, but our latest GCC patches are generating
them, so we have to be ready for them or erroneously conclude that we
have file corruption.
(This simultaneously fixes a longstanding bug, concealed because nothing
was generating anything in the object or function info sections, where
the end of the section was being tested against the wrong thing: it
would have walked over the entire contents of the variable section and
treated them as part of the function info section. This had to change
now anyway because the new sections have landed in between.)
include/
* ctf.h: Add object index and function index sections. Describe
them. Improve the description of the variable section and clarify
the constraints on backward-pointing type nodes.
(ctf_header): Add cth_objtidxoff, cth_funcidxoff.
libctf/
* ctf-open.c (init_symtab): Check for overflow against the right
section.
(upgrade_header): Set cth_objtidxoff, cth_funcidxoff to zero-length.
(upgrade_types_v1): Note that these sections are not checked.
(flip_header): Endian-swap the header fields.
(flip_ctf): Endian-swap the sections.
(flip_objts): Update comment.
(ctf_bufopen): Check header offsets and alignment for validity.
Diffstat (limited to 'gdb/stub-termcap.c')
0 files changed, 0 insertions, 0 deletions