Skip to content

Annotation for function name#17204

Merged
XVilka merged 8 commits into
radareorg:decompiler-refactoringfrom
NirmalManoj:function-name-annotation
Jul 10, 2020
Merged

Annotation for function name#17204
XVilka merged 8 commits into
radareorg:decompiler-refactoringfrom
NirmalManoj:function-name-annotation

Conversation

@NirmalManoj

@NirmalManoj NirmalManoj commented Jul 3, 2020

Copy link
Copy Markdown
Contributor

Your checklist for this pull request

  • I've read the guidelines for contributing to this repository
  • I made sure to follow the project's coding style
  • I've added tests that prove my fix is effective or that my feature works (if possible)
  • I've updated the documentation and the radare2 book with the relevant information (if needed)

Detailed description

This PR adds an annotation type (R_CODE_ANNOTATION_TYPE_FUNCTION_NAME) for function names in the decompiled code. This will be required for implementing some features in the decompiler in Cutter.

Note: I haven't modified tests so CI can fail during tests due to this. I will modify tests after getting feedback on this.

...

Test plan

  1. Fetch and compile PR #123 from r2ghidra-dec after compiling this PR.
  • Check the code and make sure that I haven't missed anything.
  • Check the modified JSON output code to make sure it's correct.
  • Test the code with JSON output to see if it's working properly.

...

Closing issues

...

@NirmalManoj NirmalManoj marked this pull request as ready for review July 3, 2020 19:12
@NirmalManoj NirmalManoj requested a review from trufae as a code owner July 3, 2020 19:12
@NirmalManoj NirmalManoj self-assigned this Jul 3, 2020
@karliss

karliss commented Jul 3, 2020

Copy link
Copy Markdown
Contributor

I would recommend keeping changes in separate branch just like it is currently done with matching cutter changes.

@NirmalManoj

Copy link
Copy Markdown
Contributor Author

@karliss Sure, I will make a branch with the same name decompiler-refactoring.

Comment thread libr/include/r_util/r_annotated_code.h Outdated
@github-actions github-actions Bot added the API New API requests, changes, removal label Jul 3, 2020
@NirmalManoj NirmalManoj requested a review from karliss July 8, 2020 09:46
@NirmalManoj NirmalManoj changed the base branch from master to decompiler-refactoring July 9, 2020 09:54
@XVilka

XVilka commented Jul 10, 2020

Copy link
Copy Markdown
Contributor

@NirmalManoj @karliss @thestr4ng3r do we need to merge it in master? Or it's preliminary yet?

@NirmalManoj

Copy link
Copy Markdown
Contributor Author

@XVilka I haven't made unit tests for function name annotation yet, and I think it will be better if that's done later after all new types of annotations are added. Also, this PR won't improve Cutter or r2ghidra-dec right now as the corresponding improvements are in decompiler-refactoring branches.

NirmalManoj added a commit that referenced this pull request Jul 17, 2020
NirmalManoj added a commit that referenced this pull request Jul 26, 2020
NirmalManoj added a commit to NirmalManoj/radare2 that referenced this pull request Jul 28, 2020
NirmalManoj added a commit to NirmalManoj/radare2 that referenced this pull request Jul 28, 2020
NirmalManoj added a commit to NirmalManoj/radare2 that referenced this pull request Jul 28, 2020
NirmalManoj added a commit to NirmalManoj/radare2 that referenced this pull request Jul 28, 2020
NirmalManoj added a commit to NirmalManoj/radare2 that referenced this pull request Jul 28, 2020
NirmalManoj added a commit to NirmalManoj/radare2 that referenced this pull request Aug 6, 2020
NirmalManoj added a commit that referenced this pull request Aug 9, 2020
ITAYC0HEN pushed a commit that referenced this pull request Aug 10, 2020
…edCode (#17429)

* Annotation for function name (#17204)
* Annotations for Constant Variables and Global Variables for the decompiler (#17281)
* Annotation For Function Variables (#17375)
* function variable annotation added (includes local variable and function parameter)
* API for checking if an annotation is a reference or function variable. (#17386)
* Update docs in annotate code API  (#17397)
* Unit tests for annotated code API (#17403)
ret2libc pushed a commit to ret2libc/radare2 that referenced this pull request Sep 1, 2020
…edCode (radareorg#17429)

* Annotation for function name (radareorg#17204)
* Annotations for Constant Variables and Global Variables for the decompiler (radareorg#17281)
* Annotation For Function Variables (radareorg#17375)
* function variable annotation added (includes local variable and function parameter)
* API for checking if an annotation is a reference or function variable. (radareorg#17386)
* Update docs in annotate code API  (radareorg#17397)
* Unit tests for annotated code API (radareorg#17403)
ret2libc pushed a commit that referenced this pull request Sep 2, 2020
…edCode (#17429)

* Annotation for function name (#17204)
* Annotations for Constant Variables and Global Variables for the decompiler (#17281)
* Annotation For Function Variables (#17375)
* function variable annotation added (includes local variable and function parameter)
* API for checking if an annotation is a reference or function variable. (#17386)
* Update docs in annotate code API  (#17397)
* Unit tests for annotated code API (#17403)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

API New API requests, changes, removal

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants