Git Product home page Git Product logo

Comments (8)

Namtv2312 avatar Namtv2312 commented on June 23, 2024 3

sudo r2pm -ci r2ghidra
and usage:
sudo r2 binaryfile
pdg* .... etc

from r2ghidra.

ricardojlrufino avatar ricardojlrufino commented on June 23, 2024

Using:
r2pm -ci r2ghidra

image

full

r2pm -ci r2ghidra
Cleaning r2ghidra...
DEPENDS: r2ghidra-sleigh
ter fev  8 21:03:14 -03 2022
clean Done For r2ghidra
/home/ricardo/.local/share/radare2/r2pm/db/r2ghidra TGZ=
Cleaning up /home/ricardo/.local/share/radare2/r2pm/git/r2ghidra...
Cloning into 'r2ghidra'...
remote: Enumerating objects: 111, done.
remote: Counting objects: 100% (111/111), done.
remote: Compressing objects: 100% (104/104), done.
remote: Total 111 (delta 1), reused 48 (delta 1), pack-reused 0
Receiving objects: 100% (111/111), 268.87 KiB | 3.13 MiB/s, done.
Resolving deltas: 100% (1/1), done.
Submodule 'third-party/pugixml' (https://github.com/zeux/pugixml.git) registered for path 'third-party/pugixml'
Cloning into '/home/ricardo/.local/share/radare2/r2pm/git/r2ghidra/third-party/pugixml'...
remote: Enumerating objects: 9008, done.        
remote: Counting objects: 100% (175/175), done.        
remote: Compressing objects: 100% (95/95), done.        
remote: Total 9008 (delta 81), reused 121 (delta 66), pack-reused 8833        
Receiving objects: 100% (9008/9008), 6.45 MiB | 5.54 MiB/s, done.
Resolving deltas: 100% (6178/6178), done.
Caminho do sub-módulo 'third-party/pugixml': confirmado '0e3f1699ffab5f820060fe99c61f0f9495c0c5b6'
DEPENDS: r2ghidra-sleigh
ter fev  8 21:03:14 -03 2022
Install Done For r2ghidra
git clone https://github.com/radareorg/ghidra-native
Cloning into 'ghidra-native'...
remote: Enumerating objects: 1947, done.
remote: Counting objects: 100% (1947/1947), done.
remote: Compressing objects: 100% (1053/1053), done.
remote: Total 1947 (delta 690), reused 1892 (delta 640), pack-reused 0
Receiving objects: 100% (1947/1947), 3.17 MiB | 5.59 MiB/s, done.
Resolving deltas: 100% (690/690), done.
cd ghidra-native && git checkout 0.1.5
Note: checking out '0.1.5'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at e622e36 Maintain only one patch for all the changes in types.h
make -C ghidra-native patch
make[1]: Entering directory '/home/ricardo/.local/share/radare2/r2pm/git/r2ghidra/ghidra-native'
for a in patches/0001-space-after-comma.patch patches/0002-make-sleigharch-public.patch patches/0004-public-fields.patch patches/0005-heritage-crash.patch patches/0018-Add-FreeBSD-and-OpenBSD-support-6.patch patches/0020-Fix-double-free-crash-when-deinitializing-multiple-X.patch patches/0022-Show-noreturn-information-in-function-signature-2.patch patches/0023-Undef-LoadImage-for-windows.patch patches/0024-ignore-symbol-beyond-space.patch patches/0044-bad-unicode-codepoint.patch ; do patch -p1 < $a ; done
patching file src/decompiler/printc.cc
patching file src/decompiler/sleigh_arch.hh
patching file src/decompiler/context.hh
patching file src/decompiler/sleigh.hh
patching file src/decompiler/heritage.cc
patching file src/decompiler/types.h
patching file src/decompiler/xml.cc
patching file src/decompiler/xml.hh
patching file src/decompiler/prettyprint.cc
patching file src/decompiler/prettyprint.hh
patching file src/decompiler/printc.cc
patching file src/decompiler/loadimage.hh
patching file src/decompiler/database.cc
patching file src/decompiler/stringmanage.cc
touch patch.done
make[1]: Leaving directory '/home/ricardo/.local/share/radare2/r2pm/git/r2ghidra/ghidra-native'
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for working directories... current
using prefix '/usr/local'
checking for c++ compiler... c++
checking for cpp... cpp
checking for git... /usr/bin/git
checking for pkg-config... /usr/bin/pkg-config
Using PKGCONFIG: /usr/bin/pkg-config
checking pkg-config flags for r_core... yes
checking pkg-config flags for r_asm... yes
checking pkg-config flags for r_anal... yes
checking for r2... /usr/local/bin/r2
checking for bison... /usr/bin/bison
checking for flex... /usr/bin/flex
checking exec r2 -H R2_PREFIX... ok
checking exec r2 -H R2_USER_PLUGINS... ok
checking exec r2 -H R2_LIBR_PLUGINS... ok
creating config.mk
cleaning temporally files... done

Final report:
 - VERSION = 5.5.4
 - R2_PREFIX = /usr/local
 - PREFIX = /usr/local
 - PKGCONFIG = /usr/bin/pkg-config
make: Entering directory '/home/ricardo/.local/share/radare2/r2pm/git/r2ghidra/src'
c++ -fPIC -I../third-party/pugixml/src/ -std=c++11 -I/home/ricardo/.local/share/radare2/prefix/include -DR2GHIDRA_SLEIGHHOME_DEFAULT=\"/home/ricardo/.local/share/radare2/plugins/r2ghidra_sleigh\" -w -fPIC -I../ghidra-native/src/decompiler -I. -I/usr/local/include/libr -I/usr/local/include/libr/sdb -c R2Architecture.cpp
c++ -fPIC -I../third-party/pugixml/src/ -std=c++11 -I/home/ricardo/.local/share/radare2/prefix/include -DR2GHIDRA_SLEIGHHOME_DEFAULT=\"/home/ricardo/.local/share/radare2/plugins/r2ghidra_sleigh\" -w -fPIC -I../ghidra-native/src/decompiler -I. -I/usr/local/include/libr -I/usr/local/include/libr/sdb -c R2LoadImage.cpp
c++ -fPIC -I../third-party/pugixml/src/ -std=c++11 -I/home/ricardo/.local/share/radare2/prefix/include -DR2GHIDRA_SLEIGHHOME_DEFAULT=\"/home/ricardo/.local/share/radare2/plugins/r2ghidra_sleigh\" -w -fPIC -I../ghidra-native/src/decompiler -I. -I/usr/local/include/libr -I/usr/local/include/libr/sdb -c R2Scope.cpp
c++ -fPIC -I../third-party/pugixml/src/ -std=c++11 -I/home/ricardo/.local/share/radare2/prefix/include -DR2GHIDRA_SLEIGHHOME_DEFAULT=\"/home/ricardo/.local/share/radare2/plugins/r2ghidra_sleigh\" -w -fPIC -I../ghidra-native/src/decompiler -I. -I/usr/local/include/libr -I/usr/local/include/libr/sdb -c R2TypeFactory.cpp
c++ -fPIC -I../third-party/pugixml/src/ -std=c++11 -I/home/ricardo/.local/share/radare2/prefix/include -DR2GHIDRA_SLEIGHHOME_DEFAULT=\"/home/ricardo/.local/share/radare2/plugins/r2ghidra_sleigh\" -w -fPIC -I../ghidra-native/src/decompiler -I. -I/usr/local/include/libr -I/usr/local/include/libr/sdb -c R2CommentDatabase.cpp
c++ -fPIC -I../third-party/pugixml/src/ -std=c++11 -I/home/ricardo/.local/share/radare2/prefix/include -DR2GHIDRA_SLEIGHHOME_DEFAULT=\"/home/ricardo/.local/share/radare2/plugins/r2ghidra_sleigh\" -w -fPIC -I../ghidra-native/src/decompiler -I. -I/usr/local/include/libr -I/usr/local/include/libr/sdb -c CodeXMLParse.cpp
In file included from CodeXMLParse.cpp:3:0:
CodeXMLParse.h:10:7: error: ‘RCodeMeta’ does not name a type; did you mean ‘RCorePuts’?
 R_API RCodeMeta *ParseCodeXML(Funcdata *func, const char *xml);
       ^~~~~~~~~
       RCorePuts
c++ -fPIC -I../third-party/pugixml/src/ -std=c++11 -I/home/ricardo/.local/share/radare2/prefix/include -DR2GHIDRA_SLEIGHHOME_DEFAULT=\"/home/ricardo/.local/share/radare2/plugins/r2ghidra_sleigh\" -w -fPIC -I../ghidra-native/src/decompiler -I. -I/usr/local/include/libr -I/usr/local/include/libr/sdb -c ArchMap.cpp
c++ -fPIC -I../third-party/pugixml/src/ -std=c++11 -I/home/ricardo/.local/share/radare2/prefix/include -DR2GHIDRA_SLEIGHHOME_DEFAULT=\"/home/ricardo/.local/share/radare2/plugins/r2ghidra_sleigh\" -w -fPIC -I../ghidra-native/src/decompiler -I. -I/usr/local/include/libr -I/usr/local/include/libr/sdb -c R2PrintC.cpp
CodeXMLParse.cpp:40:85: error: ‘RCodeMetaItem’ was not declared in this scope
 #define ANNOTATOR_PARAMS pugi::xml_node node, ParseCodeXMLContext *ctx, std::vector<RCodeMetaItem> *out
                                                                                     ^
CodeXMLParse.cpp:43:20: note: in expansion of macro ‘ANNOTATOR_PARAMS’
 void AnnotateOpref(ANNOTATOR_PARAMS) {
                    ^~~~~~~~~~~~~~~~
CodeXMLParse.cpp:40:85: note: suggested alternative: ‘RAnalMetaItem’
 #define ANNOTATOR_PARAMS pugi::xml_node node, ParseCodeXMLContext *ctx, std::vector<RCodeMetaItem> *out
                                                                                     ^
CodeXMLParse.cpp:43:20: note: in expansion of macro ‘ANNOTATOR_PARAMS’
 void AnnotateOpref(ANNOTATOR_PARAMS) {
                    ^~~~~~~~~~~~~~~~
CodeXMLParse.cpp:40:98: error: template argument 1 is invalid
 #define ANNOTATOR_PARAMS pugi::xml_node node, ParseCodeXMLContext *ctx, std::vector<RCodeMetaItem> *out
                                                                                                  ^
CodeXMLParse.cpp:43:20: note: in expansion of macro ‘ANNOTATOR_PARAMS’
 void AnnotateOpref(ANNOTATOR_PARAMS) {
                    ^~~~~~~~~~~~~~~~
CodeXMLParse.cpp:40:98: error: template argument 2 is invalid
 #define ANNOTATOR_PARAMS pugi::xml_node node, ParseCodeXMLContext *ctx, std::vector<RCodeMetaItem> *out
                                                                                                  ^
CodeXMLParse.cpp:43:20: note: in expansion of macro ‘ANNOTATOR_PARAMS’
 void AnnotateOpref(ANNOTATOR_PARAMS) {
                    ^~~~~~~~~~~~~~~~
CodeXMLParse.cpp: In function ‘void AnnotateOpref(pugi::xml_node, ParseCodeXMLContext*, int*)’:
CodeXMLParse.cpp:58:7: error: request for member ‘emplace_back’ in ‘* out’, which is of non-class type ‘int’
  out->emplace_back ();
       ^~~~~~~~~~~~
CodeXMLParse.cpp:59:26: error: request for member ‘back’ in ‘* out’, which is of non-class type ‘int’
  auto &annotation = out->back ();
                          ^~~~
CodeXMLParse.cpp:61:20: error: ‘R_CODEMETA_TYPE_OFFSET’ was not declared in this scope
  annotation.type = R_CODEMETA_TYPE_OFFSET;
                    ^~~~~~~~~~~~~~~~~~~~~~
CodeXMLParse.cpp:61:20: note: suggested alternative: ‘R_META_TYPE_COMMENT’
  annotation.type = R_CODEMETA_TYPE_OFFSET;
                    ^~~~~~~~~~~~~~~~~~~~~~
                    R_META_TYPE_COMMENT
CodeXMLParse.cpp: At global scope:
CodeXMLParse.cpp:40:85: error: ‘RCodeMetaItem’ was not declared in this scope
 #define ANNOTATOR_PARAMS pugi::xml_node node, ParseCodeXMLContext *ctx, std::vector<RCodeMetaItem> *out
                                                                                     ^
CodeXMLParse.cpp:65:27: note: in expansion of macro ‘ANNOTATOR_PARAMS’
 void AnnotateFunctionName(ANNOTATOR_PARAMS) {
                           ^~~~~~~~~~~~~~~~
CodeXMLParse.cpp:40:85: note: suggested alternative: ‘RAnalMetaItem’
 #define ANNOTATOR_PARAMS pugi::xml_node node, ParseCodeXMLContext *ctx, std::vector<RCodeMetaItem> *out
                                                                                     ^
CodeXMLParse.cpp:65:27: note: in expansion of macro ‘ANNOTATOR_PARAMS’
 void AnnotateFunctionName(ANNOTATOR_PARAMS) {
                           ^~~~~~~~~~~~~~~~
CodeXMLParse.cpp:40:98: error: template argument 1 is invalid
 #define ANNOTATOR_PARAMS pugi::xml_node node, ParseCodeXMLContext *ctx, std::vector<RCodeMetaItem> *out
                                                                                                  ^
CodeXMLParse.cpp:65:27: note: in expansion of macro ‘ANNOTATOR_PARAMS’
 void AnnotateFunctionName(ANNOTATOR_PARAMS) {
                           ^~~~~~~~~~~~~~~~
CodeXMLParse.cpp:40:98: error: template argument 2 is invalid
 #define ANNOTATOR_PARAMS pugi::xml_node node, ParseCodeXMLContext *ctx, std::vector<RCodeMetaItem> *out
                                                                                                  ^
CodeXMLParse.cpp:65:27: note: in expansion of macro ‘ANNOTATOR_PARAMS’
 void AnnotateFunctionName(ANNOTATOR_PARAMS) {
                           ^~~~~~~~~~~~~~~~
CodeXMLParse.cpp: In function ‘void AnnotateFunctionName(pugi::xml_node, ParseCodeXMLContext*, int*)’:
CodeXMLParse.cpp:70:2: error: ‘RCodeMetaItem’ was not declared in this scope
  RCodeMetaItem annotation = {};
  ^~~~~~~~~~~~~
CodeXMLParse.cpp:70:2: note: suggested alternative: ‘RAnalMetaItem’
  RCodeMetaItem annotation = {};
  ^~~~~~~~~~~~~
  RAnalMetaItem
CodeXMLParse.cpp:71:2: error: ‘annotation’ was not declared in this scope
  annotation.type = R_CODEMETA_TYPE_FUNCTION_NAME;
  ^~~~~~~~~~
CodeXMLParse.cpp:71:2: note: suggested alternative: ‘Partition’
  annotation.type = R_CODEMETA_TYPE_FUNCTION_NAME;
  ^~~~~~~~~~
  Partition
CodeXMLParse.cpp:71:20: error: ‘R_CODEMETA_TYPE_FUNCTION_NAME’ was not declared in this scope
  annotation.type = R_CODEMETA_TYPE_FUNCTION_NAME;
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CodeXMLParse.cpp:71:20: note: suggested alternative: ‘R_META_TYPE_FORMAT’
  annotation.type = R_CODEMETA_TYPE_FUNCTION_NAME;
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                    R_META_TYPE_FORMAT
CodeXMLParse.cpp:77:9: error: request for member ‘push_back’ in ‘* out’, which is of non-class type ‘int’
    out->push_back(annotation);
         ^~~~~~~~~
CodeXMLParse.cpp:79:18: error: expected ‘;’ before ‘offsetAnnotation’
    RCodeMetaItem offsetAnnotation = {};
                  ^~~~~~~~~~~~~~~~
CodeXMLParse.cpp:80:4: error: ‘offsetAnnotation’ was not declared in this scope
    offsetAnnotation.type = R_CODEMETA_TYPE_OFFSET;
    ^~~~~~~~~~~~~~~~
CodeXMLParse.cpp:80:28: error: ‘R_CODEMETA_TYPE_OFFSET’ was not declared in this scope
    offsetAnnotation.type = R_CODEMETA_TYPE_OFFSET;
                            ^~~~~~~~~~~~~~~~~~~~~~
CodeXMLParse.cpp:80:28: note: suggested alternative: ‘R_META_TYPE_COMMENT’
    offsetAnnotation.type = R_CODEMETA_TYPE_OFFSET;
                            ^~~~~~~~~~~~~~~~~~~~~~
                            R_META_TYPE_COMMENT
CodeXMLParse.cpp:82:9: error: request for member ‘push_back’ in ‘* out’, which is of non-class type ‘int’
    out->push_back(offsetAnnotation);
         ^~~~~~~~~
CodeXMLParse.cpp:99:8: error: request for member ‘push_back’ in ‘* out’, which is of non-class type ‘int’
   out->push_back (annotation);
        ^~~~~~~~~
CodeXMLParse.cpp: At global scope:
CodeXMLParse.cpp:40:85: error: ‘RCodeMetaItem’ was not declared in this scope
 #define ANNOTATOR_PARAMS pugi::xml_node node, ParseCodeXMLContext *ctx, std::vector<RCodeMetaItem> *out
                                                                                     ^
CodeXMLParse.cpp:103:28: note: in expansion of macro ‘ANNOTATOR_PARAMS’
 void AnnotateCommentOffset(ANNOTATOR_PARAMS) {
                            ^~~~~~~~~~~~~~~~
CodeXMLParse.cpp:40:85: note: suggested alternative: ‘RAnalMetaItem’
 #define ANNOTATOR_PARAMS pugi::xml_node node, ParseCodeXMLContext *ctx, std::vector<RCodeMetaItem> *out
                                                                                     ^
CodeXMLParse.cpp:103:28: note: in expansion of macro ‘ANNOTATOR_PARAMS’
 void AnnotateCommentOffset(ANNOTATOR_PARAMS) {
                            ^~~~~~~~~~~~~~~~
CodeXMLParse.cpp:40:98: error: template argument 1 is invalid
 #define ANNOTATOR_PARAMS pugi::xml_node node, ParseCodeXMLContext *ctx, std::vector<RCodeMetaItem> *out
                                                                                                  ^
CodeXMLParse.cpp:103:28: note: in expansion of macro ‘ANNOTATOR_PARAMS’
 void AnnotateCommentOffset(ANNOTATOR_PARAMS) {
                            ^~~~~~~~~~~~~~~~
CodeXMLParse.cpp:40:98: error: template argument 2 is invalid
 #define ANNOTATOR_PARAMS pugi::xml_node node, ParseCodeXMLContext *ctx, std::vector<RCodeMetaItem> *out
                                                                                                  ^
CodeXMLParse.cpp:103:28: note: in expansion of macro ‘ANNOTATOR_PARAMS’
 void AnnotateCommentOffset(ANNOTATOR_PARAMS) {
                            ^~~~~~~~~~~~~~~~
CodeXMLParse.cpp: In function ‘void AnnotateCommentOffset(pugi::xml_node, ParseCodeXMLContext*, int*)’:
CodeXMLParse.cpp:110:7: error: request for member ‘emplace_back’ in ‘* out’, which is of non-class type ‘int’
  out->emplace_back();
       ^~~~~~~~~~~~
CodeXMLParse.cpp:111:26: error: request for member ‘back’ in ‘* out’, which is of non-class type ‘int’
  auto &annotation = out->back();
                          ^~~~
CodeXMLParse.cpp:113:20: error: ‘R_CODEMETA_TYPE_OFFSET’ was not declared in this scope
  annotation.type = R_CODEMETA_TYPE_OFFSET;
                    ^~~~~~~~~~~~~~~~~~~~~~
CodeXMLParse.cpp:113:20: note: suggested alternative: ‘R_META_TYPE_COMMENT’
  annotation.type = R_CODEMETA_TYPE_OFFSET;
                    ^~~~~~~~~~~~~~~~~~~~~~
                    R_META_TYPE_COMMENT
CodeXMLParse.cpp: At global scope:
CodeXMLParse.cpp:40:85: error: ‘RCodeMetaItem’ was not declared in this scope
 #define ANNOTATOR_PARAMS pugi::xml_node node, ParseCodeXMLContext *ctx, std::vector<RCodeMetaItem> *out
                                                                                     ^
CodeXMLParse.cpp:121:20: note: in expansion of macro ‘ANNOTATOR_PARAMS’
 void AnnotateColor(ANNOTATOR_PARAMS)
                    ^~~~~~~~~~~~~~~~
CodeXMLParse.cpp:40:85: note: suggested alternative: ‘RAnalMetaItem’
 #define ANNOTATOR_PARAMS pugi::xml_node node, ParseCodeXMLContext *ctx, std::vector<RCodeMetaItem> *out
                                                                                     ^
CodeXMLParse.cpp:121:20: note: in expansion of macro ‘ANNOTATOR_PARAMS’
 void AnnotateColor(ANNOTATOR_PARAMS)
                    ^~~~~~~~~~~~~~~~
CodeXMLParse.cpp:40:98: error: template argument 1 is invalid
 #define ANNOTATOR_PARAMS pugi::xml_node node, ParseCodeXMLContext *ctx, std::vector<RCodeMetaItem> *out
                                                                                                  ^
CodeXMLParse.cpp:121:20: note: in expansion of macro ‘ANNOTATOR_PARAMS’
 void AnnotateColor(ANNOTATOR_PARAMS)
                    ^~~~~~~~~~~~~~~~
CodeXMLParse.cpp:40:98: error: template argument 2 is invalid
 #define ANNOTATOR_PARAMS pugi::xml_node node, ParseCodeXMLContext *ctx, std::vector<RCodeMetaItem> *out
                                                                                                  ^
CodeXMLParse.cpp:121:20: note: in expansion of macro ‘ANNOTATOR_PARAMS’
 void AnnotateColor(ANNOTATOR_PARAMS)
                    ^~~~~~~~~~~~~~~~
CodeXMLParse.cpp: In function ‘void AnnotateColor(pugi::xml_node, ParseCodeXMLContext*, int*)’:
CodeXMLParse.cpp:131:2: error: ‘RSyntaxHighlightType’ was not declared in this scope
  RSyntaxHighlightType type;
  ^~~~~~~~~~~~~~~~~~~~
CodeXMLParse.cpp:133:3: error: ‘type’ was not declared in this scope
   type = R_SYNTAX_HIGHLIGHT_TYPE_KEYWORD;
   ^~~~
CodeXMLParse.cpp:133:3: note: suggested alternative: ‘wctype’
   type = R_SYNTAX_HIGHLIGHT_TYPE_KEYWORD;
   ^~~~
   wctype
CodeXMLParse.cpp:133:10: error: ‘R_SYNTAX_HIGHLIGHT_TYPE_KEYWORD’ was not declared in this scope
   type = R_SYNTAX_HIGHLIGHT_TYPE_KEYWORD;
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CodeXMLParse.cpp:133:10: note: suggested alternative: ‘R_ANAL_ADDR_HINT_TYPE_NWORD’
   type = R_SYNTAX_HIGHLIGHT_TYPE_KEYWORD;
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          R_ANAL_ADDR_HINT_TYPE_NWORD
CodeXMLParse.cpp:135:3: error: ‘type’ was not declared in this scope
   type = R_SYNTAX_HIGHLIGHT_TYPE_COMMENT;
   ^~~~
CodeXMLParse.cpp:135:3: note: suggested alternative: ‘wctype’
   type = R_SYNTAX_HIGHLIGHT_TYPE_COMMENT;
   ^~~~
   wctype
CodeXMLParse.cpp:135:10: error: ‘R_SYNTAX_HIGHLIGHT_TYPE_COMMENT’ was not declared in this scope
   type = R_SYNTAX_HIGHLIGHT_TYPE_COMMENT;
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CodeXMLParse.cpp:135:10: note: suggested alternative: ‘R_META_TYPE_COMMENT’
   type = R_SYNTAX_HIGHLIGHT_TYPE_COMMENT;
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          R_META_TYPE_COMMENT
CodeXMLParse.cpp:137:3: error: ‘type’ was not declared in this scope
   type = R_SYNTAX_HIGHLIGHT_TYPE_DATATYPE;
   ^~~~
CodeXMLParse.cpp:137:3: note: suggested alternative: ‘wctype’
   type = R_SYNTAX_HIGHLIGHT_TYPE_DATATYPE;
   ^~~~
   wctype
CodeXMLParse.cpp:137:10: error: ‘R_SYNTAX_HIGHLIGHT_TYPE_DATATYPE’ was not declared in this scope
   type = R_SYNTAX_HIGHLIGHT_TYPE_DATATYPE;
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CodeXMLParse.cpp:137:10: note: suggested alternative: ‘R_ANAL_ADDR_HINT_TYPE_OPTYPE’
   type = R_SYNTAX_HIGHLIGHT_TYPE_DATATYPE;
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          R_ANAL_ADDR_HINT_TYPE_OPTYPE
CodeXMLParse.cpp:139:3: error: ‘type’ was not declared in this scope
   type = R_SYNTAX_HIGHLIGHT_TYPE_FUNCTION_NAME;
   ^~~~
CodeXMLParse.cpp:139:3: note: suggested alternative: ‘wctype’
   type = R_SYNTAX_HIGHLIGHT_TYPE_FUNCTION_NAME;
   ^~~~
   wctype
CodeXMLParse.cpp:139:10: error: ‘R_SYNTAX_HIGHLIGHT_TYPE_FUNCTION_NAME’ was not declared in this scope
   type = R_SYNTAX_HIGHLIGHT_TYPE_FUNCTION_NAME;
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CodeXMLParse.cpp:141:3: error: ‘type’ was not declared in this scope
   type = R_SYNTAX_HIGHLIGHT_TYPE_FUNCTION_PARAMETER;
   ^~~~
CodeXMLParse.cpp:141:3: note: suggested alternative: ‘wctype’
   type = R_SYNTAX_HIGHLIGHT_TYPE_FUNCTION_PARAMETER;
   ^~~~
   wctype
CodeXMLParse.cpp:141:10: error: ‘R_SYNTAX_HIGHLIGHT_TYPE_FUNCTION_PARAMETER’ was not declared in this scope
   type = R_SYNTAX_HIGHLIGHT_TYPE_FUNCTION_PARAMETER;
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CodeXMLParse.cpp:143:3: error: ‘type’ was not declared in this scope
   type = R_SYNTAX_HIGHLIGHT_TYPE_LOCAL_VARIABLE;
   ^~~~
CodeXMLParse.cpp:143:3: note: suggested alternative: ‘wctype’
   type = R_SYNTAX_HIGHLIGHT_TYPE_LOCAL_VARIABLE;
   ^~~~
   wctype
CodeXMLParse.cpp:143:10: error: ‘R_SYNTAX_HIGHLIGHT_TYPE_LOCAL_VARIABLE’ was not declared in this scope
   type = R_SYNTAX_HIGHLIGHT_TYPE_LOCAL_VARIABLE;
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CodeXMLParse.cpp:145:3: error: ‘type’ was not declared in this scope
   type = R_SYNTAX_HIGHLIGHT_TYPE_CONSTANT_VARIABLE;
   ^~~~
CodeXMLParse.cpp:145:3: note: suggested alternative: ‘wctype’
   type = R_SYNTAX_HIGHLIGHT_TYPE_CONSTANT_VARIABLE;
   ^~~~
   wctype
CodeXMLParse.cpp:145:10: error: ‘R_SYNTAX_HIGHLIGHT_TYPE_CONSTANT_VARIABLE’ was not declared in this scope
   type = R_SYNTAX_HIGHLIGHT_TYPE_CONSTANT_VARIABLE;
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CodeXMLParse.cpp:147:3: error: ‘type’ was not declared in this scope
   type = R_SYNTAX_HIGHLIGHT_TYPE_GLOBAL_VARIABLE;
   ^~~~
CodeXMLParse.cpp:147:3: note: suggested alternative: ‘wctype’
   type = R_SYNTAX_HIGHLIGHT_TYPE_GLOBAL_VARIABLE;
   ^~~~
   wctype
CodeXMLParse.cpp:147:10: error: ‘R_SYNTAX_HIGHLIGHT_TYPE_GLOBAL_VARIABLE’ was not declared in this scope
   type = R_SYNTAX_HIGHLIGHT_TYPE_GLOBAL_VARIABLE;
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CodeXMLParse.cpp:151:2: error: ‘RCodeMetaItem’ was not declared in this scope
  RCodeMetaItem annotation = {};
  ^~~~~~~~~~~~~
CodeXMLParse.cpp:151:2: note: suggested alternative: ‘RAnalMetaItem’
  RCodeMetaItem annotation = {};
  ^~~~~~~~~~~~~
  RAnalMetaItem
CodeXMLParse.cpp:152:2: error: ‘annotation’ was not declared in this scope
  annotation.type = R_CODEMETA_TYPE_SYNTAX_HIGHLIGHT;
  ^~~~~~~~~~
CodeXMLParse.cpp:152:2: note: suggested alternative: ‘Partition’
  annotation.type = R_CODEMETA_TYPE_SYNTAX_HIGHLIGHT;
  ^~~~~~~~~~
  Partition
CodeXMLParse.cpp:152:20: error: ‘R_CODEMETA_TYPE_SYNTAX_HIGHLIGHT’ was not declared in this scope
  annotation.type = R_CODEMETA_TYPE_SYNTAX_HIGHLIGHT;
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CodeXMLParse.cpp:152:20: note: suggested alternative: ‘R_META_TYPE_HIGHLIGHT’
  annotation.type = R_CODEMETA_TYPE_SYNTAX_HIGHLIGHT;
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                    R_META_TYPE_HIGHLIGHT
CodeXMLParse.cpp:153:37: error: ‘type’ was not declared in this scope
  annotation.syntax_highlight.type = type;
                                     ^~~~
CodeXMLParse.cpp:153:37: note: suggested alternative: ‘wctype’
  annotation.syntax_highlight.type = type;
                                     ^~~~
                                     wctype
CodeXMLParse.cpp:154:7: error: request for member ‘push_back’ in ‘* out’, which is of non-class type ‘int’
  out->push_back (annotation);
       ^~~~~~~~~
CodeXMLParse.cpp: At global scope:
CodeXMLParse.cpp:157:59: error: ‘RCodeMetaItem’ was not declared in this scope
 void AnnotateGlobalVariable(Varnode *varnode, std::vector<RCodeMetaItem> *out) {
                                                           ^~~~~~~~~~~~~
CodeXMLParse.cpp:157:59: note: suggested alternative: ‘RAnalMetaItem’
 void AnnotateGlobalVariable(Varnode *varnode, std::vector<RCodeMetaItem> *out) {
                                                           ^~~~~~~~~~~~~
                                                           RAnalMetaItem
CodeXMLParse.cpp:157:72: error: template argument 1 is invalid
 void AnnotateGlobalVariable(Varnode *varnode, std::vector<RCodeMetaItem> *out) {
                                                                        ^
CodeXMLParse.cpp:157:72: error: template argument 2 is invalid
CodeXMLParse.cpp: In function ‘void AnnotateGlobalVariable(Varnode*, int*)’:
CodeXMLParse.cpp:158:2: error: ‘RCodeMetaItem’ was not declared in this scope
  RCodeMetaItem annotation = {};
  ^~~~~~~~~~~~~
CodeXMLParse.cpp:158:2: note: suggested alternative: ‘RAnalMetaItem’
  RCodeMetaItem annotation = {};
  ^~~~~~~~~~~~~
  RAnalMetaItem
CodeXMLParse.cpp:159:2: error: ‘annotation’ was not declared in this scope
  annotation.type = R_CODEMETA_TYPE_GLOBAL_VARIABLE;
  ^~~~~~~~~~
CodeXMLParse.cpp:159:2: note: suggested alternative: ‘Partition’
  annotation.type = R_CODEMETA_TYPE_GLOBAL_VARIABLE;
  ^~~~~~~~~~
  Partition
CodeXMLParse.cpp:159:20: error: ‘R_CODEMETA_TYPE_GLOBAL_VARIABLE’ was not declared in this scope
  annotation.type = R_CODEMETA_TYPE_GLOBAL_VARIABLE;
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CodeXMLParse.cpp:159:20: note: suggested alternative: ‘R_META_TYPE_VARTYPE’
  annotation.type = R_CODEMETA_TYPE_GLOBAL_VARIABLE;
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                    R_META_TYPE_VARTYPE
CodeXMLParse.cpp:161:7: error: request for member ‘push_back’ in ‘* out’, which is of non-class type ‘int’
  out->push_back(annotation);
       ^~~~~~~~~
CodeXMLParse.cpp: At global scope:
CodeXMLParse.cpp:164:61: error: ‘RCodeMetaItem’ was not declared in this scope
 void AnnotateConstantVariable(Varnode *varnode, std::vector<RCodeMetaItem> *out) {
                                                             ^~~~~~~~~~~~~
CodeXMLParse.cpp:164:61: note: suggested alternative: ‘RAnalMetaItem’
 void AnnotateConstantVariable(Varnode *varnode, std::vector<RCodeMetaItem> *out) {
                                                             ^~~~~~~~~~~~~
                                                             RAnalMetaItem
CodeXMLParse.cpp:164:74: error: template argument 1 is invalid
 void AnnotateConstantVariable(Varnode *varnode, std::vector<RCodeMetaItem> *out) {
                                                                          ^
CodeXMLParse.cpp:164:74: error: template argument 2 is invalid
CodeXMLParse.cpp: In function ‘void AnnotateConstantVariable(Varnode*, int*)’:
CodeXMLParse.cpp:165:2: error: ‘RCodeMetaItem’ was not declared in this scope
  RCodeMetaItem annotation = {};
  ^~~~~~~~~~~~~
CodeXMLParse.cpp:165:2: note: suggested alternative: ‘RAnalMetaItem’
  RCodeMetaItem annotation = {};
  ^~~~~~~~~~~~~
  RAnalMetaItem
CodeXMLParse.cpp:166:2: error: ‘annotation’ was not declared in this scope
  annotation.type = R_CODEMETA_TYPE_CONSTANT_VARIABLE;
  ^~~~~~~~~~
CodeXMLParse.cpp:166:2: note: suggested alternative: ‘Partition’
  annotation.type = R_CODEMETA_TYPE_CONSTANT_VARIABLE;
  ^~~~~~~~~~
  Partition
CodeXMLParse.cpp:166:20: error: ‘R_CODEMETA_TYPE_CONSTANT_VARIABLE’ was not declared in this scope
  annotation.type = R_CODEMETA_TYPE_CONSTANT_VARIABLE;
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CodeXMLParse.cpp:168:7: error: request for member ‘push_back’ in ‘* out’, which is of non-class type ‘int’
  out->push_back (annotation);
       ^~~~~~~~~
CodeXMLParse.cpp: At global scope:
CodeXMLParse.cpp:172:56: error: ‘RCodeMetaItem’ was not declared in this scope
 void AnnotateLocalVariable(Symbol *symbol, std::vector<RCodeMetaItem> *out) {
                                                        ^~~~~~~~~~~~~
CodeXMLParse.cpp:172:56: note: suggested alternative: ‘RAnalMetaItem’
 void AnnotateLocalVariable(Symbol *symbol, std::vector<RCodeMetaItem> *out) {
                                                        ^~~~~~~~~~~~~
                                                        RAnalMetaItem
CodeXMLParse.cpp:172:69: error: template argument 1 is invalid
 void AnnotateLocalVariable(Symbol *symbol, std::vector<RCodeMetaItem> *out) {
                                                                     ^
CodeXMLParse.cpp:172:69: error: template argument 2 is invalid
CodeXMLParse.cpp: In function ‘void AnnotateLocalVariable(Symbol*, int*)’:
CodeXMLParse.cpp:176:2: error: ‘RCodeMetaItem’ was not declared in this scope
  RCodeMetaItem annotation = {};
  ^~~~~~~~~~~~~
CodeXMLParse.cpp:176:2: note: suggested alternative: ‘RAnalMetaItem’
  RCodeMetaItem annotation = {};
  ^~~~~~~~~~~~~
  RAnalMetaItem
CodeXMLParse.cpp:177:2: error: ‘annotation’ was not declared in this scope
  annotation.variable.name = strdup (symbol->getName().c_str ());
  ^~~~~~~~~~
CodeXMLParse.cpp:177:2: note: suggested alternative: ‘Partition’
  annotation.variable.name = strdup (symbol->getName().c_str ());
  ^~~~~~~~~~
  Partition
CodeXMLParse.cpp:179:5: error: ‘R_CODEMETA_TYPE_FUNCTION_PARAMETER’ was not declared in this scope
   ? R_CODEMETA_TYPE_FUNCTION_PARAMETER
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CodeXMLParse.cpp:179:5: note: suggested alternative: ‘R_META_TYPE_FORMAT’
   ? R_CODEMETA_TYPE_FUNCTION_PARAMETER
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     R_META_TYPE_FORMAT
CodeXMLParse.cpp:180:5: error: ‘R_CODEMETA_TYPE_LOCAL_VARIABLE’ was not declared in this scope
   : R_CODEMETA_TYPE_LOCAL_VARIABLE;
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CodeXMLParse.cpp:180:5: note: suggested alternative: ‘R_META_TYPE_VARTYPE’
   : R_CODEMETA_TYPE_LOCAL_VARIABLE;
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     R_META_TYPE_VARTYPE
CodeXMLParse.cpp:181:7: error: request for member ‘push_back’ in ‘* out’, which is of non-class type ‘int’
  out->push_back (annotation);
       ^~~~~~~~~
CodeXMLParse.cpp: At global scope:
CodeXMLParse.cpp:40:85: error: ‘RCodeMetaItem’ was not declared in this scope
 #define ANNOTATOR_PARAMS pugi::xml_node node, ParseCodeXMLContext *ctx, std::vector<RCodeMetaItem> *out
                                                                                     ^
CodeXMLParse.cpp:184:23: note: in expansion of macro ‘ANNOTATOR_PARAMS’
 void AnnotateVariable(ANNOTATOR_PARAMS) {
                       ^~~~~~~~~~~~~~~~
CodeXMLParse.cpp:40:85: note: suggested alternative: ‘RAnalMetaItem’
 #define ANNOTATOR_PARAMS pugi::xml_node node, ParseCodeXMLContext *ctx, std::vector<RCodeMetaItem> *out
                                                                                     ^
CodeXMLParse.cpp:184:23: note: in expansion of macro ‘ANNOTATOR_PARAMS’
 void AnnotateVariable(ANNOTATOR_PARAMS) {
                       ^~~~~~~~~~~~~~~~
CodeXMLParse.cpp:40:98: error: template argument 1 is invalid
 #define ANNOTATOR_PARAMS pugi::xml_node node, ParseCodeXMLContext *ctx, std::vector<RCodeMetaItem> *out
                                                                                                  ^
CodeXMLParse.cpp:184:23: note: in expansion of macro ‘ANNOTATOR_PARAMS’
 void AnnotateVariable(ANNOTATOR_PARAMS) {
                       ^~~~~~~~~~~~~~~~
CodeXMLParse.cpp:40:98: error: template argument 2 is invalid
 #define ANNOTATOR_PARAMS pugi::xml_node node, ParseCodeXMLContext *ctx, std::vector<RCodeMetaItem> *out
                                                                                                  ^
CodeXMLParse.cpp:184:23: note: in expansion of macro ‘ANNOTATOR_PARAMS’
 void AnnotateVariable(ANNOTATOR_PARAMS) {
                       ^~~~~~~~~~~~~~~~
CodeXMLParse.cpp:40:85: error: ‘RCodeMetaItem’ was not declared in this scope
 #define ANNOTATOR_PARAMS pugi::xml_node node, ParseCodeXMLContext *ctx, std::vector<RCodeMetaItem> *out
                                                                                     ^
CodeXMLParse.cpp:220:58: note: in expansion of macro ‘ANNOTATOR_PARAMS’
 static const std::map<std::string, std::vector <void (*)(ANNOTATOR_PARAMS)> > annotators = {
                                                          ^~~~~~~~~~~~~~~~
CodeXMLParse.cpp:40:85: note: suggested alternative: ‘RAnalMetaItem’
 #define ANNOTATOR_PARAMS pugi::xml_node node, ParseCodeXMLContext *ctx, std::vector<RCodeMetaItem> *out
                                                                                     ^
CodeXMLParse.cpp:220:58: note: in expansion of macro ‘ANNOTATOR_PARAMS’
 static const std::map<std::string, std::vector <void (*)(ANNOTATOR_PARAMS)> > annotators = {
                                                          ^~~~~~~~~~~~~~~~
CodeXMLParse.cpp:40:98: error: template argument 1 is invalid
 #define ANNOTATOR_PARAMS pugi::xml_node node, ParseCodeXMLContext *ctx, std::vector<RCodeMetaItem> *out
                                                                                                  ^
CodeXMLParse.cpp:220:58: note: in expansion of macro ‘ANNOTATOR_PARAMS’
 static const std::map<std::string, std::vector <void (*)(ANNOTATOR_PARAMS)> > annotators = {
                                                          ^~~~~~~~~~~~~~~~
CodeXMLParse.cpp:40:98: error: template argument 2 is invalid
 #define ANNOTATOR_PARAMS pugi::xml_node node, ParseCodeXMLContext *ctx, std::vector<RCodeMetaItem> *out
                                                                                                  ^
CodeXMLParse.cpp:220:58: note: in expansion of macro ‘ANNOTATOR_PARAMS’
 static const std::map<std::string, std::vector <void (*)(ANNOTATOR_PARAMS)> > annotators = {
                                                          ^~~~~~~~~~~~~~~~
CodeXMLParse.cpp:241:92: error: ‘RCodeMeta’ has not been declared
 static void ParseNode(pugi::xml_node node, ParseCodeXMLContext *ctx, std::ostream &stream, RCodeMeta *code) {
                                                                                            ^~~~~~~~~
CodeXMLParse.cpp: In function ‘void ParseNode(pugi::xml_node, ParseCodeXMLContext*, std::ostream&, int*)’:
CodeXMLParse.cpp:248:14: error: ‘RCodeMetaItem’ was not declared in this scope
  std::vector<RCodeMetaItem> annotations;
              ^~~~~~~~~~~~~
CodeXMLParse.cpp:248:14: note: suggested alternative: ‘RAnalMetaItem’
  std::vector<RCodeMetaItem> annotations;
              ^~~~~~~~~~~~~
              RAnalMetaItem
CodeXMLParse.cpp:248:27: error: template argument 1 is invalid
  std::vector<RCodeMetaItem> annotations;
                           ^
CodeXMLParse.cpp:248:27: error: template argument 2 is invalid
CodeXMLParse.cpp:264:28: error: ‘begin’ was not declared in this scope
    for (auto &annotation : annotations) {
                            ^~~~~~~~~~~
CodeXMLParse.cpp:264:28: note: suggested alternatives:
In file included from /usr/include/c++/7/vector:66:0,
                 from ../ghidra-native/src/decompiler/capability.hh:22,
                 from ../ghidra-native/src/decompiler/architecture.hh:21,
                 from ../ghidra-native/src/decompiler/funcdata.hh:22,
                 from CodeXMLParse.cpp:9:
/usr/include/c++/7/bits/range_access.h:87:5: note:   ‘std::begin’
     begin(_Tp (&__arr)[_Nm])
     ^~~~~
/usr/include/c++/7/bits/range_access.h:87:5: note:   ‘std::begin’
CodeXMLParse.cpp:264:28: error: ‘end’ was not declared in this scope
    for (auto &annotation : annotations) {
                            ^~~~~~~~~~~
CodeXMLParse.cpp:264:28: note: suggested alternatives:
In file included from /usr/include/c++/7/vector:66:0,
                 from ../ghidra-native/src/decompiler/capability.hh:22,
                 from ../ghidra-native/src/decompiler/architecture.hh:21,
                 from ../ghidra-native/src/decompiler/funcdata.hh:22,
                 from CodeXMLParse.cpp:9:
/usr/include/c++/7/bits/range_access.h:97:5: note:   ‘std::end’
     end(_Tp (&__arr)[_Nm])
     ^~~
/usr/include/c++/7/bits/range_access.h:97:5: note:   ‘std::end’
CodeXMLParse.cpp:285:26: error: ‘begin’ was not declared in this scope
  for (auto &annotation : annotations) {
                          ^~~~~~~~~~~
CodeXMLParse.cpp:285:26: note: suggested alternatives:
In file included from /usr/include/c++/7/vector:66:0,
                 from ../ghidra-native/src/decompiler/capability.hh:22,
                 from ../ghidra-native/src/decompiler/architecture.hh:21,
                 from ../ghidra-native/src/decompiler/funcdata.hh:22,
                 from CodeXMLParse.cpp:9:
/usr/include/c++/7/bits/range_access.h:87:5: note:   ‘std::begin’
     begin(_Tp (&__arr)[_Nm])
     ^~~~~
/usr/include/c++/7/bits/range_access.h:87:5: note:   ‘std::begin’
CodeXMLParse.cpp:285:26: error: ‘end’ was not declared in this scope
  for (auto &annotation : annotations) {
                          ^~~~~~~~~~~
CodeXMLParse.cpp:285:26: note: suggested alternatives:
In file included from /usr/include/c++/7/vector:66:0,
                 from ../ghidra-native/src/decompiler/capability.hh:22,
                 from ../ghidra-native/src/decompiler/architecture.hh:21,
                 from ../ghidra-native/src/decompiler/funcdata.hh:22,
                 from CodeXMLParse.cpp:9:
/usr/include/c++/7/bits/range_access.h:97:5: note:   ‘std::end’
     end(_Tp (&__arr)[_Nm])
     ^~~
/usr/include/c++/7/bits/range_access.h:97:5: note:   ‘std::end’
CodeXMLParse.cpp:287:18: error: ‘item’ was not declared in this scope
   RCodeMetaItem *item = r_codemeta_item_clone (&annotation);
                  ^~~~
CodeXMLParse.cpp:287:18: note: suggested alternative: ‘intm’
   RCodeMetaItem *item = r_codemeta_item_clone (&annotation);
                  ^~~~
                  intm
CodeXMLParse.cpp:287:25: error: ‘r_codemeta_item_clone’ was not declared in this scope
   RCodeMetaItem *item = r_codemeta_item_clone (&annotation);
                         ^~~~~~~~~~~~~~~~~~~~~
CodeXMLParse.cpp:287:25: note: suggested alternative: ‘r_meta_item_size’
   RCodeMetaItem *item = r_codemeta_item_clone (&annotation);
                         ^~~~~~~~~~~~~~~~~~~~~
                         r_meta_item_size
CodeXMLParse.cpp:288:3: error: ‘r_codemeta_add_item’ was not declared in this scope
   r_codemeta_add_item (code, item);
   ^~~~~~~~~~~~~~~~~~~
c++ -fPIC -I../third-party/pugixml/src/ -std=c++11 -I/home/ricardo/.local/share/radare2/prefix/include -DR2GHIDRA_SLEIGHHOME_DEFAULT=\"/home/ricardo/.local/share/radare2/plugins/r2ghidra_sleigh\" -w -fPIC -I../ghidra-native/src/decompiler -I. -I/usr/local/include/libr -I/usr/local/include/libr/sdb -c RCoreMutex.cpp
CodeXMLParse.cpp: At global scope:
CodeXMLParse.cpp:297:7: error: ‘RCodeMeta’ does not name a type; did you mean ‘RCorePuts’?
 R_API RCodeMeta *ParseCodeXML(Funcdata *func, const char *xml) {
       ^~~~~~~~~
       RCorePuts
c++ -fPIC -I../third-party/pugixml/src/ -std=c++11 -I/home/ricardo/.local/share/radare2/prefix/include -DR2GHIDRA_SLEIGHHOME_DEFAULT=\"/home/ricardo/.local/share/radare2/plugins/r2ghidra_sleigh\" -w -fPIC -I../ghidra-native/src/decompiler -I. -I/usr/local/include/libr -I/usr/local/include/libr/sdb -c SleighAnalValue.cpp
c++ -fPIC -I../third-party/pugixml/src/ -std=c++11 -I/home/ricardo/.local/share/radare2/prefix/include -DR2GHIDRA_SLEIGHHOME_DEFAULT=\"/home/ricardo/.local/share/radare2/plugins/r2ghidra_sleigh\" -w -fPIC -I../ghidra-native/src/decompiler -I. -I/usr/local/include/libr -I/usr/local/include/libr/sdb -c SleighAsm.cpp
Makefile:88: recipe for target 'CodeXMLParse.o' failed
make: *** [CodeXMLParse.o] Error 1
make: ** Esperando que outros processos terminem.
make: Leaving directory '/home/ricardo/.local/share/radare2/r2pm/git/r2ghidra/src'
ERROR: make

from r2ghidra.

ricardojlrufino avatar ricardojlrufino commented on June 23, 2024

i fix error installing the r2 version 5.6.0 and 5.6.1
but r2 not working for debug remote ARM
r2 -a arm -e dbg.exe.path=$APP_DEBUG -d gdb://192.168.15.57:2000
[1] 12115 segmentation fault (core dumped) r2 -a arm -e dbg.exe.path=$APP_DEBUG -d gdb://192.168.15.57:2000

from r2ghidra.

trufae avatar trufae commented on June 23, 2024

Is the old r2 uninstalled? Can you show the backtrace? I cant reproduce this segfault

from r2ghidra.

ricardojlrufino avatar ricardojlrufino commented on June 23, 2024

The error only happened with the remote debug, with the static analysis it didn't give this error.

from r2ghidra.

ricardojlrufino avatar ricardojlrufino commented on June 23, 2024

I ended up downgrading it and now it's working.
r2 -v
radare2 5.4.2 27395 @ linux-x86-64 git.5.6.0
commit: 84e6cc6a21ec1c816d4d3eb3510d2cdc94330414 build: 2022-02-08__23:19:26

now remote debug arm is working:
r2 -a arm -e dbg.exe.path=$APP_DEBUG -d gdb://192.168.15.57:2000

from r2ghidra.

ricardojlrufino avatar ricardojlrufino commented on June 23, 2024

I ended up downgrading it and now it's working.

my command is correct. I ended up downgrading it and now it's working.

from r2ghidra.

trufae avatar trufae commented on June 23, 2024

Closing this ticket as long as the problem is solved, but i dont get why latest r2 doesnt work for you, as it does for me in all mymachines as well as other people testing it.

Can you please post the crash backtrace (compile r2 +r2g with asan) or use lldb/gdb to get the backtrace at the momemtnt of the segfault.

thank you

from r2ghidra.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.