- bp_arg = parse_stack_el(name, ofs_reg);
- snprintf(g_comment, sizeof(g_comment), "%s", bp_arg);
- eq = equ_find(po, bp_arg, &offset);
- if (eq == NULL)
- ferr(po, "detected but missing eq\n");
-
- offset += eq->offset;
+ if (!IS_START(name, "ebp-")) {
+ bp_arg = parse_stack_el(name, ofs_reg);
+ snprintf(g_comment, sizeof(g_comment), "%s", bp_arg);
+ eq = equ_find(po, bp_arg, &offset);
+ if (eq == NULL)
+ ferr(po, "detected but missing eq\n");
+ offset += eq->offset;
+ }
+ else {
+ p = name + 4;
+ if (IS_START(p, "0x"))
+ p += 2;
+ offset = -strtoul(p, &endp, 16);
+ if (*endp != 0)
+ ferr(po, "ebp- parse of '%s' failed\n", name);
+ }