Skip to content

Commit cff9b61

Browse files
committed
libdrgn: fix typo in ORC unwinder handling of ORC_REG_SP_INDIRECT
ORC_REG_SP_INDIRECT is supposed to be an indirect access via rsp, but we have a typo and are using rbp instead. This is a partial fix for #304. Fixes: 630d39e ("libdrgn: add ORC unwinder") Signed-off-by: Omar Sandoval <[email protected]>
1 parent 95c7d9a commit cff9b61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libdrgn/arch_x86_64.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ orc_to_cfi_x86_64(const struct drgn_orc_entry *orc,
7676
break;
7777
case ORC_REG_SP_INDIRECT:
7878
rule.kind = DRGN_CFI_RULE_AT_REGISTER_ADD_OFFSET;
79-
rule.regno = DRGN_REGISTER_NUMBER(rbp);
79+
rule.regno = DRGN_REGISTER_NUMBER(rsp);
8080
rule.offset = orc->sp_offset;
8181
break;
8282
case ORC_REG_BP_INDIRECT:

0 commit comments

Comments
 (0)