1
0
Fork 0

possibility to not update the table offset in the HexDump

This commit is contained in:
mrexodia 2015-11-27 19:32:51 +01:00
parent 1ca296e237
commit 42a15994d5
2 changed files with 7 additions and 5 deletions

View File

@ -46,7 +46,7 @@ void HexDump::updateFonts()
setFont(ConfigFont("HexDump"));
}
void HexDump::printDumpAt(dsint parVA, bool select, bool repaint)
void HexDump::printDumpAt(dsint parVA, bool select, bool repaint, bool updateTableOffset)
{
dsint wBase = DbgMemFindBaseAddr(parVA, 0); //get memory base
dsint wSize = DbgMemGetPageSize(wBase); //get page size
@ -71,9 +71,11 @@ void HexDump::printDumpAt(dsint parVA, bool select, bool repaint)
mMemPage->setAttributes(wBase, wSize); // Set base and size (Useful when memory page changed)
setTableOffset(-1); //make sure the requested address is always first
setTableOffset((wRVA + mByteOffset) / wBytePerRowCount); //change the displayed offset
if(updateTableOffset)
{
setTableOffset(-1); //make sure the requested address is always first
setTableOffset((wRVA + mByteOffset) / wBytePerRowCount); //change the displayed offset
}
if(select)
{

View File

@ -130,7 +130,7 @@ public:
void appendResetDescriptor(int width, QString title, bool clickable, ColumnDescriptor_t descriptor);
void clearDescriptors();
void printDumpAt(dsint parVA, bool select, bool repaint = true);
void printDumpAt(dsint parVA, bool select, bool repaint = true, bool updateTableOffset = true);
duint rvaToVa(dsint rva);
duint getTableOffsetRva();