diff options
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/symtab.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 59c7883..fc0ad95 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2002-04-06 Andrew Cagney <ac131313@redhat.com> + + * symtab.c (lookup_symtab): Remove ``const'' from ``rp'' + declaration. Fix -Werror. + 2002-04-05 Daniel Jacobowitz <drow@mvista.com> * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap. diff --git a/gdb/symtab.c b/gdb/symtab.c index 05f777b..3a42867 100644 --- a/gdb/symtab.c +++ b/gdb/symtab.c @@ -181,7 +181,7 @@ got_symtab: if (real_path != NULL) { - const char *rp = gdb_realpath (symtab_to_filename (s)); + char *rp = gdb_realpath (symtab_to_filename (s)); make_cleanup (xfree, rp); if (FILENAME_CMP (real_path, rp) == 0) { |