From dd92314b857778772e9e5ea8131c14d11df7f10b Mon Sep 17 00:00:00 2001 From: ghidorahrex Date: Fri, 26 Jul 2019 15:44:46 -0400 Subject: [PATCH] Corrected pcode_test.h function pointer declaration in TestInfo struct. --- .../SleighDevTools/pcodetest/c_src/pcode_test.h | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Ghidra/Extensions/SleighDevTools/pcodetest/c_src/pcode_test.h b/Ghidra/Extensions/SleighDevTools/pcodetest/c_src/pcode_test.h index d278d0ff63..6787ee493b 100644 --- a/Ghidra/Extensions/SleighDevTools/pcodetest/c_src/pcode_test.h +++ b/Ghidra/Extensions/SleighDevTools/pcodetest/c_src/pcode_test.h @@ -29,9 +29,6 @@ #define PACKED_STRUCTURE #endif -typedef i4 (*entryFunc)(i4 * val); -typedef i4 (*breakOn)(void); -typedef i4 (*breakOnD)(const char *file, int line, const char *func); typedef i4 (*testFuncPtr)(void); typedef struct PACKED_STRUCTURE FunctionInfo @@ -46,9 +43,9 @@ typedef struct PACKED_STRUCTURE TestInfo char id[8]; /* id constains a "Magic Number" which will allow us to find this in a binary */ u4 ptrSz; /* how many bytes in a pointer? */ u4 byteOrder; /* value 0x01020304 used to detect endianess */ - breakOn onPass; /* address of breakOnPass function, (where it goes on test pass) */ - breakOn onError; /* address of breakOnError function, (where it goes on test failure) */ - breakOnD onDone; /* address of breakOnDone function, (where it goes when all test done) */ + void *onPass; /* address of breakOnPass function, (where it goes on test pass) */ + void *onError; /* address of breakOnError function, (where it goes on test failure) */ + void *onDone; /* address of breakOnDone function, (where it goes when all test done) */ u4 numpass; /* How many test passed */ u4 numfail; /* How many test failed */ u4 lastTestPos; /* Last test index number */