Skip to content

Ghidra is a software reverse engineering (SRE) framework

GP-0 fix golang and dwarf javadoc errors

dev7473686138184fe229
diff --git a/Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/dwarf4/next/DWARFDataTypeImporter.java b/Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/dwarf4/next/DWARFDataTypeImporter.java
index 5cf87925a9..93b759a0e9 100644
--- a/Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/dwarf4/next/DWARFDataTypeImporter.java
+++ b/Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/dwarf4/next/DWARFDataTypeImporter.java
@@ -86,7 +86,6 @@ public class DWARFDataTypeImporter {
*
* @param prog {@link DWARFProgram} that is being imported
* @param dwarfDTM {@link DWARFDataTypeManager} helper
- * @param importOptions {@link DWARFImportOptions} control optional features during import
*/
public DWARFDataTypeImporter(DWARFProgram prog, DWARFDataTypeManager dwarfDTM) {
this.prog = prog;
diff --git a/Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/dwarf4/next/DWARFDataTypeManager.java b/Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/dwarf4/next/DWARFDataTypeManager.java
index d3e257c010..8ac965790e 100644
--- a/Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/dwarf4/next/DWARFDataTypeManager.java
+++ b/Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/dwarf4/next/DWARFDataTypeManager.java
@@ -78,8 +78,6 @@ public class DWARFDataTypeManager {
*
* @param prog {@link DWARFProgram} that holds the Ghidra {@link Program} being imported.
* @param dataTypeManager {@link DataTypeManager} of the Ghidra Program.
- * @param builtInDTM {@link DataTypeManager} with built-in data types.
- * during the import session.
*/
public DWARFDataTypeManager(DWARFProgram prog, DataTypeManager dataTypeManager) {
this.prog = prog;
diff --git a/Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/dwarf4/next/DWARFFunction.java b/Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/dwarf4/next/DWARFFunction.java
index 311f5676d3..fa4bdd4e88 100644
--- a/Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/dwarf4/next/DWARFFunction.java
+++ b/Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/dwarf4/next/DWARFFunction.java
@@ -18,12 +18,11 @@ package ghidra.app.util.bin.format.dwarf4.next;
import static ghidra.app.util.bin.format.dwarf4.encoding.DWARFAttribute.*;
import static ghidra.app.util.bin.format.dwarf4.encoding.DWARFTag.DW_TAG_unspecified_parameters;
+import java.io.IOException;
import java.util.*;
import java.util.stream.Collectors;
import java.util.stream.StreamSupport;
-import java.io.IOException;
-
import ghidra.app.util.bin.format.dwarf4.*;
import ghidra.app.util.bin.format.dwarf4.attribs.DWARFNumericAttribute;
import ghidra.app.util.bin.format.dwarf4.expression.DWARFExpressionException;
@@ -235,7 +234,6 @@ public class DWARFFunction {
*
* @param includeStorageDetail boolean flag, if true storage information will be included, if
* false, VariableStorage.UNASSIGNED_STORAGE will be used
- * @param program Ghidra program that contains the parameter
* @return list of Parameters
* @throws InvalidInputException
*/
@@ -251,7 +249,6 @@ public class DWARFFunction {
/**
* Returns a {@link FunctionDefinition} that reflects this function's information.
*
- * @param prog {@link DWARFProgram} that contains this function
* @return {@link FunctionDefinition} that reflects this function's information
*/
public FunctionDefinition asFuncDef() {
diff --git a/Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/dwarf4/next/DWARFVariable.java b/Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/dwarf4/next/DWARFVariable.java
index c3f6d14fe0..13371400e7 100644
--- a/Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/dwarf4/next/DWARFVariable.java
+++ b/Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/dwarf4/next/DWARFVariable.java
@@ -131,7 +131,6 @@ public class DWARFVariable {
* Assign storage for this variable in a ram data location.
*
* @param offset address offset
- * @param prog {@link DWARFProgram}
*/
public void setRamStorage(long offset) {
clearStorage();
@@ -146,7 +145,6 @@ public class DWARFVariable {
* Assign storage for this variable at a stack offset.
*
* @param offset stack offset
- * @param prog {@link DWARFProgram}
*/
public void setStackStorage(long offset) {
clearStorage();
@@ -170,7 +168,6 @@ public class DWARFVariable {
* Assign storage for this variable via a list of registers.
*
* @param registers registers that contain the data
- * @param prog {@link DWARFProgram}
*/
public void setRegisterStorage(List<Register> registers) {
clearStorage();
diff --git a/Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/golang/rtti/GoSlice.java b/Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/golang/rtti/GoSlice.java
index ca3c624794..7a1708e88f 100644
--- a/Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/golang/rtti/GoSlice.java
+++ b/Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/golang/rtti/GoSlice.java
@@ -15,11 +15,10 @@
*/
package ghidra.app.util.bin.format.golang.rtti;
+import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
-import java.io.IOException;
-
import ghidra.app.util.bin.BinaryReader;
import ghidra.app.util.bin.BinaryReader.ReaderFunction;
import ghidra.app.util.bin.format.golang.structmapping.*;
@@ -65,7 +64,6 @@ public class GoSlice {
* @param startElement
* @param elementCount
* @param elementSize
- * @param programContext
* @return
*/
public GoSlice getSubSlice(long startElement, long elementCount, long elementSize) {