mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-04 18:29:37 +02:00
GP-301 PDB - use consistent anonymous function naming with DWARF. Helps
to reduce datatype conflicts.
This commit is contained in:
parent
0086c4c77a
commit
f7e219b96a
7 changed files with 156 additions and 67 deletions
|
@ -124,6 +124,9 @@ public interface DataType {
|
|||
* Sets the name of the dataType
|
||||
* @param name the new name for this dataType.
|
||||
* @throws InvalidNameException if the given name does not form a valid name.
|
||||
* @throws DuplicateNameException if name change on stored {@link DataType}
|
||||
* is a duplciate of another datatype within the same category (only applies to
|
||||
* DB stored {@link DataType}).
|
||||
*/
|
||||
public void setName(String name) throws InvalidNameException, DuplicateNameException;
|
||||
|
||||
|
@ -132,7 +135,9 @@ public interface DataType {
|
|||
* @param path the new category path.
|
||||
* @param name the new name
|
||||
* @throws InvalidNameException if the name is invalid
|
||||
* @throws DuplicateNameException if a dataType already exists with that name and
|
||||
* @throws DuplicateNameException if name change on stored {@link DataType}
|
||||
* is a duplciate of another datatype within the same category (only applies to
|
||||
* DB stored {@link DataType}).
|
||||
*/
|
||||
public void setNameAndCategory(CategoryPath path, String name)
|
||||
throws InvalidNameException, DuplicateNameException;
|
||||
|
|
|
@ -37,7 +37,7 @@ public final class DataUtilities {
|
|||
* @return true if name is valid, else false
|
||||
*/
|
||||
public static boolean isValidDataTypeName(String name) {
|
||||
if (name == null) {
|
||||
if (name == null || name.length() == 0) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue