get registers by name

52 views
Skip to first unread message

Carolyn Sala

unread,
Aug 17, 2023, 11:05:29 AM8/17/23
to DynamoRIO Users
Is there a function that takes the name of a register and returns the register? If I give "ymm0", it returns DR_REG_YMM0. The get_register_name() function can be used to get the name of a register, but I can't find a function that does the opposite.

Thanks.

Carolyn Sala

unread,
Aug 18, 2023, 4:41:22 AM8/18/23
to DynamoRIO Users

Carolyn Sala

unread,
Aug 18, 2023, 5:23:25 AM8/18/23
to DynamoRIO Users
how a drtool can access to reg_names ?

Sahil Gupta

unread,
Aug 18, 2023, 5:42:21 PM8/18/23
to DynamoRIO Users
Currently, we do not have such an API that can do string to enum conversions. May I better understand what is the use-case for this?

We would always be happy to accept a Pull Request for this.
Reply all
Reply to author
Forward
0 new messages