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

@ -387,15 +387,7 @@ public class CFormattedMemoryBlock extends CDebugElement
*/ */
public String getAddressExpression() public String getAddressExpression()
{ {
try return fAddressExpression.getName();
{
return fAddressExpression.getName();
}
catch( CDIException e )
{
// ignore
}
return "";
} }
private String[] createData( byte[] bytes, int offset, int length ) 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 public String getName() throws DebugException
{ {
String name = null; return getOriginalCDIVariable().getName();
try
{
name = getOriginalCDIVariable().getName();
}
catch( CDIException e )
{
targetRequestFailed( e.getMessage(), null );
}
return name;
} }
/* (non-Javadoc) /* (non-Javadoc)