aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/sparc-sol2-tdep.c2
-rw-r--r--gdb/spu-tdep.c2
3 files changed, 7 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 7ad050c..9d9c287 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2015-03-20 Pedro Alves <palves@redhat.com>
+
+ * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
+ * spu-tdep.c (spu_gdbarch_init): Make "name" const.
+
2015-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
* config/djgpp/README: Remove gdb.hp.
diff --git a/gdb/sparc-sol2-tdep.c b/gdb/sparc-sol2-tdep.c
index 1aabe76..5afe308 100644
--- a/gdb/sparc-sol2-tdep.c
+++ b/gdb/sparc-sol2-tdep.c
@@ -244,7 +244,7 @@ sparc_sol2_static_transform_name (const char *name)
if (name[0] == '$')
{
- char *p = strrchr (name, '.');
+ const char *p = strrchr (name, '.');
if (p)
return p + 1;
}
diff --git a/gdb/spu-tdep.c b/gdb/spu-tdep.c
index 36ad312..6ccb679 100644
--- a/gdb/spu-tdep.c
+++ b/gdb/spu-tdep.c
@@ -2698,7 +2698,7 @@ spu_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
This assumes the filename convention employed by solib-spu.c. */
else if (info.abfd)
{
- char *name = strrchr (info.abfd->filename, '@');
+ const char *name = strrchr (info.abfd->filename, '@');
if (name)
sscanf (name, "@0x%*x <%d>", &id);
}