Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMikhail Khodjaiants2003-11-21 20:02:01 +0000
committerMikhail Khodjaiants2003-11-21 20:02:01 +0000
commit4129594a78e5f484e9b444b4cff1c25aa2192d97 (patch)
tree4db350f7a8091bdc43570740a16f454b430416d1
parent20ac1c6f2bb5f4afc1c1dd3626eff657140301d2 (diff)
downloadorg.eclipse.cdt-4129594a78e5f484e9b444b4cff1c25aa2192d97.tar.gz
org.eclipse.cdt-4129594a78e5f484e9b444b4cff1c25aa2192d97.tar.xz
org.eclipse.cdt-4129594a78e5f484e9b444b4cff1c25aa2192d97.zip
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.
-rw-r--r--debug/org.eclipse.cdt.debug.mi.core/ChangeLog2
-rw-r--r--debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/output/MIFrame.java15
2 files changed, 10 insertions, 7 deletions
diff --git a/debug/org.eclipse.cdt.debug.mi.core/ChangeLog b/debug/org.eclipse.cdt.debug.mi.core/ChangeLog
index 1ad359dff1..a549e7c976 100644
--- a/debug/org.eclipse.cdt.debug.mi.core/ChangeLog
+++ b/debug/org.eclipse.cdt.debug.mi.core/ChangeLog
@@ -1,4 +1,4 @@
-2003-11-13 Mikhail Khodjaiants
+2003-11-21 Mikhail Khodjaiants
* src/org/eclipse/cdt/debug/mi/core/output/MIFrame.java
Fix for PR 46592: Debug View shows Functions as func(type param,...)().
diff --git a/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/output/MIFrame.java b/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/output/MIFrame.java
index 074f50f87b..e58ca2a9c1 100644
--- a/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/output/MIFrame.java
+++ b/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/output/MIFrame.java
@@ -89,13 +89,16 @@ public class MIFrame {
str = str.trim();
if ( str.equals( "??" ) )
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
- 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")) {
file = str;

Back to the top