Scripts: accept bare objdump branch addresses #1085

Closed
broccolize wants to merge 1 commit from upstream-pr/1094 into main
broccolize commented 2026-11-24 11:30:36 +00:00 (Migrated from github.com)

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

  • Allow an optional 0x on the jae target without treating trailing symbols as part of the address.
  • Exercise both spellings and verify the fallback slot in a synthetic listing.

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 --workspace passed.
  • cargo test --locked --workspace -- --test-threads=4 --show-output reported 741 passed, 0 failed, 41 ignored.
  • python -B -m unittest discover -s scripts -p test_record_writers.py passed.
  • Runtime skips reported by the suite
    • SKIPPED gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask: no wave64
    • SKIPPED gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware: no wave64
    • SKIPPED placed_title_textures_share_vram_and_preserve_pixels: this adapter makes no reserved cube with mips
    • mklink /J unavailable – link case skipped
    • SKIPPED test_title_draws_with_a_root_signature_under_the_debug_layer: no d3d12SDKLayers.dll
    • SKIPPED uploads_start_from_each_subresources_state: no D3D12 debug layer (The application requested an operation that depends on an SDK component that is missing or mismatched. (0x887A002D))

Not tested

Disassembly from a retail DLL.

AI use

Codex was used to implement the change and run verification

<!-- greyfinch-sync:ivall/xcl:issue:6580783304 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1094). Originally posted by [broccolize](https://github.com/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** - Allow an optional `0x` on the `jae` target without treating trailing symbols as part of the address. - Exercise both spellings and verify the fallback slot in a synthetic listing. **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 --workspace` passed. - `cargo test --locked --workspace -- --test-threads=4 --show-output` reported **741 passed, 0 failed, 41 ignored**. - `python -B -m unittest discover -s scripts -p test_record_writers.py` passed. - Runtime skips reported by the suite - SKIPPED gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask: no wave64 - SKIPPED gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware: no wave64 - SKIPPED placed_title_textures_share_vram_and_preserve_pixels: this adapter makes no reserved cube with mips - mklink /J unavailable – link case skipped - SKIPPED test_title_draws_with_a_root_signature_under_the_debug_layer: no d3d12SDKLayers.dll - SKIPPED uploads_start_from_each_subresources_state: no D3D12 debug layer (The application requested an operation that depends on an SDK component that is missing or mismatched. (0x887A002D)) **Not tested** Disassembly from a retail DLL. **AI use** Codex was used to implement the change and run verification
futurepro62 commented 2026-11-24 15:05:46 +00:00 (Migrated from github.com)

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

  • Windows 11 Home 26300, Python 3.14.3 with pytest 9.0.3, Windows PowerShell 5.1.26100.9818 (no PowerShell 7 here).
  • python -m pytest scripts/test_record_writers.py at the head: 1 passed, 2 subtests passed.
  • The PR's test file(s) against current main's script (930e8b4): fails for the bare target (140001020) of test_branch_target_accepts_both_hex_spellings. So the new test catches the problem the PR fixes.
  • Same fix as #1091 (opened three minutes earlier, by a different author), which has the same (?:0x)? regex without the \b. The two PRs conflict, so only one can land.

Not tested

  • PowerShell 7, the CI workflow itself, a game (no runtime code changed).

AI use

  • Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
<!-- greyfinch-sync:ivall/xcl:comment:7134090472 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/1094#issuecomment-7134090472). Originally posted by [futurepro62](https://github.com/futurepro62) on 2026-11-24T14:15:41Z. --- Tested exact head `09794af`, script tests only, since this PR has no test report yet. **Tested** - Windows 11 Home 26300, Python 3.14.3 with pytest 9.0.3, Windows PowerShell 5.1.26100.9818 (no PowerShell 7 here). - `python -m pytest scripts/test_record_writers.py` at the head: 1 passed, 2 subtests passed. - The PR's test file(s) against current main's script (`930e8b4`): fails for the bare target (`140001020`) of `test_branch_target_accepts_both_hex_spellings`. So the new test catches the problem the PR fixes. - Same fix as #1091 (opened three minutes earlier, by a different author), which has the same `(?:0x)?` regex without the `\b`. The two PRs conflict, so only one can land. **Not tested** - PowerShell 7, the CI workflow itself, a game (no runtime code changed). **AI use** - Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
upstream-sync closed this pull request 2026-11-24 19:05:02 +00:00
broccolize commented 2026-11-24 19:07:36 +00:00 (Migrated from github.com)

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.

<!-- greyfinch-sync:ivall/xcl:comment:7141161445 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1094#issuecomment-7141161445). Originally posted by [broccolize](https://github.com/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

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl!1085
No description provided.