diff options
Diffstat (limited to 'loc2c-test.c')
-rw-r--r-- | loc2c-test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/loc2c-test.c b/loc2c-test.c index 9d4973ed..6631252c 100644 --- a/loc2c-test.c +++ b/loc2c-test.c @@ -556,7 +556,7 @@ main (int argc, char **argv) if (cfi != NULL) { Dwarf_Frame *frame = NULL; - if (dwarf_cfi_addrframe (cfi, pc, &frame) == 0) + if (dwarf_cfi_addrframe (cfi, pc - bias, &frame) == 0) dwarf_frame_cfa (frame, &cfa_ops, &cfa_nops); } if (cfa_ops == NULL) @@ -565,7 +565,7 @@ main (int argc, char **argv) if (cfi != NULL) { Dwarf_Frame *frame = NULL; - if (dwarf_cfi_addrframe (cfi, pc, &frame) == 0) + if (dwarf_cfi_addrframe (cfi, pc - bias, &frame) == 0) dwarf_frame_cfa (frame, &cfa_ops, &cfa_nops); } } |