OLD | NEW |
1 /* Definitions for expressions stored in reversed prefix form, for GDB. | 1 /* Definitions for expressions stored in reversed prefix form, for GDB. |
2 | 2 |
3 Copyright (C) 1986, 1989, 1992, 1994, 2000, 2003, 2005, 2007-2012 | 3 Copyright (C) 1986, 1989, 1992, 1994, 2000, 2003, 2005, 2007-2012 |
4 Free Software Foundation, Inc. | 4 Free Software Foundation, Inc. |
5 | 5 |
6 This file is part of GDB. | 6 This file is part of GDB. |
7 | 7 |
8 This program is free software; you can redistribute it and/or modify | 8 This program is free software; you can redistribute it and/or modify |
9 it under the terms of the GNU General Public License as published by | 9 it under the terms of the GNU General Public License as published by |
10 the Free Software Foundation; either version 3 of the License, or | 10 the Free Software Foundation; either version 3 of the License, or |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 ((elements) * sizeof (union exp_element)) | 93 ((elements) * sizeof (union exp_element)) |
94 #define BYTES_TO_EXP_ELEM(bytes) \ | 94 #define BYTES_TO_EXP_ELEM(bytes) \ |
95 (((bytes) + sizeof (union exp_element) - 1) / sizeof (union exp_element)) | 95 (((bytes) + sizeof (union exp_element) - 1) / sizeof (union exp_element)) |
96 | 96 |
97 /* From parse.c */ | 97 /* From parse.c */ |
98 | 98 |
99 extern struct expression *parse_expression (char *); | 99 extern struct expression *parse_expression (char *); |
100 | 100 |
101 extern struct type *parse_field_expression (char *, char **); | 101 extern struct type *parse_field_expression (char *, char **); |
102 | 102 |
103 extern struct expression *parse_exp_1 (char **, struct block *, int); | 103 extern struct expression *parse_exp_1 (char **, CORE_ADDR pc, struct block *, |
| 104 » » » » int); |
104 | 105 |
105 /* For use by parsers; set if we want to parse an expression and | 106 /* For use by parsers; set if we want to parse an expression and |
106 attempt to complete a field name. */ | 107 attempt to complete a field name. */ |
107 extern int in_parse_field; | 108 extern int in_parse_field; |
108 | 109 |
109 /* The innermost context required by the stack and register variables | 110 /* The innermost context required by the stack and register variables |
110 we've encountered so far. To use this, set it to NULL, then call | 111 we've encountered so far. To use this, set it to NULL, then call |
111 parse_<whatever>, then look at it. */ | 112 parse_<whatever>, then look at it. */ |
112 extern struct block *innermost_block; | 113 extern struct block *innermost_block; |
113 | 114 |
(...skipping 16 matching lines...) Expand all Loading... |
130 declared will be lval_register). */ | 131 declared will be lval_register). */ |
131 }; | 132 }; |
132 | 133 |
133 extern struct value *evaluate_subexp_standard | 134 extern struct value *evaluate_subexp_standard |
134 (struct type *, struct expression *, int *, enum noside); | 135 (struct type *, struct expression *, int *, enum noside); |
135 | 136 |
136 /* From expprint.c */ | 137 /* From expprint.c */ |
137 | 138 |
138 extern void print_expression (struct expression *, struct ui_file *); | 139 extern void print_expression (struct expression *, struct ui_file *); |
139 | 140 |
| 141 extern char *op_name (struct expression *exp, enum exp_opcode opcode); |
| 142 |
140 extern char *op_string (enum exp_opcode); | 143 extern char *op_string (enum exp_opcode); |
141 | 144 |
142 extern void dump_raw_expression (struct expression *, | 145 extern void dump_raw_expression (struct expression *, |
143 struct ui_file *, char *); | 146 struct ui_file *, char *); |
144 extern void dump_prefix_expression (struct expression *, struct ui_file *); | 147 extern void dump_prefix_expression (struct expression *, struct ui_file *); |
145 | 148 |
146 #endif /* !defined (EXPRESSION_H) */ | 149 #endif /* !defined (EXPRESSION_H) */ |
OLD | NEW |