diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2010-06-02 20:03:42 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2010-06-02 20:03:42 +0000 |
commit | 5c315b68907cbee516094215812012ac65aa0ab0 (patch) | |
tree | c0e0b228d37b3fb4de54785f4b23c3449f86e0cf /gdb | |
parent | a8d52276eef1d657f8bb0a72341e780e9f279855 (diff) | |
download | gdb-5c315b68907cbee516094215812012ac65aa0ab0.zip gdb-5c315b68907cbee516094215812012ac65aa0ab0.tar.gz gdb-5c315b68907cbee516094215812012ac65aa0ab0.tar.bz2 |
gdb/
* dwarf2read.c (typename_concat): Add const to the variable sep.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/dwarf2read.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 6c28c9e..d3b9d53 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -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. diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index b05b99a..60ed9e4 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -9236,7 +9236,7 @@ static char * 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 = ""; |