Lines Matching refs:exp
40 print_expression (struct expression *exp, struct ui_file *stream) in print_expression() argument
43 print_subexp (exp, &pc, stream, PREC_NULL); in print_expression()
52 print_subexp (struct expression *exp, int *pos, in print_subexp() argument
55 exp->language_defn->la_exp_desc->print_subexp (exp, pos, stream, prec); in print_subexp()
61 print_subexp_standard (struct expression *exp, int *pos, in print_subexp_standard() argument
77 op_print_tab = exp->language_defn->la_op_print_tab; in print_subexp_standard()
79 opcode = exp->elts[pc].opcode; in print_subexp_standard()
87 fputs_filtered (type_name_no_tag (exp->elts[pc + 1].type), stream); in print_subexp_standard()
89 nargs = longest_to_int (exp->elts[pc + 2].longconst); in print_subexp_standard()
91 fputs_filtered (&exp->elts[pc + 3].string, stream); in print_subexp_standard()
96 value_print (value_from_longest (exp->elts[pc + 1].type, in print_subexp_standard()
97 exp->elts[pc + 2].longconst), in print_subexp_standard()
103 value_print (value_from_double (exp->elts[pc + 1].type, in print_subexp_standard()
104 exp->elts[pc + 2].doubleconst), in print_subexp_standard()
112 b = exp->elts[pc + 1].block; in print_subexp_standard()
120 fputs_filtered (SYMBOL_PRINT_NAME (exp->elts[pc + 2].symbol), stream); in print_subexp_standard()
127 longest_to_int (exp->elts[pc + 1].longconst)); in print_subexp_standard()
132 int regnum = longest_to_int (exp->elts[pc + 1].longconst); in print_subexp_standard()
143 longest_to_int (exp->elts[pc + 1].longconst) in print_subexp_standard()
150 internalvar_name (exp->elts[pc + 1].internalvar)); in print_subexp_standard()
155 nargs = longest_to_int (exp->elts[pc + 1].longconst); in print_subexp_standard()
156 print_subexp (exp, pos, stream, PREC_SUFFIX); in print_subexp_standard()
162 print_subexp (exp, pos, stream, PREC_ABOVE_COMMA); in print_subexp_standard()
169 nargs = longest_to_int (exp->elts[pc + 1].longconst); in print_subexp_standard()
171 fputs_filtered (&exp->elts[pc + 2].string, stream); in print_subexp_standard()
175 nargs = longest_to_int (exp->elts[pc + 1].longconst); in print_subexp_standard()
180 LA_PRINT_STRING (stream, &exp->elts[pc + 2].string, nargs, 1, 0); in print_subexp_standard()
184 nargs = longest_to_int (exp->elts[pc + 1].longconst); in print_subexp_standard()
191 nargs = longest_to_int (exp->elts[pc + 1].longconst); in print_subexp_standard()
194 LA_PRINT_STRING (stream, &exp->elts[pc + 2].string, nargs, 1, 0); in print_subexp_standard()
202 nargs = longest_to_int (exp->elts[pc + 2].longconst); in print_subexp_standard()
204 print_subexp (exp, pos, stream, PREC_SUFFIX); in print_subexp_standard()
205 if (0 == target_read_string (exp->elts[pc + 1].longconst, in print_subexp_standard()
222 print_subexp (exp, pos, stream, PREC_ABOVE_COMMA); in print_subexp_standard()
237 nargs = longest_to_int (exp->elts[pc + 2].longconst); in print_subexp_standard()
238 nargs -= longest_to_int (exp->elts[pc + 1].longconst); in print_subexp_standard()
241 if (exp->elts[pc + 4].opcode == OP_LONG in print_subexp_standard()
242 && exp->elts[pc + 5].type == builtin_type_char in print_subexp_standard()
243 && exp->language_defn->la_language == language_c) in print_subexp_standard()
256 if (exp->elts[pc].opcode != OP_LONG in print_subexp_standard()
257 || exp->elts[pc + 1].type != builtin_type_char) in print_subexp_standard()
266 longest_to_int (exp->elts[pc + 2].longconst); in print_subexp_standard()
285 print_subexp (exp, pos, stream, PREC_ABOVE_COMMA); in print_subexp_standard()
292 tem = longest_to_int (exp->elts[pc + 1].longconst); in print_subexp_standard()
296 fputs_filtered (&exp->elts[pc + 2].string, stream); in print_subexp_standard()
300 fputs_filtered (&exp->elts[pc + 2].string, stream); in print_subexp_standard()
303 print_subexp (exp, pos, stream, PREC_SUFFIX); in print_subexp_standard()
313 print_subexp (exp, pos, stream, PREC_HYPER); in print_subexp_standard()
315 print_subexp (exp, pos, stream, PREC_HYPER); in print_subexp_standard()
317 print_subexp (exp, pos, stream, PREC_HYPER); in print_subexp_standard()
324 print_subexp (exp, pos, stream, PREC_SUFFIX); in print_subexp_standard()
326 print_subexp (exp, pos, stream, PREC_ABOVE_COMMA); in print_subexp_standard()
328 print_subexp (exp, pos, stream, PREC_ABOVE_COMMA); in print_subexp_standard()
333 tem = longest_to_int (exp->elts[pc + 1].longconst); in print_subexp_standard()
335 print_subexp (exp, pos, stream, PREC_SUFFIX); in print_subexp_standard()
337 fputs_filtered (&exp->elts[pc + 2].string, stream); in print_subexp_standard()
342 tem = longest_to_int (exp->elts[pc + 1].longconst); in print_subexp_standard()
344 print_subexp (exp, pos, stream, PREC_SUFFIX); in print_subexp_standard()
346 fputs_filtered (&exp->elts[pc + 2].string, stream); in print_subexp_standard()
350 print_subexp (exp, pos, stream, PREC_SUFFIX); in print_subexp_standard()
352 print_subexp (exp, pos, stream, PREC_ABOVE_COMMA); in print_subexp_standard()
357 print_subexp (exp, pos, stream, PREC_SUFFIX); in print_subexp_standard()
362 print_subexp (exp, pos, stream, PREC_SUFFIX); in print_subexp_standard()
371 type_print (exp->elts[pc + 1].type, "", stream, 0); in print_subexp_standard()
373 print_subexp (exp, pos, stream, PREC_PREFIX); in print_subexp_standard()
382 if (TYPE_CODE (exp->elts[pc + 1].type) == TYPE_CODE_FUNC && in print_subexp_standard()
383 exp->elts[pc + 3].opcode == OP_LONG) in print_subexp_standard()
390 val = value_at_lazy (exp->elts[pc + 1].type, in print_subexp_standard()
391 (CORE_ADDR) exp->elts[pc + 5].longconst, in print_subexp_standard()
398 type_print (exp->elts[pc + 1].type, "", stream, 0); in print_subexp_standard()
400 print_subexp (exp, pos, stream, PREC_PREFIX); in print_subexp_standard()
407 opcode = exp->elts[pc + 1].opcode; in print_subexp_standard()
443 nargs = longest_to_int (exp->elts[pc + 1].longconst); in print_subexp_standard()
444 print_subexp (exp, pos, stream, PREC_SUFFIX); in print_subexp_standard()
450 print_subexp (exp, pos, stream, PREC_ABOVE_COMMA); in print_subexp_standard()
458 type_print (exp->elts[pc + 1].type, "", stream, 0); in print_subexp_standard()
460 print_subexp (exp, pos, stream, PREC_PREFIX); in print_subexp_standard()
495 print_subexp (exp, pos, stream, PREC_SUFFIX); in print_subexp_standard()
504 print_subexp (exp, pos, stream, PREC_PREFIX); in print_subexp_standard()
515 print_subexp (exp, pos, stream, in print_subexp_standard()
527 print_subexp (exp, pos, stream, in print_subexp_standard()
555 static int dump_subexp_body (struct expression *exp, struct ui_file *, int);
560 op_name (struct expression *exp, enum exp_opcode opcode) in op_name() argument
562 return exp->language_defn->la_exp_desc->op_name (opcode); in op_name()
756 dump_raw_expression (struct expression *exp, struct ui_file *stream, in dump_raw_expression() argument
765 gdb_print_host_address (exp, stream); in dump_raw_expression()
767 exp->language_defn->la_name, exp->nelts, in dump_raw_expression()
771 for (elt = 0; elt < exp->nelts; elt++) in dump_raw_expression()
774 opcode_name = op_name (exp, exp->elts[elt].opcode); in dump_raw_expression()
777 print_longest (stream, 'd', 0, exp->elts[elt].longconst); in dump_raw_expression()
780 for (eltscan = (char *) &exp->elts[elt], in dump_raw_expression()
797 dump_subexp (struct expression *exp, struct ui_file *stream, int elt) in dump_subexp() argument
809 fprintf_filtered (stream, "%-20s ", op_name (exp, exp->elts[elt].opcode)); in dump_subexp()
811 elt = dump_subexp_body (exp, stream, elt); in dump_subexp()
823 dump_subexp_body (struct expression *exp, struct ui_file *stream, int elt) in dump_subexp_body() argument
825 return exp->language_defn->la_exp_desc->dump_subexp_body (exp, stream, elt); in dump_subexp_body()
831 dump_subexp_body_standard (struct expression *exp, in dump_subexp_body_standard() argument
834 int opcode = exp->elts[elt++].opcode; in dump_subexp_body_standard()
841 elt = dump_subexp (exp, stream, elt); in dump_subexp_body_standard()
877 elt = dump_subexp (exp, stream, elt); in dump_subexp_body_standard()
905 elt = dump_subexp (exp, stream, elt); in dump_subexp_body_standard()
909 gdb_print_host_address (exp->elts[elt].type, stream); in dump_subexp_body_standard()
911 type_print (exp->elts[elt].type, NULL, stream, 0); in dump_subexp_body_standard()
913 (long) exp->elts[elt + 1].longconst, in dump_subexp_body_standard()
914 (long) exp->elts[elt + 1].longconst); in dump_subexp_body_standard()
919 gdb_print_host_address (exp->elts[elt].type, stream); in dump_subexp_body_standard()
921 type_print (exp->elts[elt].type, NULL, stream, 0); in dump_subexp_body_standard()
923 (double) exp->elts[elt + 1].doubleconst); in dump_subexp_body_standard()
928 gdb_print_host_address (exp->elts[elt].block, stream); in dump_subexp_body_standard()
930 gdb_print_host_address (exp->elts[elt + 1].symbol, stream); in dump_subexp_body_standard()
932 DEPRECATED_SYMBOL_NAME (exp->elts[elt + 1].symbol)); in dump_subexp_body_standard()
937 (long) exp->elts[elt].longconst); in dump_subexp_body_standard()
942 (long) exp->elts[elt].longconst); in dump_subexp_body_standard()
947 gdb_print_host_address (exp->elts[elt].internalvar, stream); in dump_subexp_body_standard()
949 exp->elts[elt].internalvar->name); in dump_subexp_body_standard()
956 nargs = longest_to_int (exp->elts[elt].longconst); in dump_subexp_body_standard()
962 elt = dump_subexp (exp, stream, elt); in dump_subexp_body_standard()
970 lower = longest_to_int (exp->elts[elt].longconst); in dump_subexp_body_standard()
971 upper = longest_to_int (exp->elts[elt + 1].longconst); in dump_subexp_body_standard()
977 elt = dump_subexp (exp, stream, elt); in dump_subexp_body_standard()
983 gdb_print_host_address (exp->elts[elt].type, stream); in dump_subexp_body_standard()
985 type_print (exp->elts[elt].type, NULL, stream, 0); in dump_subexp_body_standard()
987 elt = dump_subexp (exp, stream, elt + 2); in dump_subexp_body_standard()
991 gdb_print_host_address (exp->elts[elt].type, stream); in dump_subexp_body_standard()
993 type_print (exp->elts[elt].type, NULL, stream, 0); in dump_subexp_body_standard()
1003 len = longest_to_int (exp->elts[elt].longconst); in dump_subexp_body_standard()
1004 elem_name = &exp->elts[elt + 1].string; in dump_subexp_body_standard()
1007 elt = dump_subexp (exp, stream, elt + 3 + BYTES_TO_EXP_ELEM (len + 1)); in dump_subexp_body_standard()
1016 gdb_print_host_address (exp->elts[elt].type, stream); in dump_subexp_body_standard()
1018 type_print (exp->elts[elt].type, NULL, stream, 0); in dump_subexp_body_standard()
1021 len = longest_to_int (exp->elts[elt + 1].longconst); in dump_subexp_body_standard()
1022 elem_name = &exp->elts[elt + 2].string; in dump_subexp_body_standard()
1050 dump_prefix_expression (struct expression *exp, struct ui_file *stream) in dump_prefix_expression() argument
1055 gdb_print_host_address (exp, stream); in dump_prefix_expression()
1057 if (exp->elts[0].opcode != OP_TYPE) in dump_prefix_expression()
1058 print_expression (exp, stream); in dump_prefix_expression()
1062 exp->language_defn->la_name, exp->nelts, in dump_prefix_expression()
1066 for (elt = 0; elt < exp->nelts;) in dump_prefix_expression()
1067 elt = dump_subexp (exp, stream, elt); in dump_prefix_expression()