aboutsummaryrefslogtreecommitdiff
path: root/gdb/stabsread.c
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1994-01-25 17:28:05 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1994-01-25 17:28:05 +0000
commit91a0575c8acd1a5f36bfb40943cc4bfe429648b5 (patch)
tree7bed72f68f36940539feadb9ab20cf275cd45095 /gdb/stabsread.c
parent09f705495147564472e9571b098a3f4d07e50740 (diff)
downloadgdb-91a0575c8acd1a5f36bfb40943cc4bfe429648b5.zip
gdb-91a0575c8acd1a5f36bfb40943cc4bfe429648b5.tar.gz
gdb-91a0575c8acd1a5f36bfb40943cc4bfe429648b5.tar.bz2
* stabsread.c (STABS_CONTINUE, error_type), partial-stab.h:
AIX can use ? instead of \ for continuation. Deal with it.
Diffstat (limited to 'gdb/stabsread.c')
-rw-r--r--gdb/stabsread.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/stabsread.c b/gdb/stabsread.c
index 52b59e0..59a659c 100644
--- a/gdb/stabsread.c
+++ b/gdb/stabsread.c
@@ -194,7 +194,8 @@ static int undef_types_length;
/* Check for and handle cretinous stabs symbol name continuation! */
#define STABS_CONTINUE(pp) \
do { \
- if (**(pp) == '\\') *(pp) = next_symbol_text (); \
+ if (**(pp) == '\\' || (**(pp) == '?' && (*(pp))[1] == '\0')) \
+ *(pp) = next_symbol_text (); \
} while (0)
@@ -1190,7 +1191,7 @@ error_type (pp)
}
/* Check for and handle cretinous dbx symbol name continuation! */
- if ((*pp)[-1] == '\\')
+ if ((*pp)[-1] == '\\' || (*pp)[-1] == '?')
{
*pp = next_symbol_text ();
}