Constify ada_main_name
authorTom Tromey <tromey@adacore.com>
Thu, 16 Feb 2023 15:10:59 +0000 (08:10 -0700)
committerTom Tromey <tromey@adacore.com>
Thu, 16 Feb 2023 15:10:59 +0000 (08:10 -0700)
commit6f63b61dd116becf96f47bb2dec61edd59f88a08
tree3e47e61e0baf2be6c7d43e6277e8288d67210a90
parent1e159729d97194857b4241fe1b5c327bd12a0945
Constify ada_main_name

Unlike the other *_main_name functions, ada_main_name returns a
non-const "char *".  This is strange, though, because the caller
should not in fact modify or free this pointer.  This patch changes
this function to constify its return type.
gdb/ada-lang.c
gdb/ada-lang.h