Skip to content

fix(debugging_utils): do not default to hex for offsets - #301

Open
c0rydoras wants to merge 1 commit into
libdebug:mainfrom
c0rydoras:fix/symbol-offset
Open

fix(debugging_utils): do not default to hex for offsets#301
c0rydoras wants to merge 1 commit into
libdebug:mainfrom
c0rydoras:fix/symbol-offset

Conversation

@c0rydoras

@c0rydoras c0rydoras commented Apr 28, 2026

Copy link
Copy Markdown

Currently, setting a breakpoint at func+123 breaks at func.address + 0x123, which is somewhat uninituitive/unexpected

By changing int(offset, 16) to int(offset, 0), +0x123 will work continue working as before, but +123 will be 123 (decimal) instead of 291

see https://docs.python.org/3/library/functions.html#int for details on int(N, 0)

with this, `+0x123` does what `+123` did before, and `+123` is actually `+123` and not `+291`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant