mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-03 09:49:23 +02:00
Revert "GP-6006 Creating a new source type called 'Speculative' which marks symbol names that are less trustworthy than analysis"
This reverts commit 41d9b7431e
.
This commit is contained in:
parent
91a9a66a25
commit
edea7dfd65
3 changed files with 8 additions and 14 deletions
|
@ -448,7 +448,7 @@
|
||||||
<TD align="left" height="21" width="22%">Function</TD>
|
<TD align="left" height="21" width="22%">Function</TD>
|
||||||
|
|
||||||
<TD align="left" height="21" width="56%">Indicates the source-type associated with the
|
<TD align="left" height="21" width="56%">Indicates the source-type associated with the
|
||||||
function signature (i.e., DEFAULT, ANALYSIS, IMPORTED, USER_DEFINED, SPECULATIVE).</TD>
|
function signature (i.e., DEFAULT, ANALYSIS, IMPORTED, USER_DEFINED).</TD>
|
||||||
</TR>
|
</TR>
|
||||||
|
|
||||||
<TR>
|
<TR>
|
||||||
|
|
|
@ -1286,8 +1286,6 @@
|
||||||
<li class="listitem" style="list-style-type: none">
|
<li class="listitem" style="list-style-type: none">
|
||||||
<span class="emphasis"><em>DEFAULT</em></span> - for basic or no information</li>
|
<span class="emphasis"><em>DEFAULT</em></span> - for basic or no information</li>
|
||||||
<li class="listitem" style="list-style-type: none">
|
<li class="listitem" style="list-style-type: none">
|
||||||
<span class="emphasis"><em>SPECULATIVE</em></span> - for information that is less trustworthy</li>
|
|
||||||
<li class="listitem" style="list-style-type: none">
|
|
||||||
<span class="emphasis"><em>ANALYSIS</em></span> - for information derived by an Analyzer</li>
|
<span class="emphasis"><em>ANALYSIS</em></span> - for information derived by an Analyzer</li>
|
||||||
<li class="listitem" style="list-style-type: none">
|
<li class="listitem" style="list-style-type: none">
|
||||||
<span class="emphasis"><em>IMPORTED</em></span> - for information imported from an external source</li>
|
<span class="emphasis"><em>IMPORTED</em></span> - for information imported from an external source</li>
|
||||||
|
|
|
@ -20,27 +20,23 @@ public enum SourceType {
|
||||||
// database by their ordinal.
|
// database by their ordinal.
|
||||||
|
|
||||||
/** The object's source indicator for an auto analysis. */
|
/** The object's source indicator for an auto analysis. */
|
||||||
ANALYSIS("Analysis", 3),
|
ANALYSIS("Analysis", 2),
|
||||||
/** The object's source indicator for a user defined. */
|
/** The object's source indicator for a user defined. */
|
||||||
USER_DEFINED("User Defined", 5),
|
USER_DEFINED("User Defined", 4),
|
||||||
/** The object's source indicator for a default. */
|
/** The object's source indicator for a default. */
|
||||||
DEFAULT("Default", 1),
|
DEFAULT("Default", 1),
|
||||||
/** The object's source indicator for an imported. */
|
/** The object's source indicator for an imported. */
|
||||||
IMPORTED("Imported", 4),
|
IMPORTED("Imported", 3);
|
||||||
/** The object's source indicator for something that is somewhat of an educated guess. */
|
|
||||||
SPECULATIVE("Speculative", 2);
|
|
||||||
|
|
||||||
private final String displayString;
|
private final String displayString;
|
||||||
private final int priority; // bigger numbers are higher priority
|
private final int priority; // bigger numbers are higher priorty
|
||||||
|
|
||||||
private SourceType(String displayString, int priority) {
|
private SourceType(String displayString, int priority) {
|
||||||
this.displayString = displayString;
|
this.displayString = displayString;
|
||||||
this.priority = priority;
|
this.priority = priority;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/** Returns a user-friendly string */
|
||||||
* {@return a user-friendly string}
|
|
||||||
*/
|
|
||||||
public String getDisplayString() {
|
public String getDisplayString() {
|
||||||
return displayString;
|
return displayString;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue