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

arm/aarch64 gdb connection visual disassembled view, hiding extra registers. #21329

Closed
Goyo2600 opened this issue Feb 9, 2023 · 2 comments
Closed

Comments

@Goyo2600
Copy link

Goyo2600 commented Feb 9, 2023

Description

Using r2 to connect to gdb remotely to qemu-aarch64 -g 5555 ... or qemu-arm -g 5555 ...

r2 -a arm -b 64 -D gdb -d gdb http://localhost:5555

We get a lot of registers in visual mode: (red circle).
r2pantallazo

The disassembled view with those registers is too small, and I don't need to view those registers in visual mode for my projects.
In #radare2 chat, it was suggested the solution must be fixed in the gdb reg profile converter.

a rapid and simple patch for getting the same effect is in libr/reg/profile.c in parse_def function:
pantallazo3
This is not a solution, is a simple patch to hide those registers and get the dissasembled view in Visual mode with the desired effect:
pantallazo2

trufae pushed a commit that referenced this issue Feb 10, 2023
@trufae
Copy link
Collaborator

trufae commented Feb 10, 2023

Uppercase registers should be ignored because those are not valid names for r2. But we can handle them as separate group in 5.9 because thats an abi breaking change

trufae pushed a commit that referenced this issue Feb 12, 2023
@trufae trufae closed this as completed in 5a4342c Feb 12, 2023
@trufae
Copy link
Collaborator

trufae commented Feb 12, 2023

this fix should work for you and not break anything, for 5.9 i can introduce those new reg types and get this right, so we hav etime to check for other archs if thats the case or improve the parser.
thanks!

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

No branches or pull requests

2 participants