Merge remote-tracking branch 'origin/Ghidra_11.3'

This commit is contained in:
Ryan Kurtz
2025-01-30 06:27:40 -05:00
3 changed files with 8 additions and 4 deletions

View File

@@ -305,8 +305,8 @@ public class DWARFImporter {
try {
sourceManager.addSourceMapEntry(source, sfa.lineNum(), addr, length);
}
catch (AddressOverflowException e) {
String errorString = "AddressOverflowException for source map entry %s %d %s %x %d"
catch (AddressOverflowException | IllegalArgumentException e) {
String errorString = e.getClass().getName() + " for source map entry %s %d %s %x %d"
.formatted(source.getFilename(), sfa.lineNum(), addr.toString(),
sfa.address(), length);
if (numSourceLineErrorReports++ < MAX_NUM_SOURCE_LINE_ERROR_REPORTS) {

View File

@@ -403,14 +403,18 @@ public class GoFuncData implements StructureMarkup<GoFuncData> {
Address startAddr = programContext.getCodeAddress(startpc);
long len = lineEval.getPC() - startpc;
SourceFile sourceFile = new SourceFile(fileName);
try {
SourceFile sourceFile = new SourceFile(fileName);
sfman.addSourceFile(sourceFile);
sfman.addSourceMapEntry(sourceFile, lineNum, startAddr, len);
}
catch (AddressOverflowException e) {
Msg.error(this, "Failed to add source file mapping", e);
}
catch (IllegalArgumentException e) {
// overlapping entry
}
}
}
startpc = lineEval.getPC();

View File

@@ -46,7 +46,7 @@ task ip {
checkExternalLibsInMap(moduleManifestIpMap, p)
// gets the declared external python wheels and verifies they are accounted for in the Module.manifest file
checkExternalPythonWheelsInMap(moduleManifestIpMap, p)
checkExternalPythonWheelsInMap(moduleManifestIpMap, project)
// adds the ip info from the Module.manifest file to the map generated from scanning the module files.
addModuleManifestIp(ipToFileMap, moduleManifestIpMap)