mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-05-31 02:36:29 +08:00
Merge remote-tracking branch 'origin/GP-1248_ryanmkurtz_ContinuesInterceptor' into patch
This commit is contained in:
@@ -30,5 +30,5 @@
|
||||
<stringAttribute key="org.eclipse.jdt.launching.MODULE_NAME" value="Framework Utility"/>
|
||||
<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="ghidra.GhidraRun"/>
|
||||
<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 -DContinuesInterceptor.disabled=true --illegal-access=permit"/>
|
||||
<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 --illegal-access=permit"/>
|
||||
</launchConfiguration>
|
||||
|
||||
@@ -21,7 +21,7 @@ import net.sf.cglib.proxy.Enhancer;
|
||||
|
||||
public class ContinuesFactory implements GenericFactory {
|
||||
|
||||
private static final boolean disabled = Boolean.getBoolean("ContinuesInterceptor.disabled");
|
||||
private static final boolean enabled = Boolean.getBoolean("ContinuesInterceptor.enabled");
|
||||
|
||||
private ExceptionHandler exceptionHandler;
|
||||
|
||||
@@ -36,7 +36,7 @@ public class ContinuesFactory implements GenericFactory {
|
||||
public Object create(Class<?> type, Object... args) {
|
||||
try {
|
||||
Object thing;
|
||||
if (disabled) {
|
||||
if (!enabled) {
|
||||
Constructor<?> c = type.getConstructor(new Class<?>[0]);
|
||||
thing = c.newInstance(args);
|
||||
}
|
||||
|
||||
@@ -101,9 +101,9 @@ VMARGS=--illegal-access=permit
|
||||
#VMARGS=-Ddisable.alternating.row.colors=true
|
||||
|
||||
# The ContinuesInterceptor allows the import process to proceed if parsing corrupted headers
|
||||
# generates uncaught exceptions. Disabling it can be helpful when trying to debug what went
|
||||
# wrong because the ContinuesIntercepter affects the usefulness of the stack trace.
|
||||
#VMARGS=-DContinuesInterceptor.disabled=true
|
||||
# generates uncaught exceptions. Its usage has been deprecated and will be removed in a future
|
||||
# release of Ghidra. It is disabled by default.
|
||||
#VMARGS=-DContinuesInterceptor.enabled=true
|
||||
|
||||
# Limit on XML parsing. See https://docs.oracle.com/javase/tutorial/jaxp/limits/limits.html
|
||||
#VMARGS=-Djdk.xml.totalEntitySizeLimit=50000000
|
||||
|
||||
Reference in New Issue
Block a user