aboutsummaryrefslogtreecommitdiff
path: root/gdb/xcoffread.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2015-03-09 11:58:20 +0000
committerYao Qi <yao.qi@linaro.org>2015-03-20 17:39:13 +0000
commite28566f7d022e672bc7032d4951112359ad66d77 (patch)
treefbf0da6dc9b8eca54d0efc3b383d5cf162a5b13e /gdb/xcoffread.c
parentf6fc92f6711049c0d51cfe7027aa58255ae739b4 (diff)
downloadgdb-e28566f7d022e672bc7032d4951112359ad66d77.zip
gdb-e28566f7d022e672bc7032d4951112359ad66d77.tar.gz
gdb-e28566f7d022e672bc7032d4951112359ad66d77.tar.bz2
constify xcoffread.c
/home/pedro/gdb/mygit/src/gdb/xcoffread.c: In function ‘void scan_xcoff_symtab(objfile*)’: /home/pedro/gdb/mygit/src/gdb/xcoffread.c:2644:33: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive] p = strchr (namestring, ':'); ^ gdb: 2015-03-20 Pedro Alves <palves@redhat.com> * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
Diffstat (limited to 'gdb/xcoffread.c')
-rw-r--r--gdb/xcoffread.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/xcoffread.c b/gdb/xcoffread.c
index 3cb6eda..9571ac8 100644
--- a/gdb/xcoffread.c
+++ b/gdb/xcoffread.c
@@ -2636,7 +2636,7 @@ scan_xcoff_symtab (struct objfile *objfile)
case C_DECL:
case C_STSYM:
{
- char *p;
+ const char *p;
swap_sym (&symbol, &main_aux[0], &namestring, &sraw_symbol,
&ssymnum, objfile);
@@ -2763,7 +2763,7 @@ scan_xcoff_symtab (struct objfile *objfile)
Accept either. */
while (*p && *p != ';' && *p != ',')
{
- char *q;
+ const char *q;
/* Check for and handle cretinous dbx symbol name
continuation! */