Ghidra is a software reverse engineering (SRE) framework
GP-0: Adding Headless Eclipse run configuration. It provides no command line arguments...those have to be added manually.
Ryan Kurtze6ce51d81dba
diff --git a/Ghidra/Features/Base/.launch/Headless.launch b/Ghidra/Features/Base/.launch/Headless.launchnew file mode 100644index 0000000000..c2b9e1449e--- /dev/null+++ b/Ghidra/Features/Base/.launch/Headless.launch@@ -0,0 +1,35 @@+<?xml version="1.0" encoding="UTF-8" standalone="no"?>+<launchConfiguration type="org.eclipse.jdt.launching.localJavaApplication">+ <stringAttribute key="bad_container_name" value="/_Ghidra Support/eclipse"/>+ <booleanAttribute key="org.eclipse.debug.core.ATTR_FORCE_SYSTEM_CONSOLE_ENCODING" value="false"/>+ <listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">+ <listEntry value="/Framework Utility/src/main/java/ghidra/Ghidra.java"/>+ </listAttribute>+ <listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">+ <listEntry value="1"/>+ </listAttribute>+ <mapAttribute key="org.eclipse.debug.core.preferred_launchers">+ <mapEntry key="[debug]" value="org.eclipse.jdt.launching.localJavaApplication"/>+ <mapEntry key="[run]" value="org.eclipse.jdt.launching.localJavaApplication"/>+ </mapAttribute>+ <stringAttribute key="org.eclipse.debug.core.source_locator_id" value="org.eclipse.jdt.launching.sourceLocator.JavaSourceLookupDirector"/>+ <stringAttribute key="org.eclipse.debug.core.source_locator_memento" value="<?xml version="1.0" encoding="UTF-8" standalone="no"?> <sourceLookupDirector> <sourceContainers duplicates="false"> <container memento="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;classpathContainer path=&quot;org.eclipse.jdt.launching.JRE_CONTAINER&quot;/&gt;&#13;&#10;" typeId="org.eclipse.jdt.launching.sourceContainer.classpathContainer"/> </sourceContainers> </sourceLookupDirector> "/>+ <listAttribute key="org.eclipse.debug.ui.favoriteGroups">+ <listEntry value="org.eclipse.debug.ui.launchGroup.debug"/>+ <listEntry value="org.eclipse.debug.ui.launchGroup.run"/>+ </listAttribute>+ <booleanAttribute key="org.eclipse.jdt.launching.ATTR_ATTR_USE_ARGFILE" value="false"/>+ <booleanAttribute key="org.eclipse.jdt.launching.ATTR_SHOW_CODEDETAILS_IN_EXCEPTION_MESSAGES" value="true"/>+ <booleanAttribute key="org.eclipse.jdt.launching.ATTR_USE_CLASSPATH_ONLY_JAR" value="false"/>+ <booleanAttribute key="org.eclipse.jdt.launching.ATTR_USE_START_ON_FIRST_THREAD" value="true"/>+ <listAttribute key="org.eclipse.jdt.launching.CLASSPATH">+ <listEntry value="<?xml version="1.0" encoding="UTF-8" standalone="no"?> <runtimeClasspathEntry path="5" projectName="Framework Utility" type="1"/> "/>+ </listAttribute>+ <booleanAttribute key="org.eclipse.jdt.launching.DEFAULT_CLASSPATH" value="false"/>+ <stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="ghidra.Ghidra"/>+ <listAttribute key="org.eclipse.jdt.launching.MODULEPATH"/>+ <stringAttribute key="org.eclipse.jdt.launching.MODULE_NAME" value="Framework Utility"/>+ <stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="ghidra.app.util.headless.AnalyzeHeadless"/>+ <stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="Framework Utility"/>+ <stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-XX:+IgnoreUnrecognizedVMOptions -Djava.system.class.loader=ghidra.GhidraClassLoader -Xshare:off -Dfile.encoding=UTF8 -Duser.country=US -Duser.language=en -Dsun.java2d.pmoffscreen=false -Dsun.java2d.xrender=true -Dsun.java2d.d3d=false -Xdock:name="Ghidra" -Dvisualvm.display.name=Ghidra -Dpython.console.encoding=UTF-8"/>+</launchConfiguration>diff --git a/Ghidra/Features/Base/certification.manifest b/Ghidra/Features/Base/certification.manifestindex ce192cb3ef..59208a051b 100644--- a/Ghidra/Features/Base/certification.manifest+++ b/Ghidra/Features/Base/certification.manifest@@ -11,6 +11,7 @@.gitignore||GHIDRA||||END|.launch/Ghidra Code Coverage.launch||GHIDRA||||END|.launch/Ghidra.launch||GHIDRA||||END|+.launch/Headless.launch||GHIDRA||||END|Module.manifest||GHIDRA||||END|data/ElfFunctionsThatDoNotReturn||GHIDRA||||END|data/ExtensionPoint.manifest||GHIDRA||||END|