Add static_asserts for the sizes of space-critical structs
authorChristian Biesinger <cbiesinger@google.com>
Fri, 25 Oct 2019 18:40:27 +0000 (13:40 -0500)
committerChristian Biesinger <cbiesinger@google.com>
Mon, 4 Nov 2019 18:13:09 +0000 (12:13 -0600)
commit3573abe1de0f72eba731b27eed9a002975cd7a01
treed101f48687480ba8b43619eb9bfc598496239675
parentdae8b3eb235c976fb1c6f6572813a8cb96c86d31
Add static_asserts for the sizes of space-critical structs

Specifically the three structs mentioned in symtab.h:
- general_symbol_info
- symbol
- partial_symbol

This ensures that those structs won't accidentally get bigger.

gdb/ChangeLog:

2019-11-04  Christian Biesinger  <cbiesinger@google.com>

* psympriv.h: Add static_asserts for sizeof (general_symbol_info)
and sizeof (symbol).
* symtab.h: Add a static_assert for sizeof (partial_symbol).

Change-Id: Idd68320aa3e79ee7cc749019724636a58ce4b9c6
gdb/ChangeLog
gdb/psympriv.h
gdb/symtab.h
This page took 0.024473 seconds and 4 git commands to generate.