Don't allow NULL as an argument to block_static_block
authorTom Tromey <tom@tromey.com>
Fri, 20 Jan 2023 00:20:09 +0000 (17:20 -0700)
committerTom Tromey <tom@tromey.com>
Sun, 19 Feb 2023 19:51:05 +0000 (12:51 -0700)
commit780040961370cb7a9849b83553f03bf7d2f0f9df
treeb6f01f996c68daa6c0d2f6f5c55c760d2d1a880b
parent392c1cbd745a575c5894ea33876f255b66a14d89
Don't allow NULL as an argument to block_static_block

block_static_block has special behavior when the block is NULL.
Remove this and patch up the callers instead.
gdb/ada-lang.c
gdb/block.c
gdb/compile/compile-c-symbols.c
gdb/compile/compile-cplus-symbols.c
gdb/cp-support.c
gdb/symtab.c