1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-16 05:25:21 +02:00

Use "symbol not available" for empty function names when generating a stack frame label.

This commit is contained in:
Mikhail Khodjaiants 2003-11-21 20:43:02 +00:00
parent ff4a5a939a
commit 5635fc7bd2
2 changed files with 14 additions and 3 deletions

View file

@ -1,3 +1,7 @@
2003-11-21 Mikhail Khodjaiants
Use "symbol not available" for empty function names when generating a stack frame label.
* CDTDebugModelPresentation.java
2003-11-13 Mikhail Khodjaiants
Use 'StringBuffer' instead of 'String' when generating stack frame labels.
Added a label for dummy stack frames instead of using the name provided by the rendered object.

View file

@ -526,9 +526,11 @@ public class CDTDebugModelPresentation extends LabelProvider
StringBuffer label = new StringBuffer();
label.append( info.getLevel() );
label.append( ' ' );
if ( info.getFunction() != null )
String function = info.getFunction();
if ( function != null )
{
String function = info.getFunction().trim();
function = function.trim();
if ( function.length() > 0 )
{
label.append( function );
@ -547,7 +549,7 @@ public class CDTDebugModelPresentation extends LabelProvider
}
}
}
else
if ( isEmpty( function ) )
label.append( "<symbol is not available>" );
return label.toString();
}
@ -1001,4 +1003,9 @@ public class CDTDebugModelPresentation extends LabelProvider
{
fImageCache.disposeAll();
}
private boolean isEmpty( String str )
{
return ( str == null || str.length() == 0 );
}
}