1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-23 17:05:26 +02:00

Bug 329682 - Rename method "evaluateSymbolAddress" to "evaluateAddressExpression"

This commit is contained in:
Anton Leherbauer 2010-11-16 09:35:38 +00:00
parent b5c0570748
commit 009a2d0523
5 changed files with 12 additions and 10 deletions

View file

@ -8,6 +8,7 @@
* Contributors:
* Wind River Systems - initial API and implementation
* Freescale Semiconductor - refactoring
* Patrick Chuong (Texas Instruments) - Bug fix (329682)
*******************************************************************************/
package org.eclipse.cdt.debug.internal.ui.disassembly.dsf;
@ -26,12 +27,14 @@ public abstract class AbstractDisassemblyBackend implements IDisassemblyBackend
}
/**
* Evaluate the symbol address.
* Evaluate the expression to an address. This might be the address of a symbol or
* the value of the numeric evaluation depending on the type of the expression.
*
* @param symbol the symbol
* @param suppressError true to suppress error dialogs
* @return the address, <code>null</code> if failed to evaluate symbol
* @param expression the expression
* @param suppressError <code>true</code> to suppress error dialogs
* @return the address or <code>null</code> if the expression could not be evaluated
* @since 7.0
*/
public abstract BigInteger evaluateSymbolAddress(String symbol, boolean suppressError);
public abstract BigInteger evaluateAddressExpression(String expression, boolean suppressError);
}

View file

@ -348,7 +348,7 @@ public class DisassemblyBackendCdi extends AbstractDisassemblyBackend implements
* @see org.eclipse.cdt.dsf.debug.internal.ui.disassembly.IDisassemblyBackend#gotoSymbol(java.lang.String)
*/
public void gotoSymbol(String symbol) {
final BigInteger address = evaluateSymbolAddress(symbol, false);
final BigInteger address = evaluateAddressExpression(symbol, false);
if (address != null) {
fCallback.asyncExec(new Runnable() {
public void run() {
@ -361,7 +361,7 @@ public class DisassemblyBackendCdi extends AbstractDisassemblyBackend implements
* (non-Javadoc)
* @see org.eclipse.cdt.debug.internal.ui.disassembly.dsf.IDisassemblyBackend#evaluateSymbolAddress(java.lang.String, boolean)
*/
public BigInteger evaluateSymbolAddress(String symbol, final boolean suppressError) {
public BigInteger evaluateAddressExpression(String symbol, final boolean suppressError) {
if (fTargetFrameContext != null) {
try {
// This logic was lifted from CMemoryBlockRetrievalExtension.getExtendedMemoryBlock(String, Object)

View file

@ -8,7 +8,6 @@
* Contributors:
* Wind River Systems - initial API and implementation
* Freescale Semiconductor - refactoring
* Patrick Chuong (Texas Instruments) - Bug fix (329682)
*******************************************************************************/
package org.eclipse.cdt.debug.internal.ui.disassembly.dsf;

View file

@ -881,7 +881,7 @@ public class DisassemblyBackendDsf extends AbstractDisassemblyBackend implements
* @see org.eclipse.cdt.debug.internal.ui.disassembly.dsf.IDisassemblyBackend#evaluateSymbolAddress(java.lang.String, boolean)
*/
@Override
public BigInteger evaluateSymbolAddress(final String symbol, final boolean suppressError) {
public BigInteger evaluateAddressExpression(final String symbol, final boolean suppressError) {
Query<BigInteger> query = new Query<BigInteger>() {
@Override
protected void execute(DataRequestMonitor<BigInteger> rm) {

View file

@ -2968,7 +2968,7 @@ public abstract class DisassemblyPart extends WorkbenchPart implements IDisassem
if (fBackend != null) {
BigInteger address = null;
if (fBackend instanceof AbstractDisassemblyBackend) {
address = ((AbstractDisassemblyBackend) fBackend).evaluateSymbolAddress(expr, suppressError);
address = ((AbstractDisassemblyBackend) fBackend).evaluateAddressExpression(expr, suppressError);
} else {
String value = fBackend.evaluateExpression(expr);
if (value != null) {