avast / avast/retdec

Config JSON: provide support for type declaration in C style.

Open
#635 0 comments 0 reactions 2 assignees Claimed by @PeterMatula View on GitHub
C-config enhancement
Dominant language
C++
Stars
8.6k
Forks
1k
PR merge metrics
No merged PRs in 30d

Description

Users can use the `--config` argument to specify extra info to RetDec in form of a path to the config file with such info. Right now users can provide a type of the objects only in LLVM IR syntax. As RetDec can be easily integrated with other tools we should add more options to provide type info, for example, C syntax which could come handy as some tools export data types in this syntax (radare2).

```json
{
"globals": [
{
"name": "globy",
"type": {
"llvmIr": "%str = type {i32, {i8, {i32}}, i16, i16}"
}
},
...
]
}
```

```json
{
"globals": [
{
"name": "globy",
"type": {
"C": "struct str { int a; struct { char b; struct { int c; }; }; short d; short e; };"
}
},
...
]
}
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.