Skip to content

Commit 27f316f

Browse files
authored
Merge pull request #64 from DaCodeChick/main
Fixed for Ghidra 11.3.2
2 parents 3b876dd + 7e8e50f commit 27f316f

File tree

5 files changed

+18
-15
lines changed

5 files changed

+18
-15
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ jobs:
1010
build:
1111
runs-on: ubuntu-latest
1212
env:
13-
GHIDRA_VERSION: 11.3.1
14-
GHIDRA_DATE: 20250219
13+
GHIDRA_VERSION: 11.3.2
14+
GHIDRA_DATE: 20250415
1515
GHIDRA_LIBS: >-
1616
Features/Base/lib/Base.jar
1717
Features/Decompiler/lib/Decompiler.jar

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,6 @@ mvnw.cmd
4949
hs_err_pid*
5050
replay_pid*
5151

52+
# Third party JAR files from Ghidra
53+
lib/*.jar
54+

pom.xml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,56 +15,56 @@
1515
<dependency>
1616
<groupId>ghidra</groupId>
1717
<artifactId>Generic</artifactId>
18-
<version>11.3.1</version>
18+
<version>11.3.2</version>
1919
<scope>system</scope>
2020
<systemPath>${project.basedir}/lib/Generic.jar</systemPath>
2121
</dependency>
2222
<dependency>
2323
<groupId>ghidra</groupId>
2424
<artifactId>SoftwareModeling</artifactId>
25-
<version>11.3.1</version>
25+
<version>11.3.2</version>
2626
<scope>system</scope>
2727
<systemPath>${project.basedir}/lib/SoftwareModeling.jar</systemPath>
2828
</dependency>
2929
<dependency>
3030
<groupId>ghidra</groupId>
3131
<artifactId>Project</artifactId>
32-
<version>11.3.1</version>
32+
<version>11.3.2</version>
3333
<scope>system</scope>
3434
<systemPath>${project.basedir}/lib/Project.jar</systemPath>
3535
</dependency>
3636
<dependency>
3737
<groupId>ghidra</groupId>
3838
<artifactId>Docking</artifactId>
39-
<version>11.3.1</version>
39+
<version>11.3.2</version>
4040
<scope>system</scope>
4141
<systemPath>${project.basedir}/lib/Docking.jar</systemPath>
4242
</dependency>
4343
<dependency>
4444
<groupId>ghidra</groupId>
4545
<artifactId>Decompiler</artifactId>
46-
<version>11.3.1</version>
46+
<version>11.3.2</version>
4747
<scope>system</scope>
4848
<systemPath>${project.basedir}/lib/Decompiler.jar</systemPath>
4949
</dependency>
5050
<dependency>
5151
<groupId>ghidra</groupId>
5252
<artifactId>Utility</artifactId>
53-
<version>11.3.1</version>
53+
<version>11.3.2</version>
5454
<scope>system</scope>
5555
<systemPath>${project.basedir}/lib/Utility.jar</systemPath>
5656
</dependency>
5757
<dependency>
5858
<groupId>ghidra</groupId>
5959
<artifactId>Base</artifactId>
60-
<version>11.3.1</version>
60+
<version>11.3.2</version>
6161
<scope>system</scope>
6262
<systemPath>${project.basedir}/lib/Base.jar</systemPath>
6363
</dependency>
6464
<dependency>
6565
<groupId>ghidra</groupId>
6666
<artifactId>Gui</artifactId>
67-
<version>11.3.1</version>
67+
<version>11.3.2</version>
6868
<scope>system</scope>
6969
<systemPath>${project.basedir}/lib/Gui.jar</systemPath>
7070
</dependency>

src/main/java/com/lauriewired/GhidraMCPPlugin.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ private boolean renameFunction(String oldName, String newName) {
530530
Msg.error(this, "Error renaming function", e);
531531
}
532532
finally {
533-
program.endTransaction(tx, successFlag.get());
533+
successFlag.set(program.endTransaction(tx, successFlag.get()));
534534
}
535535
});
536536
}
@@ -652,7 +652,7 @@ private String renameVariableInFunction(String functionName, String oldVarName,
652652
Msg.error(this, "Failed to rename variable", e);
653653
}
654654
finally {
655-
program.endTransaction(tx, true);
655+
successFlag.set(program.endTransaction(tx, true));
656656
}
657657
});
658658
} catch (InterruptedException | InvocationTargetException e) {
@@ -875,7 +875,7 @@ private boolean setCommentAtAddress(String addressStr, String comment, int comme
875875
} catch (Exception e) {
876876
Msg.error(this, "Error setting " + transactionName.toLowerCase(), e);
877877
} finally {
878-
program.endTransaction(tx, success.get());
878+
success.set(program.endTransaction(tx, success.get()));
879879
}
880880
});
881881
} catch (InterruptedException | InvocationTargetException e) {

src/main/resources/extension.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ name=GhidraMCP
22
description=A plugin that runs an embedded HTTP server to expose program data.
33
author=LaurieWired
44
createdOn=2025-03-22
5-
version=11.3.1
6-
ghidraVersion=11.3.1
5+
version=11.3.2
6+
ghidraVersion=11.3.2

0 commit comments

Comments
 (0)