mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 19:42:36 +02:00
Merge remote-tracking branch 'origin/GP-3603_ghizard_PDB_Increase_max_page_size' into patch
This commit is contained in:
commit
c39f0c0103
2 changed files with 11 additions and 0 deletions
|
@ -150,6 +150,12 @@ public abstract class AbstractMsf implements Msf {
|
||||||
this.pdbOptions = Objects.requireNonNull(pdbOptions, "PdbOptions may not be null");
|
this.pdbOptions = Objects.requireNonNull(pdbOptions, "PdbOptions may not be null");
|
||||||
// Do initial configuration with largest possible page size. ConfigureParameters will
|
// Do initial configuration with largest possible page size. ConfigureParameters will
|
||||||
// be called again later with the proper pageSize set.
|
// be called again later with the proper pageSize set.
|
||||||
|
// GP-3603... considered changing the pagesize for the initial header read from
|
||||||
|
// 0x1000 to 0x2000, but I don't think there is anything needed beyond 0x1000 offset
|
||||||
|
// in terms of header information, and if we did change it, then we'd run the risk
|
||||||
|
// of an extremely small PDB (pagesize of 0x200 and less than 16 pages) not being
|
||||||
|
// able to be read (initial header read would fail). Determining if such a small
|
||||||
|
// PDB is possible would be more work than I fell necessary at this time.
|
||||||
pageSize = 0x1000;
|
pageSize = 0x1000;
|
||||||
configureParameters();
|
configureParameters();
|
||||||
// Create components.
|
// Create components.
|
||||||
|
@ -217,6 +223,7 @@ public abstract class AbstractMsf implements Msf {
|
||||||
* Returns the file reader
|
* Returns the file reader
|
||||||
* @return the file reader
|
* @return the file reader
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public MsfFileReader getFileReader() {
|
public MsfFileReader getFileReader() {
|
||||||
return fileReader;
|
return fileReader;
|
||||||
}
|
}
|
||||||
|
|
|
@ -92,6 +92,10 @@ public class Msf700 extends AbstractMsf {
|
||||||
log2PageSize = 12;
|
log2PageSize = 12;
|
||||||
freePageMapNumSequentialPage = 1;
|
freePageMapNumSequentialPage = 1;
|
||||||
break;
|
break;
|
||||||
|
case 0x2000:
|
||||||
|
log2PageSize = 13;
|
||||||
|
freePageMapNumSequentialPage = 1;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
throw new PdbException(String.format("Unknown page size: 0X%08X", pageSize));
|
throw new PdbException(String.format("Unknown page size: 0X%08X", pageSize));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue