GP-5025 Fix for comment parsing and commenting out of #ifdefed out lines

This commit is contained in:
emteere 2025-01-22 22:16:52 +00:00
parent 40603ee962
commit 553d7103b7
5 changed files with 113 additions and 47 deletions

View file

@ -74,12 +74,9 @@ public class CreateUEFIGDTArchivesScript extends GhidraScript {
String dataTypeFile = outputDir + File.separator + gdtName + ".gdt";
File f = getArchiveFile(dataTypeFile);
FileDataTypeManager dtMgr = FileDataTypeManager.createFileArchive(f,languageID, compiler);
CParseResults results = CParserUtils.parseHeaderFiles(openTypes, filenames, includePaths, args, dtMgr, monitor);
Msg.info(this, results.getFormattedParseMessage(null));
FileDataTypeManager dtMgr = CParserUtils.parseHeaderFiles(openTypes, filenames,
includePaths, args, f.getAbsolutePath(), languageID, compiler, monitor);
dtMgr.save();
dtMgr.close();