diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2017-03-02 10:58:19 +0100 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2017-03-02 10:58:19 +0100 |
commit | b451e98a909e1a6afa71c4a4655adc4cfeea5249 (patch) | |
tree | 2c91909ee5d291eeed9a05ed954b4cf41c998490 /binutils/dwarf.c | |
parent | d4620bee57be53f7a6b14c01b2ea22d22a61bef0 (diff) | |
download | gdb-b451e98a909e1a6afa71c4a4655adc4cfeea5249.zip gdb-b451e98a909e1a6afa71c4a4655adc4cfeea5249.tar.gz gdb-b451e98a909e1a6afa71c4a4655adc4cfeea5249.tar.bz2 |
New debug_displays_assert
binutils/
2017-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
* dwarf.c (debug_displays_assert): New static assertion.
Diffstat (limited to 'binutils/dwarf.c')
-rw-r--r-- | binutils/dwarf.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/binutils/dwarf.c b/binutils/dwarf.c index ad0bfcf..fdfbc16 100644 --- a/binutils/dwarf.c +++ b/binutils/dwarf.c @@ -8591,3 +8591,6 @@ struct dwarf_section_display debug_displays[] = { { ".debug_tu_index", "", NULL, NULL, 0, 0, 0, NULL, 0, NULL }, display_cu_index, &do_debug_cu_index, FALSE }, }; + +/* A static assertion. */ +extern int debug_displays_assert[ARRAY_SIZE (debug_displays) == max ? 1 : -1]; |