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()
|
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 )
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Add table
Reference in a new issue