[PATCH] Use block_enum instead of int for better typesafety

Tom Tromey tom@tromey.com
Fri Jul 19 13:54:00 GMT 2019


>>>>> "Christian" == Christian Biesinger via gdb-patches <gdb-patches@sourceware.org> writes:

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

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

Thanks, this is ok.  Please check it in.

Tom



More information about the Gdb-patches mailing list