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:
parent
ddb735e6eb
commit
a866cb7e22
2 changed files with 2 additions and 19 deletions
|
@ -387,15 +387,7 @@ public class CFormattedMemoryBlock extends CDebugElement
|
|||
*/
|
||||
public String getAddressExpression()
|
||||
{
|
||||
try
|
||||
{
|
||||
return fAddressExpression.getName();
|
||||
}
|
||||
catch( CDIException e )
|
||||
{
|
||||
// ignore
|
||||
}
|
||||
return "";
|
||||
return fAddressExpression.getName();
|
||||
}
|
||||
|
||||
private String[] createData( byte[] bytes, int offset, int length )
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue