DynamoRIO / DynamoRIO/dynamorio

add complex type support to drwrap_get_arg

Open
#1,104 3 comments 0 reactions 0 assignees View on GitHub
Component-API Migrated Priority-Medium Type-Feature
Dominant language
C
Stars
3.2k
Forks
629
Avg merge
2d 15h
Merged PRs (30d)
31

Description

_From [loveker...@gmail.com](https://code.google.com/u/116484344188732790868/) on March 02, 2013 12:28:42_

typedef struct
{
int a;
float b;
}TTT;
int xxxtest(int go, char *mm, float f, TTT ttt)
{
printf("dll step1...\n");
return 0xface;
}

int p0 = (int) drwrap_get_arg(wrapcxt, 0);[OK]
char \* p1 = (char *) drwrap_get_arg(wrapcxt, 1); [OK]
float p2=(float)drwrap_get_arg(wrapcxt, 2); [ERROR, HOW?]
TTT p3 = (TTT)drwrap_get_arg(wrapcxt, 3); [ERROR, HOW?]

How to solve this problem? How to get the arg[2]、arg[3]?

_Original issue: http://code.google.com/p/dynamorio/issues/detail?id=1104_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.