Skip to content

Comments and color problems in AT&T mode #24192

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

Open
l0kh opened this issue May 8, 2025 · 1 comment
Open

Comments and color problems in AT&T mode #24192

l0kh opened this issue May 8, 2025 · 1 comment

Comments

@l0kh
Copy link

l0kh commented May 8, 2025

Description

There are some differences for the comments between intel and att modes (see below)

Intel

Image

AT&T

Image

I have also found some problems in coloring in att mode.
For example

mov $0,%rax
will not color the 0 (it seems to work properly with other values)
see the last line on the picture.

As for theming, I don't know how are handled the $ for integers and the % for registers. I didn't see anything for the prefix % but I don't know where to look in the sources.
I would be nice to have a special color for the register prefix in theming, but maybe I should create a feature request for this?

Regards,

@trufae
Copy link
Collaborator

trufae commented May 9, 2025

See the r_print_colorize_opcode function

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