Lines Matching refs:aexpr

103   struct agent_expr *aexpr;
108 aexpr = XNEW (struct agent_expr);
109 aexpr->length = xlen;
110 aexpr->bytes = (unsigned char *) xmalloc (xlen);
111 hex2bin (act, aexpr->bytes, xlen);
113 return aexpr;
117 gdb_free_agent_expr (struct agent_expr *aexpr)
119 if (aexpr != NULL)
121 free (aexpr->bytes);
122 free (aexpr);
131 gdb_unparse_agent_expr (struct agent_expr *aexpr)
135 rslt = (char *) xmalloc (2 * aexpr->length + 1);
136 bin2hex (aexpr->bytes, rslt, aexpr->length);
380 is_goto_target (struct agent_expr *aexpr, int pc)
385 for (i = 0; i < aexpr->length; i += 1 + gdb_agent_op_sizes[op])
387 op = aexpr->bytes[i];
391 int target = (aexpr->bytes[i + 1] << 8) + aexpr->bytes[i + 2];
403 compile_bytecodes (struct agent_expr *aexpr)
420 if (aexpr->length == 0)
430 op = aexpr->bytes[pc];
519 next_op = aexpr->bytes[pc];
521 && !is_goto_target (aexpr, pc)
527 arg = aexpr->bytes[pc++];
528 arg = (arg << 8) + aexpr->bytes[pc++];
533 && (aexpr->bytes[pc + 1] == gdb_agent_op_if_goto)
534 && !is_goto_target (aexpr, pc + 1)
540 arg = aexpr->bytes[pc++];
541 arg = (arg << 8) + aexpr->bytes[pc++];
550 next_op = aexpr->bytes[pc];
552 && !is_goto_target (aexpr, pc))
557 arg = aexpr->bytes[pc++];
558 arg = (arg << 8) + aexpr->bytes[pc++];
563 && !is_goto_target (aexpr, pc)
564 && (aexpr->bytes[pc + 1] == gdb_agent_op_if_goto)
565 && !is_goto_target (aexpr, pc + 1))
570 arg = aexpr->bytes[pc++];
571 arg = (arg << 8) + aexpr->bytes[pc++];
584 arg = aexpr->bytes[pc++];
606 arg = aexpr->bytes[pc++];
607 arg = (arg << 8) + aexpr->bytes[pc++];
613 arg = aexpr->bytes[pc++];
614 arg = (arg << 8) + aexpr->bytes[pc++];
621 top = aexpr->bytes[pc++];
627 top = aexpr->bytes[pc++];
628 top = (top << 8) + aexpr->bytes[pc++];
634 top = aexpr->bytes[pc++];
635 top = (top << 8) + aexpr->bytes[pc++];
636 top = (top << 8) + aexpr->bytes[pc++];
637 top = (top << 8) + aexpr->bytes[pc++];
643 top = aexpr->bytes[pc++];
644 top = (top << 8) + aexpr->bytes[pc++];
645 top = (top << 8) + aexpr->bytes[pc++];
646 top = (top << 8) + aexpr->bytes[pc++];
647 top = (top << 8) + aexpr->bytes[pc++];
648 top = (top << 8) + aexpr->bytes[pc++];
649 top = (top << 8) + aexpr->bytes[pc++];
650 top = (top << 8) + aexpr->bytes[pc++];
656 arg = aexpr->bytes[pc++];
657 arg = (arg << 8) + aexpr->bytes[pc++];
681 arg = aexpr->bytes[pc++];
687 next_op = aexpr->bytes[pc];
690 && !is_goto_target (aexpr, pc)
691 && (aexpr->bytes[pc + 1] == gdb_agent_op_if_goto)
692 && !is_goto_target (aexpr, pc + 1))
697 arg = aexpr->bytes[pc++];
698 arg = (arg << 8) + aexpr->bytes[pc++];
703 && !is_goto_target (aexpr, pc)
704 && (aexpr->bytes[pc + 1] == gdb_agent_op_log_not)
705 && !is_goto_target (aexpr, pc + 1)
706 && (aexpr->bytes[pc + 2] == gdb_agent_op_if_goto)
707 && !is_goto_target (aexpr, pc + 2))
712 arg = aexpr->bytes[pc++];
713 arg = (arg << 8) + aexpr->bytes[pc++];
723 arg = aexpr->bytes[pc++];
724 arg = (arg << 8) + aexpr->bytes[pc++];
730 arg = aexpr->bytes[pc++];
731 arg = (arg << 8) + aexpr->bytes[pc++];
943 struct agent_expr *aexpr,
981 if (aexpr->length == 0)
994 op = aexpr->bytes[pc++];
1068 arg = aexpr->bytes[pc++];
1105 arg = aexpr->bytes[pc++];
1136 pc = (aexpr->bytes[pc] << 8) + (aexpr->bytes[pc + 1]);
1144 pc = (aexpr->bytes[pc] << 8) + (aexpr->bytes[pc + 1]);
1150 top = aexpr->bytes[pc++];
1156 top = aexpr->bytes[pc++];
1157 top = (top << 8) + aexpr->bytes[pc++];
1163 top = aexpr->bytes[pc++];
1164 top = (top << 8) + aexpr->bytes[pc++];
1165 top = (top << 8) + aexpr->bytes[pc++];
1166 top = (top << 8) + aexpr->bytes[pc++];
1172 top = aexpr->bytes[pc++];
1173 top = (top << 8) + aexpr->bytes[pc++];
1174 top = (top << 8) + aexpr->bytes[pc++];
1175 top = (top << 8) + aexpr->bytes[pc++];
1176 top = (top << 8) + aexpr->bytes[pc++];
1177 top = (top << 8) + aexpr->bytes[pc++];
1178 top = (top << 8) + aexpr->bytes[pc++];
1179 top = (top << 8) + aexpr->bytes[pc++];
1185 arg = aexpr->bytes[pc++];
1186 arg = (arg << 8) + aexpr->bytes[pc++];
1240 arg = aexpr->bytes[pc++];
1257 arg = aexpr->bytes[pc++];
1273 arg = aexpr->bytes[pc++];
1274 arg = (arg << 8) + aexpr->bytes[pc++];
1279 arg = aexpr->bytes[pc++];
1280 arg = (arg << 8) + aexpr->bytes[pc++];
1287 arg = aexpr->bytes[pc++];
1288 arg = (arg << 8) + aexpr->bytes[pc++];
1307 nargs = aexpr->bytes[pc++];
1308 slen = aexpr->bytes[pc++];
1309 slen = (slen << 8) + aexpr->bytes[pc++];
1310 format = (char *) &(aexpr->bytes[pc]);