Constify solib_name_from_address
authorTom Tromey <tromey@adacore.com>
Mon, 6 Jun 2022 15:56:30 +0000 (09:56 -0600)
committerTom Tromey <tromey@adacore.com>
Tue, 7 Jun 2022 13:21:26 +0000 (07:21 -0600)
commit6d08aed3c98dd073d79365bc12a675fe0930aee7
treeacff0de8cd7eb8eb45b4e16cc019ac0bb460e6a9
parentb11f3dbb884dfacd1d581dbccc017fa1da155ead
Constify solib_name_from_address

I noticed that solib_name_from_address returned a non-const string,
but it's more appropriate to return const.  This patch implements
this.  Tested by rebuilding.
gdb/python/py-progspace.c
gdb/solib.c
gdb/solib.h
gdb/stack.c