@@ -1386,15 +1386,16 @@ static bool cbModCallFind(Capstone* disasm, BASIC_INSTRUCTION_INFO* basicinfo, R
1386
1386
{
1387
1387
GuiReferenceInitialize (refinfo->name );
1388
1388
GuiReferenceAddColumn (2 * sizeof (duint), " Address" );
1389
- GuiReferenceAddColumn (0 , " Disassembly" );
1389
+ GuiReferenceAddColumn (20 , " Disassembly" );
1390
+ GuiReferenceAddColumn (MAX_LABEL_SIZE, " Destination" );
1390
1391
GuiReferenceReloadData ();
1391
1392
return true ;
1392
1393
}
1393
1394
bool found = false ;
1395
+ char label[MAX_LABEL_SIZE] = " " ;
1394
1396
if (basicinfo->call ) // we are looking for calls
1395
1397
{
1396
1398
duint ptr = basicinfo->addr > 0 ? basicinfo->addr : basicinfo->memory .value ;
1397
- char label[MAX_LABEL_SIZE] = " " ;
1398
1399
found = DbgGetLabelAt (ptr, SEG_DEFAULT, label) && !LabelGet (ptr, label); // a non-user label
1399
1400
}
1400
1401
if (found)
@@ -1404,10 +1405,16 @@ static bool cbModCallFind(Capstone* disasm, BASIC_INSTRUCTION_INFO* basicinfo, R
1404
1405
GuiReferenceSetRowCount (refinfo->refcount + 1 );
1405
1406
GuiReferenceSetCellContent (refinfo->refcount , 0 , addrText);
1406
1407
char disassembly[GUI_MAX_DISASSEMBLY_SIZE] = " " ;
1407
- if (GuiGetDisassembly ((duint)disasm->Address (), disassembly))
1408
+ if (GuiGetDisassembly ((duint)disasm->Address (), disassembly))
1409
+ {
1408
1410
GuiReferenceSetCellContent (refinfo->refcount , 1 , disassembly);
1411
+ GuiReferenceSetCellContent (refinfo->refcount , 2 , label);
1412
+ }
1409
1413
else
1414
+ {
1410
1415
GuiReferenceSetCellContent (refinfo->refcount , 1 , disasm->InstructionText ().c_str ());
1416
+ GuiReferenceSetCellContent (refinfo->refcount , 2 , label);
1417
+ }
1411
1418
}
1412
1419
return found;
1413
1420
}
0 commit comments