diff options
author | Tom Tromey <tromey@adacore.com> | 2022-06-06 09:56:30 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2022-06-07 07:21:26 -0600 |
commit | 6d08aed3c98dd073d79365bc12a675fe0930aee7 (patch) | |
tree | acff0de8cd7eb8eb45b4e16cc019ac0bb460e6a9 /gdb/solib.h | |
parent | b11f3dbb884dfacd1d581dbccc017fa1da155ead (diff) | |
download | binutils-6d08aed3c98dd073d79365bc12a675fe0930aee7.zip binutils-6d08aed3c98dd073d79365bc12a675fe0930aee7.tar.gz binutils-6d08aed3c98dd073d79365bc12a675fe0930aee7.tar.bz2 |
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.
Diffstat (limited to 'gdb/solib.h')
-rw-r--r-- | gdb/solib.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/solib.h b/gdb/solib.h index f9b4d35..2510284 100644 --- a/gdb/solib.h +++ b/gdb/solib.h @@ -48,7 +48,7 @@ extern void solib_create_inferior_hook (int from_tty); /* If ADDR lies in a shared library, return its name. */ -extern char *solib_name_from_address (struct program_space *, CORE_ADDR); +extern const char *solib_name_from_address (struct program_space *, CORE_ADDR); /* Return true if ADDR lies within SOLIB. */ |