mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-06-02 07:48:16 +08:00
Merge remote-tracking branch 'origin/GP-0-dragonmacher-test-fixes-3-25-26'
This commit is contained in:
@@ -381,18 +381,23 @@ public class FakeSharedProject {
|
|||||||
ProjectLocator projectLocator = getProjectData().getProjectLocator();
|
ProjectLocator projectLocator = getProjectData().getProjectLocator();
|
||||||
programManager.disposeOpenPrograms();
|
programManager.disposeOpenPrograms();
|
||||||
|
|
||||||
String projectName = gProject.getProject().getName();
|
String projectName = "<No project>";
|
||||||
|
Project project = gProject.getProject();
|
||||||
|
if (project != null) {
|
||||||
|
projectName = project.getName();
|
||||||
|
}
|
||||||
|
|
||||||
gProject.close();
|
gProject.close();
|
||||||
|
|
||||||
File projectDir = projectLocator.getProjectDir();
|
File projectDir = projectLocator.getProjectDir();
|
||||||
if (projectDir.exists()) {
|
if (projectDir.exists()) {
|
||||||
boolean success = FileUtilities.deleteDir(projectDir);
|
boolean success = FileUtilities.deleteDir(projectDir);
|
||||||
if (!success) {
|
if (!success) {
|
||||||
Msg.error(this, "Unable to delete test project dir '%s' in %s".formatted(projectName, projectDir));
|
Msg.error(this, "Unable to delete test project dir '%s' in %s"
|
||||||
|
.formatted(projectName, projectDir));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
File markerFile = projectLocator.getMarkerFile();
|
File markerFile = projectLocator.getMarkerFile();
|
||||||
if (markerFile.exists()) {
|
if (markerFile.exists()) {
|
||||||
boolean success = markerFile.delete();
|
boolean success = markerFile.delete();
|
||||||
|
|||||||
+2
-2
@@ -521,6 +521,7 @@ public class FunctionSignatureStringable extends Stringable {
|
|||||||
applyInline(destFunction, isInline, markupOptions);
|
applyInline(destFunction, isInline, markupOptions);
|
||||||
applyNoReturn(destFunction, hasNoReturn, markupOptions);
|
applyNoReturn(destFunction, hasNoReturn, markupOptions);
|
||||||
|
|
||||||
|
int origDestParamCount = destFunction.getParameterCount(); // must get before modifying
|
||||||
applyParameterTypes(destFunction, markupOptions, forceApply);
|
applyParameterTypes(destFunction, markupOptions, forceApply);
|
||||||
|
|
||||||
boolean hasSrcVarArgs = hasVarargs;
|
boolean hasSrcVarArgs = hasVarargs;
|
||||||
@@ -535,8 +536,7 @@ public class FunctionSignatureStringable extends Stringable {
|
|||||||
forceParameterNames(destFunction);
|
forceParameterNames(destFunction);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
int paramCount = destFunction.getParameterCount();
|
applyParameterNames(destFunction, markupOptions, true, origDestParamCount);
|
||||||
applyParameterNames(destFunction, markupOptions, true, paramCount);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
CommentChoices commentChoice =
|
CommentChoices commentChoice =
|
||||||
|
|||||||
@@ -198,8 +198,8 @@ public class HistoryList<T> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void doGoToIndex(int index) {
|
private void doGoToIndex(int index) {
|
||||||
historyIndex = index;
|
|
||||||
T leaving = getCurrentHistoryItem();
|
T leaving = getCurrentHistoryItem();
|
||||||
|
historyIndex = index;
|
||||||
T t = historyStack.get(index);
|
T t = historyStack.get(index);
|
||||||
|
|
||||||
dropNull();
|
dropNull();
|
||||||
|
|||||||
Reference in New Issue
Block a user