Lines Matching refs:aexpr

106   struct agent_expr *aexpr;
111 aexpr = XNEW (struct agent_expr);
112 aexpr->length = xlen;
113 aexpr->bytes = (unsigned char *) xmalloc (xlen);
114 hex2bin (act, aexpr->bytes, xlen);
116 return aexpr;
120 gdb_free_agent_expr (struct agent_expr *aexpr)
122 if (aexpr != NULL)
124 free (aexpr->bytes);
125 free (aexpr);
134 gdb_unparse_agent_expr (struct agent_expr *aexpr)
138 rslt = (char *) xmalloc (2 * aexpr->length + 1);
139 bin2hex (aexpr->bytes, rslt, aexpr->length);
383 is_goto_target (struct agent_expr *aexpr, int pc)
388 for (i = 0; i < aexpr->length; i += 1 + gdb_agent_op_sizes[op])
390 op = aexpr->bytes[i];
394 int target = (aexpr->bytes[i + 1] << 8) + aexpr->bytes[i + 2];
406 compile_bytecodes (struct agent_expr *aexpr)
423 if (aexpr->length == 0)
433 op = aexpr->bytes[pc];
522 next_op = aexpr->bytes[pc];
524 && !is_goto_target (aexpr, pc)
530 arg = aexpr->bytes[pc++];
531 arg = (arg << 8) + aexpr->bytes[pc++];
536 && (aexpr->bytes[pc + 1] == gdb_agent_op_if_goto)
537 && !is_goto_target (aexpr, pc + 1)
543 arg = aexpr->bytes[pc++];
544 arg = (arg << 8) + aexpr->bytes[pc++];
553 next_op = aexpr->bytes[pc];
555 && !is_goto_target (aexpr, pc))
560 arg = aexpr->bytes[pc++];
561 arg = (arg << 8) + aexpr->bytes[pc++];
566 && !is_goto_target (aexpr, pc)
567 && (aexpr->bytes[pc + 1] == gdb_agent_op_if_goto)
568 && !is_goto_target (aexpr, pc + 1))
573 arg = aexpr->bytes[pc++];
574 arg = (arg << 8) + aexpr->bytes[pc++];
587 arg = aexpr->bytes[pc++];
609 arg = aexpr->bytes[pc++];
610 arg = (arg << 8) + aexpr->bytes[pc++];
616 arg = aexpr->bytes[pc++];
617 arg = (arg << 8) + aexpr->bytes[pc++];
624 top = aexpr->bytes[pc++];
630 top = aexpr->bytes[pc++];
631 top = (top << 8) + aexpr->bytes[pc++];
637 top = aexpr->bytes[pc++];
638 top = (top << 8) + aexpr->bytes[pc++];
639 top = (top << 8) + aexpr->bytes[pc++];
640 top = (top << 8) + aexpr->bytes[pc++];
646 top = 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++];
651 top = (top << 8) + aexpr->bytes[pc++];
652 top = (top << 8) + aexpr->bytes[pc++];
653 top = (top << 8) + aexpr->bytes[pc++];
659 arg = aexpr->bytes[pc++];
660 arg = (arg << 8) + aexpr->bytes[pc++];
684 arg = aexpr->bytes[pc++];
690 next_op = aexpr->bytes[pc];
693 && !is_goto_target (aexpr, pc)
694 && (aexpr->bytes[pc + 1] == gdb_agent_op_if_goto)
695 && !is_goto_target (aexpr, pc + 1))
700 arg = aexpr->bytes[pc++];
701 arg = (arg << 8) + aexpr->bytes[pc++];
706 && !is_goto_target (aexpr, pc)
707 && (aexpr->bytes[pc + 1] == gdb_agent_op_log_not)
708 && !is_goto_target (aexpr, pc + 1)
709 && (aexpr->bytes[pc + 2] == gdb_agent_op_if_goto)
710 && !is_goto_target (aexpr, pc + 2))
715 arg = aexpr->bytes[pc++];
716 arg = (arg << 8) + aexpr->bytes[pc++];
726 arg = aexpr->bytes[pc++];
727 arg = (arg << 8) + aexpr->bytes[pc++];
733 arg = aexpr->bytes[pc++];
734 arg = (arg << 8) + aexpr->bytes[pc++];
946 struct agent_expr *aexpr,
984 if (aexpr->length == 0)
997 op = aexpr->bytes[pc++];
1071 arg = aexpr->bytes[pc++];
1108 arg = aexpr->bytes[pc++];
1139 pc = (aexpr->bytes[pc] << 8) + (aexpr->bytes[pc + 1]);
1147 pc = (aexpr->bytes[pc] << 8) + (aexpr->bytes[pc + 1]);
1153 top = aexpr->bytes[pc++];
1159 top = aexpr->bytes[pc++];
1160 top = (top << 8) + aexpr->bytes[pc++];
1166 top = aexpr->bytes[pc++];
1167 top = (top << 8) + aexpr->bytes[pc++];
1168 top = (top << 8) + aexpr->bytes[pc++];
1169 top = (top << 8) + aexpr->bytes[pc++];
1175 top = 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++];
1180 top = (top << 8) + aexpr->bytes[pc++];
1181 top = (top << 8) + aexpr->bytes[pc++];
1182 top = (top << 8) + aexpr->bytes[pc++];
1188 arg = aexpr->bytes[pc++];
1189 arg = (arg << 8) + aexpr->bytes[pc++];
1244 arg = aexpr->bytes[pc++];
1261 arg = aexpr->bytes[pc++];
1277 arg = aexpr->bytes[pc++];
1278 arg = (arg << 8) + aexpr->bytes[pc++];
1283 arg = aexpr->bytes[pc++];
1284 arg = (arg << 8) + aexpr->bytes[pc++];
1291 arg = aexpr->bytes[pc++];
1292 arg = (arg << 8) + aexpr->bytes[pc++];
1311 nargs = aexpr->bytes[pc++];
1312 slen = aexpr->bytes[pc++];
1313 slen = (slen << 8) + aexpr->bytes[pc++];
1314 format = (char *) &(aexpr->bytes[pc]);