diff options
author | Adam Fedor <fedor@gnu.org> | 2002-11-19 03:23:40 +0000 |
---|---|---|
committer | Adam Fedor <fedor@gnu.org> | 2002-11-19 03:23:40 +0000 |
commit | 646df18d28ce1f24671f22c3a4393b50c1ceb273 (patch) | |
tree | 810f3b67cdaa6ef2b6dde6f5fb14a99b9ea37b44 /gdb/objc-exp.y | |
parent | 379b85dfc1745593a3fdcbd0138fc305d91e1a52 (diff) | |
download | gdb-646df18d28ce1f24671f22c3a4393b50c1ceb273.zip gdb-646df18d28ce1f24671f22c3a4393b50c1ceb273.tar.gz gdb-646df18d28ce1f24671f22c3a4393b50c1ceb273.tar.bz2 |
* expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
* parse.c (length_of_subexp, prefixify_subexp): Likewise.
* objc-exp.y: Likewise.
Diffstat (limited to 'gdb/objc-exp.y')
-rw-r--r-- | gdb/objc-exp.y | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/gdb/objc-exp.y b/gdb/objc-exp.y index c1971f7..cb9bb45 100644 --- a/gdb/objc-exp.y +++ b/gdb/objc-exp.y @@ -341,9 +341,9 @@ exp : '[' TYPENAME start_msglist(); } msglist ']' - { write_exp_elt_opcode (OP_MSGCALL); + { write_exp_elt_opcode (OP_OBJC_MSGCALL); end_msglist(); - write_exp_elt_opcode (OP_MSGCALL); + write_exp_elt_opcode (OP_OBJC_MSGCALL); } ; @@ -356,18 +356,18 @@ exp : '[' CLASSNAME start_msglist(); } msglist ']' - { write_exp_elt_opcode (OP_MSGCALL); + { write_exp_elt_opcode (OP_OBJC_MSGCALL); end_msglist(); - write_exp_elt_opcode (OP_MSGCALL); + write_exp_elt_opcode (OP_OBJC_MSGCALL); } ; exp : '[' exp { start_msglist(); } msglist ']' - { write_exp_elt_opcode (OP_MSGCALL); + { write_exp_elt_opcode (OP_OBJC_MSGCALL); end_msglist(); - write_exp_elt_opcode (OP_MSGCALL); + write_exp_elt_opcode (OP_OBJC_MSGCALL); } ; @@ -565,9 +565,9 @@ exp : VARIABLE exp : SELECTOR { - write_exp_elt_opcode (OP_SELECTOR); + write_exp_elt_opcode (OP_OBJC_SELECTOR); write_exp_string ($1); - write_exp_elt_opcode (OP_SELECTOR); } + write_exp_elt_opcode (OP_OBJC_SELECTOR); } exp : SIZEOF '(' type ')' %prec UNARY { write_exp_elt_opcode (OP_LONG); @@ -605,9 +605,9 @@ exp : STRING exp : NSSTRING /* ObjC NextStep NSString constant * of the form '@' '"' string '"'. */ - { write_exp_elt_opcode (OP_NSSTRING); + { write_exp_elt_opcode (OP_OBJC_NSSTRING); write_exp_string ($1); - write_exp_elt_opcode (OP_NSSTRING); } + write_exp_elt_opcode (OP_OBJC_NSSTRING); } ; block : BLOCKNAME @@ -756,8 +756,8 @@ variable: name_not_typename if (innermost_block == 0 || contained_in (block_found, innermost_block)) innermost_block = block_found; - write_exp_elt_opcode (OP_SELF); - write_exp_elt_opcode (OP_SELF); + write_exp_elt_opcode (OP_OBJC_SELF); + write_exp_elt_opcode (OP_OBJC_SELF); write_exp_elt_opcode (STRUCTOP_PTR); write_exp_string ($1.stoken); write_exp_elt_opcode (STRUCTOP_PTR); |