Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dq and telescope commands have an inconsistent interface #1957

Open
rivit98 opened this issue Dec 15, 2023 · 3 comments
Open

dq and telescope commands have an inconsistent interface #1957

rivit98 opened this issue Dec 15, 2023 · 3 comments

Comments

@rivit98
Copy link
Contributor

rivit98 commented Dec 15, 2023

Description

It seems that the dq and telescope interfaces are slightly different.
dq treats argument as a hex value, but telescope tries to parse it in some way. I think the behavior should be the same to make the UX better.

image

image

Steps to reproduce

see screenshots :)

My setup

pwndbg> show version
GNU gdb (Ubuntu 14.0.50.20230907-0ubuntu1) 14.0.50.20230907-git

pwndbg> py import sys; print(sys.version)
3.11.6 (main, Oct  8 2023, 05:06:43) [GCC 13.2.0]

pwndbg dev branch:
40b7928 (HEAD -> dev, origin/dev, origin/HEAD) fix missing cryptography 41.0.6 dependency in "nix" + add "release" workflow on pull_requests (#1955)
@rivit98 rivit98 added the bug label Dec 15, 2023
@disconnect3d disconnect3d added invalid and removed bug labels Dec 16, 2023
@disconnect3d
Copy link
Member

This is not a bug, but a "feature" that we wanted to have the same interface as Windbg had with db/dw/dd/dq/ds commands.

But that's not the first time someone mentions this as an issue. We could maybe make this configurable if we want to give users the options how to deal with that, heh...

@rivit98
Copy link
Contributor Author

rivit98 commented Dec 16, 2023

For me personally, it would make sense for commands to take hex values without the need for the "0x" prefix. Typically, hexadecimal values are used when working with the debugger. Feel free to close this "issue" or to push it forward :)

@disconnect3d
Copy link
Member

@rivit98 don't forget we generally accept gdb values within commands, so you can pass sth like some_var_name and its value will be automagically resolved. This is not the case for dX/eX (dq etc) commands iirc though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants