Scripts: accept bare objdump branch addresses #1085
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1094"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from ivall/xcl. Originally posted by broccolize on 2026-11-24T11:30:36Z.
The record-writer scanner discarded valid GNU objdump branches when the target was printed without a hexadecimal prefix. Accept either spelling and keep resolving the target as hexadecimal.
What is in it
0xon thejaetarget without treating trailing symbols as part of the address.Tested
Clean head
09794af99dede865c6475dd2b89314f9f4a0d1b9. Windows 11 build 26300, Intel Core i5-10300H, NVIDIA GeForce GTX 1650 driver 32.0.16.1714, Rust 1.100.0 MSVC, debug.cargo build --locked --workspacepassed.cargo test --locked --workspace -- --test-threads=4 --show-outputreported 741 passed, 0 failed, 41 ignored.python -B -m unittest discover -s scripts -p test_record_writers.pypassed.Not tested
Disassembly from a retail DLL.
AI use
Codex was used to implement the change and run verification
Imported from ivall/xcl. Originally posted by futurepro62 on 2026-11-24T14:15:41Z.
Tested exact head
09794af, script tests only, since this PR has no test report yet.Tested
python -m pytest scripts/test_record_writers.pyat the head: 1 passed, 2 subtests passed.930e8b4): fails for the bare target (140001020) oftest_branch_target_accepts_both_hex_spellings. So the new test catches the problem the PR fixes.(?:0x)?regex without the\b. The two PRs conflict, so only one can land.Not tested
AI use
Imported from ivall/xcl. Originally posted by broccolize on 2026-11-24T18:47:42Z.
Closing because #1091 has merged and covers the same behavior. I verified that this PR’s regression test passes on current
main.Pull request closed