Skip to content

Ghidra is a software reverse engineering (SRE) framework

GP-5923 don't default to Global namespace for dynamic symbols in columns

dev747368ad32d0177b06
diff --git a/Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/symtable/AbstractSymbolTableModel.java b/Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/symtable/AbstractSymbolTableModel.java
index b68cc029b4..4a1d2cceee 100644
--- a/Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/symtable/AbstractSymbolTableModel.java
+++ b/Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/symtable/AbstractSymbolTableModel.java
@@ -4,9 +4,9 @@
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -482,7 +482,7 @@ public abstract class AbstractSymbolTableModel extends AddressBasedTableModel<Sy
public String getValue(SymbolRowObject rowObject, Settings settings, Program p,
ServiceProvider svcProvider) throws IllegalArgumentException {
Symbol symbol = rowObject.getSymbol();
- if (symbol == null || symbol.isDeleted()) {
+ if (symbol == null || symbol.isDeleted() || symbol.isDynamic()) {
return null;
}
return symbol.getParentNamespace().getName(true);
diff --git a/Ghidra/Features/Base/src/main/java/ghidra/util/table/field/NamespaceTableColumn.java b/Ghidra/Features/Base/src/main/java/ghidra/util/table/field/NamespaceTableColumn.java
index c61061aa3a..4d77076746 100644
--- a/Ghidra/Features/Base/src/main/java/ghidra/util/table/field/NamespaceTableColumn.java
+++ b/Ghidra/Features/Base/src/main/java/ghidra/util/table/field/NamespaceTableColumn.java
@@ -4,9 +4,9 @@
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -41,7 +41,7 @@ public class NamespaceTableColumn
return parentPath == null ? GlobalNamespace.GLOBAL_NAMESPACE_NAME : parentPath;
}
Symbol symbol = getSymbol(rowObject, program);
- if (symbol != null) {
+ if (symbol != null && !symbol.isDeleted() && !symbol.isDynamic()) {
return symbol.getParentNamespace().getName(true);
}
Function function =