From 91a0575c8acd1a5f36bfb40943cc4bfe429648b5 Mon Sep 17 00:00:00 2001 From: Jim Kingdon Date: Tue, 25 Jan 1994 17:28:05 +0000 Subject: [PATCH] * stabsread.c (STABS_CONTINUE, error_type), partial-stab.h: AIX can use ? instead of \ for continuation. Deal with it. --- gdb/ChangeLog | 3 +++ gdb/partial-stab.h | 2 +- gdb/stabsread.c | 5 +++-- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 7f83202082c..0eebae4891e 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,8 @@ Tue Jan 25 11:31:53 1994 Jim Kingdon (kingdon@lioth.cygnus.com) + * stabsread.c (STABS_CONTINUE, error_type), partial-stab.h: + AIX can use ? instead of \ for continuation. Deal with it. + * paread.c (read_unwind_info): Just assign to objfile->obj_private, not OBJ_UNWIND_INFO. Assigning to a cast is a GCC-ism which the HP compiler in ANSI mode doesn't like. diff --git a/gdb/partial-stab.h b/gdb/partial-stab.h index 30942351b68..b5a9a01739e 100644 --- a/gdb/partial-stab.h +++ b/gdb/partial-stab.h @@ -463,7 +463,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ /* Check for and handle cretinous dbx symbol name continuation! */ - if (*p == '\\') + if (*p == '\\' || (*p == '?' && p[1] == '\0')) p = next_symbol_text (); /* Point to the character after the name diff --git a/gdb/stabsread.c b/gdb/stabsread.c index 52b59e049ae..59a659c84f1 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 (); } -- 2.30.2