Skip to content

Commit a4b96e9

Browse files
authored
First part of bridge between IDR and IDA
It is possible to create c-header file that can be loaded into IDA, so decompilng will be possible! It is the first part of bridge realization, for testing.
1 parent 7bd8438 commit a4b96e9

File tree

11 files changed

+1531
-171
lines changed

11 files changed

+1531
-171
lines changed

Idr.bpr

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<PROJECT>
44
<MACROS>
55
<VERSION value="BCB.06.00"/>
6-
<PROJECT value="C:\PAPA\IDR\bin\Idr.exe"/>
6+
<PROJECT value="C:\PAPA\IDR\Idr.exe"/>
77
<OBJFILES value="obj\Idr.obj obj\Main.obj obj\TypeInfo.obj obj\StringInfo.obj
88
obj\Explorer.obj obj\KnowledgeBase.obj obj\Disasm.obj obj\Threads.obj
99
obj\InputDlg.obj obj\FindDlg.obj obj\Infos.obj obj\EditFunctionDlg.obj
@@ -203,10 +203,13 @@ Item0=obj
203203
Item1=C:\Program Files\Borland\CBuilder6\Projects\IDR
204204

205205
[HistoryLists\hlFinalOutputDir]
206-
Count=3
207-
Item0=C:\PAPA\IDR\bin
208-
Item1=G:\IDR\
209-
Item2=G:\IDR
206+
Count=6
207+
Item0=C:\PAPA\IDR\
208+
Item1=C:\PAPA\IDR
209+
Item2=C:\PAPA\IDR\bin\
210+
Item3=C:\PAPA\IDR\bin
211+
Item4=G:\IDR\
212+
Item5=G:\IDR
210213

211214
[Debugging]
212215
DebugSourceDirs=$(BCB)\source\vcl

Infos.cpp

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -21,25 +21,6 @@ extern char StringBuf[MAXSTRBUFFER];
2121
//as some statistics for memory leaks detection (remove it when fixed)
2222
long stat_InfosOverride = 0;
2323
//---------------------------------------------------------------------------
24-
int __fastcall FieldsCmpFunction(void *item1, void *item2)
25-
{
26-
PFIELDINFO rec1 = (PFIELDINFO)item1;
27-
PFIELDINFO rec2 = (PFIELDINFO)item2;
28-
if (rec1->Offset > rec2->Offset) return 1;
29-
if (rec1->Offset < rec2->Offset) return -1;
30-
return 0;
31-
}
32-
//---------------------------------------------------------------------------
33-
int __fastcall LocalsCmpFunction(void *item1, void *item2)
34-
{
35-
PLOCALINFO rec1 = (PLOCALINFO)item1;
36-
PLOCALINFO rec2 = (PLOCALINFO)item2;
37-
38-
if (rec1->Ofs > rec2->Ofs) return 1;
39-
if (rec1->Ofs < rec2->Ofs) return -1;
40-
return 0;
41-
}
42-
//---------------------------------------------------------------------------
4324
__fastcall InfoVmtInfo::InfoVmtInfo()
4425
{
4526
interfaces = 0;

0 commit comments

Comments
 (0)