gdb: add program_space parameters to some functions in symtab.c
authorSimon Marchi <simon.marchi@efficios.com>
Wed, 4 Oct 2023 02:20:17 +0000 (22:20 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Thu, 5 Oct 2023 17:20:50 +0000 (13:20 -0400)
commita49d37f32e445f8d72085150889db3fbf11503f6
treeabdb8af19c28a1d8a60bfa26e11df279a9e5bcf6
parent6114d6507853f3e29a09bd7f4ea494b542d9d595
gdb: add program_space parameters to some functions in symtab.c

Add some program_space parameters to functions related to getting and
setting the main name, making the references to current_program_space
bubble up a bit.  find_main_name calls ada_main_name, which implicitly
relies on the current program space, so I didn't add a parameter to that
function.

Change-Id: I9996955e8ae56832bbd461964d978e700e6feaf4
Approved-By: Tom Tromey <tom@tromey.com>
gdb/symtab.c