aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1994-01-16 03:23:50 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1994-01-16 03:23:50 +0000
commitab5f79719c9519841468ad41d97e6e7d32305698 (patch)
treea9bd2317dd72750831b4d4c86925f2443bc73f0f /gdb
parentfb155ce31a8b35a1c2748bd69a0e2cdddfde2141 (diff)
downloadgdb-ab5f79719c9519841468ad41d97e6e7d32305698.zip
gdb-ab5f79719c9519841468ad41d97e6e7d32305698.tar.gz
gdb-ab5f79719c9519841468ad41d97e6e7d32305698.tar.bz2
* minsyms.c (prim_record_minimal_symbol_and_info): Make tempstring
const char *, not char *.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog3
-rw-r--r--gdb/minsyms.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index dee1c92..967ed7b 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 03b1ce1..8f1992c 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))