rizin
rizin copied to clipboard
[x64] dr rdtsc -> register not found
dr rdtsc -> register not found
Work environment
| Questions | Answers |
|---|---|
| OS/arch/bits (mandatory) | Debian 12 |
| File format of the file you reverse (mandatory) | ELF |
| Architecture/bits of the file (mandatory) | x64 |
rizin -v full output, not truncated (mandatory) |
rizin 0.8.0 @ linux-x86-64 |
| commit: d004e8402e76f1c643a962843d8ad104b065d779 |
Expected behavior
Actual behavior
Steps to reproduce the behavior
[0x7f9af1819a40]> dr rdtsc ERROR: No such register or register type: "rdtsc"
Additional Logs, screenshots, source code, configuration dump, ...
Drag and drop zip archives containing the Additional info here, don't use external services or link.
0x00000000 0f31 rdtsc
;-- rip:
0x00000002 4889c0 mov rax, rax
0x00000005 0f31 rdtsc
0x00000007 ff invalid
0x00000008 ff invalid
0x00000009 ff invalid
0x0000000a ff invalid
0x0000000b ff invalid
0x0000000c ff invalid
0x0000000d ff invalid
0x0000000e ff invalid
0x0000000f ff invalid
0x00000010 ff invalid
0x00000011 ff invalid
0x00000012 ff invalid
0x00000013 ff invalid
0x00000014 ff invalid
0x00000015 ff invalid
0x00000016 ff invalid
> dr rdtsc~ts
>
rdtsc is a CPU instruction, not a register. The dr command only works with registers, so trying dr rdtsc will correctly produce an error.
@gogo2464
Thanks, can be closed then I guess.