Skip to content

Commit 4a389b0

Browse files
Fix for ghidra 10.2
1 parent 3625398 commit 4a389b0

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/main/java/golanganalyzerextension/gobinary/GolangBinary.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
import ghidra.program.model.address.AddressSet;
1414
import ghidra.program.model.data.ByteDataType;
1515
import ghidra.program.model.data.DataType;
16-
import ghidra.program.model.data.DataTypeConflictException;
1716
import ghidra.program.model.data.Integer16DataType;
1817
import ghidra.program.model.data.Integer3DataType;
1918
import ghidra.program.model.data.Integer5DataType;
@@ -449,7 +448,7 @@ public void create_data(Address addr, DataType datatype) throws BinaryAccessExce
449448
clear_data(addr, datatype.getLength());
450449
try {
451450
program.getListing().createData(addr, datatype);
452-
} catch (CodeUnitInsertionException | DataTypeConflictException e) {
451+
} catch (CodeUnitInsertionException e) {
453452
throw new BinaryAccessException(String.format("Create data: addr=%s, datatype=%s, message=%s", addr, datatype, e.getMessage()));
454453
}
455454
}

src/main/java/golanganalyzerextension/service/GolangAnalyzerExtensionPlugin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public class GolangAnalyzerExtensionPlugin extends ProgramPlugin implements Gola
4040
private Map<Long, GolangString> string_map;
4141

4242
public GolangAnalyzerExtensionPlugin(PluginTool tool) {
43-
super(tool, false, true);
43+
super(tool);
4444

4545
go_bin=null;
4646
func_list=new ArrayList<>();

0 commit comments

Comments
 (0)