Module Name: src
Committed By: joerg
Date: Thu Jan 30 20:38:12 UTC 2020
Modified Files:
src/external/gpl3/gdb/dist/gdb: solib.c
Log Message:
Don't implicitly cast away const char * when using correct C++ string.h
implementations. Those have overloaded string operations that preserve
constness.
To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/external/gpl3/gdb/dist/gdb/solib.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/gpl3/gdb/dist/gdb/solib.c
diff -u src/external/gpl3/gdb/dist/gdb/solib.c:1.8 src/external/gpl3/gdb/dist/gdb/solib.c:1.9
--- src/external/gpl3/gdb/dist/gdb/solib.c:1.8 Fri Nov 22 01:48:50 2019
+++ src/external/gpl3/gdb/dist/gdb/solib.c Thu Jan 30 20:38:12 2020
@@ -509,7 +509,7 @@ solib_bfd_open (const char *pathname)
if (!b->compatible (b, bfd_get_arch_info (abfd.get ())))
{
char buf[SO_NAME_MAX_PATH_SIZE];
- char *slash = strrchr(pathname, '/');
+ const char *slash = strrchr(pathname, '/');
if (slash)
{
struct stat st;