Radare2: drt with some options doesn't show registers

Created on 25 Dec 2016  Â·  9Comments  Â·  Source: radareorg/radare2

drt mmx, drt xmm and drt flg doesn't show any register in r2 debug mode

RDebug enhancement

All 9 comments

Pla specify arch/os pair where this bug can be reproduced

On 25 Dec 2016, at 13:04, szt notifications@github.com wrote:

drt mmx, drt xmm and drt flg doesn't show any register in r2 debug mode

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

radare2 1.2.0-git 13307 @ linux-x86-64 git.1.1.0-37-gbc766ba
commit: bc766baf7375a1aa5151cd13ba354429aa0caa72 build: 2016-12-25

Ubuntu 16.04.1 LTS x86_64

$ r2 -d /bin/ls
...
[0x7f8571231cc0]> drt mmx
[0x7f8571231cc0]> drt xmm
[0x7f8571231cc0]> drt flg
[0x7f8571231cc0]> 

Linux reg profile have all xmm,mmx,st grouped in fpu.
Theses command show it:
drt fpu
dr st0
dr xmm0h
drf
and u can modify using:
drm
Note: dr cant use in linux to modify fpu registers yet ...

Also u can use 'drp' to show the loaded profile.

@skuater OK, but what if I want to see only XMM, MMX or FLAGS register?
For exampe, drt drx works correctly and shows me all debug registers. When I type drt flg I expect to get something like
rflags = 0x00000200 eflags = 0x00000200 cf = 0x00000000 pf = 0x00000000 af = 0x00000000 zf = 0x00000000 sf = 0x00000000 tf = 0x00000000 if = 0x00000001 df = 0x00000000 of = 0x00000000
but I get nothing

@j123123 no way , to solve this is needed do some changes into reg profile for linux. Ill try to implement when get some free time

working on it

@RKX1209 @SrimantaBarua FYI.

@abcSup could you please have a quick look at this when you have some time? It may be they are already fixed, but you know for sure better those parts of the code. Thanks!

drt mmx and drt xmm work. But, drt flg does not work because it is skipped.
https://github.com/radareorg/radare2/blob/a64cd129511c178851f385e97759a2012ef71d0f/libr/debug/dreg.c#L151-L153
I think I could remove those lines and make a PR to close this issue if there is no issue along the way.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

XVilka picture XVilka  Â·  6Comments

XVilka picture XVilka  Â·  3Comments

ret2libc picture ret2libc  Â·  6Comments

YugoCode picture YugoCode  Â·  6Comments

securitykitten picture securitykitten  Â·  4Comments