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.
This commit is contained in:
parent
b11f3dbb88
commit
6d08aed3c9
4 changed files with 6 additions and 6 deletions
|
@ -1427,8 +1427,9 @@ print_frame (const frame_print_options &fp_opts,
|
|||
if (print_what != SHORT_LOCATION
|
||||
&& pc_p && (funname == NULL || sal.symtab == NULL))
|
||||
{
|
||||
char *lib = solib_name_from_address (get_frame_program_space (frame),
|
||||
get_frame_pc (frame));
|
||||
const char *lib
|
||||
= solib_name_from_address (get_frame_program_space (frame),
|
||||
get_frame_pc (frame));
|
||||
|
||||
if (lib)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue