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

Repeat doesn't work with nearpc alias = u #2095

Open
jetchirag opened this issue Mar 26, 2024 · 1 comment
Open

Repeat doesn't work with nearpc alias = u #2095

jetchirag opened this issue Mar 26, 2024 · 1 comment
Labels

Comments

@jetchirag
Copy link
Contributor

Description

As @disconnect3d said on discord
pwndbg allows pressing enter after nearpc which repeats the command with next address but it doesn't work when you use aliases pdisass or u.

Steps to reproduce

  1. Run nearpc $pc
  2. Press enter to repeat it with last address, it works fine
  3. Run u $pc
  4. Press enter to repeat command, it doesn't work correctly
@jetchirag jetchirag added the bug label Mar 26, 2024
@disconnect3d disconnect3d changed the title Repeat doesn't work with nearpc alias Repeat doesn't work with nearpc alias = u Apr 28, 2024
@disconnect3d
Copy link
Member

As mentioned in #2096 we can't really unalias u, it is set by GDB to be an alias of the until command. For some reason however, GDB allows us to overwrite it as a command which we do here.

I think we should remove the u command overwrite at this point (so it gets back to until).

Also do people use nearpc? I usually use x/10i $pc instead. I also think that nearpc is not a great name and it would probably better to change it to disasm? Currently, disasm is a wrapper for pwntools command, ugh.

cc: @gsingh93 @CptGibbon @OBarronCS

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

Successfully merging a pull request may close this issue.

2 participants