Avoid extra allocations in block
authorTom Tromey <tom@tromey.com>
Tue, 17 Jan 2023 00:04:39 +0000 (17:04 -0700)
committerTom Tromey <tom@tromey.com>
Sun, 19 Feb 2023 19:51:05 +0000 (12:51 -0700)
commitf52688890edd7c587ec11cf1d565f235e41a6c43
treec413367521a7229ef06bf156bd688aa0cc5acb5c
parent4aabc4166430fed52e9a2e4042147e3480f9178a
Avoid extra allocations in block

block_set_scope and block_set_using unconditionally allocate the block
namespace object.  However, this isn't truly needed, so arrange to
only allocate when it is.
gdb/block.c