This is the mail archive of the
archer-commits@sourceware.org
mailing list for the Archer project.
[SCM] archer-swagiaal-adl: Turn off adl for C programs
- From: swagiaal at sourceware dot org
- To: archer-commits at sourceware dot org
- Date: 17 Nov 2009 16:58:11 -0000
- Subject: [SCM] archer-swagiaal-adl: Turn off adl for C programs
The branch, archer-swagiaal-adl has been updated
via c50918444f23d3bdef5f967b06c7a1d2aa7f9657 (commit)
from 055b7b0a3c69df0b1290d67bf18e3c20be8c81a0 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit c50918444f23d3bdef5f967b06c7a1d2aa7f9657
Author: Sami Wagiaalla <swagiaal@redhat.com>
Date: Tue Nov 17 11:54:36 2009 -0500
Turn off adl for C programs
-----------------------------------------------------------------------
Summary of changes:
gdb/c-exp.y | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
First 500 lines of diff:
diff --git a/gdb/c-exp.y b/gdb/c-exp.y
index 80e09d4..99a922c 100644
--- a/gdb/c-exp.y
+++ b/gdb/c-exp.y
@@ -184,7 +184,7 @@ static int parse_number (char *, int, int, YYSTYPE *);
%token <sval> STRING
%token <ssym> NAME /* BLOCKNAME defined below to give it higher precedence. */
-%token <ssym> UNKNOWN_NAME
+%token <ssym> UNKNOWN_CPP_NAME
%token <voidval> COMPLETE
%token <tsym> TYPENAME
%type <sval> name string_exp
@@ -385,7 +385,7 @@ exp : exp '('
write_exp_elt_opcode (OP_FUNCALL); }
;
-exp : UNKNOWN_NAME '('
+exp : UNKNOWN_CPP_NAME '('
{
/* This could potentially be a an argument defined
@@ -820,7 +820,7 @@ variable: name_not_typename
}
;
-space_identifier : '@' UNKNOWN_NAME
+space_identifier : '@' NAME
{ push_type_address_space (copy_name ($2.stoken));
push_type (tp_space_identifier);
}
@@ -1116,12 +1116,12 @@ name : NAME { $$ = $1.stoken; }
| BLOCKNAME { $$ = $1.stoken; }
| TYPENAME { $$ = $1.stoken; }
| NAME_OR_INT { $$ = $1.stoken; }
- | UNKNOWN_NAME { $$ = $1.stoken; }
+ | UNKNOWN_CPP_NAME { $$ = $1.stoken; }
;
name_not_typename : NAME
| BLOCKNAME
- | UNKNOWN_NAME
+ | UNKNOWN_CPP_NAME
/* These would be useful if name_not_typename was useful, but it is just
a fake for "variable", so these cause reduce/reduce conflicts because
the parser can't tell whether NAME_OR_INT is a name_not_typename (=variable,
@@ -2043,8 +2043,8 @@ yylex ()
if (in_parse_field && *lexptr == '\0')
saw_name_at_eof = 1;
- if (sym == NULL && !lookup_minimal_symbol (tmp, NULL, NULL))
- return UNKNOWN_NAME;
+ if (sym == NULL && !lookup_minimal_symbol (tmp, NULL, NULL) && parse_language->la_language == language_cplus)
+ return UNKNOWN_CPP_NAME;
return NAME;
}
hooks/post-receive
--
Repository for Project Archer.