From ab5f79719c9519841468ad41d97e6e7d32305698 Mon Sep 17 00:00:00 2001 From: Jim Kingdon Date: Sun, 16 Jan 1994 03:23:50 +0000 Subject: [PATCH] * minsyms.c (prim_record_minimal_symbol_and_info): Make tempstring const char *, not char *. --- gdb/ChangeLog | 3 +++ gdb/minsyms.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index dee1c9269e1..967ed7b89a9 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,8 @@ Sat Jan 15 10:20:13 1994 Jim Kingdon (kingdon@lioth.cygnus.com) + * minsyms.c (prim_record_minimal_symbol_and_info): Make tempstring + const char *, not char *. + * symtab.h (struct symbol): Make section short, not unsigned short. * symtab.c (lookup_symbol): Add comment about QUIT here. diff --git a/gdb/minsyms.c b/gdb/minsyms.c index 03b1ce1f0b3..8f1992c9374 100644 --- a/gdb/minsyms.c +++ b/gdb/minsyms.c @@ -328,7 +328,7 @@ prim_record_minimal_symbol_and_info (name, address, ms_type, info, section, return; { - char *tempstring = name; + const char *tempstring = name; if (tempstring[0] == bfd_get_symbol_leading_char (objfile->obfd)) ++tempstring; if (STREQN (tempstring, "__gnu_compiled", 14)) -- 2.30.2