forked from Imagelibrary/binutils-gdb
Removed a large number of changes inserted by Per Bothner
for C++ support. These will go back in when they've been examined.
This commit is contained in:
12
gdb/parse.c
12
gdb/parse.c
@@ -275,9 +275,6 @@ length_of_subexp (expr, endpos)
|
||||
|
||||
switch (i)
|
||||
{
|
||||
case STRUCTOP_STRUCT:
|
||||
case STRUCTOP_PTR:
|
||||
args = 1;
|
||||
/* C++ */
|
||||
case OP_SCOPE:
|
||||
oplen = 4 + ((expr->elts[endpos - 2].longconst
|
||||
@@ -329,6 +326,9 @@ length_of_subexp (expr, endpos)
|
||||
args = 1;
|
||||
break;
|
||||
|
||||
case STRUCTOP_STRUCT:
|
||||
case STRUCTOP_PTR:
|
||||
args = 1;
|
||||
case OP_M2_STRING:
|
||||
case OP_STRING:
|
||||
oplen = 3 + ((expr->elts[endpos - 2].longconst
|
||||
@@ -393,9 +393,6 @@ prefixify_subexp (inexpr, outexpr, inend, outbeg)
|
||||
opcode = inexpr->elts[inend - 1].opcode;
|
||||
switch (opcode)
|
||||
{
|
||||
case STRUCTOP_STRUCT:
|
||||
case STRUCTOP_PTR:
|
||||
args = 1;
|
||||
/* C++ */
|
||||
case OP_SCOPE:
|
||||
oplen = 4 + ((inexpr->elts[inend - 2].longconst
|
||||
@@ -446,6 +443,9 @@ prefixify_subexp (inexpr, outexpr, inend, outbeg)
|
||||
args=1;
|
||||
break;
|
||||
|
||||
case STRUCTOP_STRUCT:
|
||||
case STRUCTOP_PTR:
|
||||
args = 1;
|
||||
case OP_M2_STRING:
|
||||
case OP_STRING:
|
||||
oplen = 3 + ((inexpr->elts[inend - 2].longconst
|
||||
|
||||
Reference in New Issue
Block a user