1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-08 10:16:03 +02:00

getName() no longer throw exceptions

This commit is contained in:
Alain Magloire 2003-03-13 21:13:53 +00:00
parent ddb735e6eb
commit a866cb7e22
2 changed files with 2 additions and 19 deletions

View file

@ -386,17 +386,9 @@ public class CFormattedMemoryBlock extends CDebugElement
* @see org.eclipse.cdt.debug.core.IFormattedMemoryBlock#getAddressExpression()
*/
public String getAddressExpression()
{
try
{
return fAddressExpression.getName();
}
catch( CDIException e )
{
// ignore
}
return "";
}
private String[] createData( byte[] bytes, int offset, int length )
{

View file

@ -351,16 +351,7 @@ public abstract class CVariable extends CDebugElement
*/
public String getName() throws DebugException
{
String name = null;
try
{
name = getOriginalCDIVariable().getName();
}
catch( CDIException e )
{
targetRequestFailed( e.getMessage(), null );
}
return name;
return getOriginalCDIVariable().getName();
}
/* (non-Javadoc)