mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-11 18:25:40 +02:00
Fix for PR 46592: Debug View shows Functions as func(type param,...)().
Return an empty string instead of "??" if the function name is not available.
This commit is contained in:
parent
20ac1c6f2b
commit
4129594a78
2 changed files with 10 additions and 7 deletions
|
@ -1,4 +1,4 @@
|
||||||
2003-11-13 Mikhail Khodjaiants
|
2003-11-21 Mikhail Khodjaiants
|
||||||
|
|
||||||
* src/org/eclipse/cdt/debug/mi/core/output/MIFrame.java
|
* src/org/eclipse/cdt/debug/mi/core/output/MIFrame.java
|
||||||
Fix for PR 46592: Debug View shows Functions as func(type param,...)().
|
Fix for PR 46592: Debug View shows Functions as func(type param,...)().
|
||||||
|
|
|
@ -89,13 +89,16 @@ public class MIFrame {
|
||||||
str = str.trim();
|
str = str.trim();
|
||||||
if ( str.equals( "??" ) )
|
if ( str.equals( "??" ) )
|
||||||
func = "";
|
func = "";
|
||||||
// In some situations gdb returns the function names that include parameter types.
|
|
||||||
// To make the presentation consistent truncate the parameters. PR 46592
|
|
||||||
int end = str.indexOf( '(' );
|
|
||||||
if ( end != -1 )
|
|
||||||
func = str.substring( 0, end );
|
|
||||||
else
|
else
|
||||||
func = str;
|
{
|
||||||
|
// In some situations gdb returns the function names that include parameter types.
|
||||||
|
// To make the presentation consistent truncate the parameters. PR 46592
|
||||||
|
int end = str.indexOf( '(' );
|
||||||
|
if ( end != -1 )
|
||||||
|
func = str.substring( 0, end );
|
||||||
|
else
|
||||||
|
func = str;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else if (var.equals("file")) {
|
} else if (var.equals("file")) {
|
||||||
file = str;
|
file = str;
|
||||||
|
|
Loading…
Add table
Reference in a new issue