mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2024-11-12 23:23:17 +00:00
Fixing a couple of comments.
This commit is contained in:
parent
344d3f6b35
commit
515aa0962c
@ -26,7 +26,7 @@ import ghidra.util.exception.InvalidInputException;
|
||||
|
||||
/**
|
||||
* Command to make a label the primary label at an address. Only really
|
||||
* makes sense if there is more that one label at the address - otherwise
|
||||
* makes sense if there is more than one label at the address - otherwise
|
||||
* the label will already be primary.
|
||||
*/
|
||||
public class SetLabelPrimaryCmd implements Command {
|
||||
@ -52,6 +52,7 @@ public class SetLabelPrimaryCmd implements Command {
|
||||
*
|
||||
* @see ghidra.framework.cmd.Command#applyTo(ghidra.framework.model.DomainObject)
|
||||
*/
|
||||
@Override
|
||||
public boolean applyTo(DomainObject obj) {
|
||||
Program program = (Program) obj;
|
||||
st = program.getSymbolTable();
|
||||
@ -117,6 +118,7 @@ public class SetLabelPrimaryCmd implements Command {
|
||||
/**
|
||||
* @see ghidra.framework.cmd.Command#getStatusMsg()
|
||||
*/
|
||||
@Override
|
||||
public String getStatusMsg() {
|
||||
return errorMsg;
|
||||
}
|
||||
@ -124,6 +126,7 @@ public class SetLabelPrimaryCmd implements Command {
|
||||
/**
|
||||
* @see ghidra.framework.cmd.Command#getName()
|
||||
*/
|
||||
@Override
|
||||
public String getName() {
|
||||
return "Set Primary Label";
|
||||
}
|
||||
|
@ -233,8 +233,8 @@ public interface Symbol {
|
||||
public boolean isPrimary();
|
||||
|
||||
/**
|
||||
* Sets this symbol to be primary. All other symbols
|
||||
* at the same address will be set to !primary.
|
||||
* Sets this symbol to be primary. All other symbols at the same address will be set to
|
||||
* !primary. Only applies to non-function symbols.
|
||||
* @return returns true if the symbol was not primary and now it is, otherwise false
|
||||
*/
|
||||
public boolean setPrimary();
|
||||
|
Loading…
Reference in New Issue
Block a user