rizin icon indicating copy to clipboard operation
rizin copied to clipboard

[x64] dr rdtsc -> register not found

Open gogo2464 opened this issue 1 year ago • 1 comments

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.

gogo2464 avatar Jul 17 '24 22:07 gogo2464

           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
> 

gogo2464 avatar Jul 18 '24 03:07 gogo2464

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

Sl4y3r-07 avatar Oct 18 '25 20:10 Sl4y3r-07

Thanks, can be closed then I guess.

Rot127 avatar Oct 19 '25 14:10 Rot127