possibility to not update the table offset in the HexDump
This commit is contained in:
		
							parent
							
								
									1ca296e237
								
							
						
					
					
						commit
						42a15994d5
					
				| 
						 | 
				
			
			@ -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)
 | 
			
		||||
    {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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();
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue