Use block_enum instead of int for better typesafety
authorChristian Biesinger <cbiesinger@google.com>
Thu, 11 Jul 2019 18:35:13 +0000 (13:35 -0500)
committerChristian Biesinger <cbiesinger@google.com>
Mon, 22 Jul 2019 03:23:12 +0000 (22:23 -0500)
commitc32e6a04f42b8e4a1392ee4b87d040c06b917ef5
treeb556abc4d0b27a5fb9bbd9b8f98e99457ec15a9a
parentc8cdc1e08312a238a9138b55ae080ceeab14845c
Use block_enum instead of int for better typesafety

gdb/ChangeLog:

2019-07-21  Christian Biesinger  <cbiesinger@google.com>

* symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
(lookup_symbol_in_objfile): Change int to block_enum and add a
gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
gdb/symtab.c