addrmap: use gdb_static_assert for type size assertions
authorSimon Marchi <simon.marchi@efficios.com>
Tue, 29 Oct 2019 21:51:36 +0000 (17:51 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Tue, 29 Oct 2019 21:51:36 +0000 (17:51 -0400)
commit90421c56566cca675aaece34a76b68af77dd76e6
treefd32978ae833f4b49d3b8dd6450fd1a5280f12c8
parent31edb802957b0073c571f48b9262e66b817fd360
addrmap: use gdb_static_assert for type size assertions

These assertions can be done at compile time instead of at runtime.

gdb/ChangeLog:

* addrmap.c: Add static assertions of type size, moved from
_initialize_addrmap.
(_initialize_addrmap): Remove.

Change-Id: If089fc5d620a7168bdcdf967c6c4fecd6696b670
gdb/ChangeLog
gdb/addrmap.c