From e7a9c430f8a89c224df43b70ed6d4b30cadb5808 Mon Sep 17 00:00:00 2001 From: Ryan Fleury Date: Mon, 28 Sep 2026 08:38:30 -0600 Subject: [PATCH] rdi_from_dwarf: fix incorrect argument slot used in breg conversion --- src/raddbg/raddbg_main.c | 7 +++++-- src/rdi_from_dwarf/rdi_from_dwarf.c | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/raddbg/raddbg_main.c b/src/raddbg/raddbg_main.c index 89454070..87b887ea 100644 --- a/src/raddbg/raddbg_main.c +++ b/src/raddbg/raddbg_main.c @@ -4,17 +4,20 @@ //////////////////////////////// //~ rjf: linux TODO notes // +// initial alpha: // [ ] control // [ ] multithreaded stepping - trap hits reported on other threads. // [ ] stale memory - things evaluating to stale values that are definitely not zero // [ ] support // [ ] .eh_frame unwinding without .eh_frame_hdr // [ ] asan -// [ ] windowing -// [ ] wayland // [ ] rendering // [ ] bitmaps / geometry // +// post initial alpha: +// [ ] windowing +// [ ] wayland +// // [x] clipboard // [x] jai exes - busted call stacks / unwind info / paths? // [x] statically linked EXEs - busted unwinding diff --git a/src/rdi_from_dwarf/rdi_from_dwarf.c b/src/rdi_from_dwarf/rdi_from_dwarf.c index 84831699..41048658 100644 --- a/src/rdi_from_dwarf/rdi_from_dwarf.c +++ b/src/rdi_from_dwarf/rdi_from_dwarf.c @@ -3526,7 +3526,7 @@ d2r_convert(Arena *arena, D2R_ConvertParams *params) case DW_ExprOp_BReg30: case DW_ExprOp_BReg31: { regcode_dw = (U64)(opcode - DW_ExprOp_BReg0); - regval_off = operand_s64s[1]; + regval_off = operand_s64s[0]; regread_is_addr = 1; }goto reg_read; case DW_ExprOp_BRegX: