This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[obv] typename_concat: char * -> const char *
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Wed, 2 Jun 2010 22:05:00 +0200
- Subject: [obv] typename_concat: char * -> const char *
Checked-in.
http://sourceware.org/ml/gdb-cvs/2010-06/msg00018.html
--- src/gdb/ChangeLog 2010/06/02 19:37:54 1.11864
+++ src/gdb/ChangeLog 2010/06/02 20:03:40 1.11865
@@ -1,3 +1,7 @@
+2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * dwarf2read.c (typename_concat): Add const to the variable sep.
+
2010-06-02 Tom Tromey <tromey@redhat.com>
* dwarf2loc.h (dwarf2_per_cu_data): Declare.
--- src/gdb/dwarf2read.c 2010/06/02 19:37:55 1.391
+++ src/gdb/dwarf2read.c 2010/06/02 20:03:42 1.392
@@ -9236,7 +9236,7 @@
typename_concat (struct obstack *obs, const char *prefix, const char *suffix,
struct dwarf2_cu *cu)
{
- char *sep;
+ const char *sep;
if (suffix == NULL || suffix[0] == '\0' || prefix == NULL || prefix[0] == '\0')
sep = "";