diff options
author | Mikhail Khodjaiants | 2003-11-21 20:02:01 +0000 |
---|---|---|
committer | Mikhail Khodjaiants | 2003-11-21 20:02:01 +0000 |
commit | 4129594a78e5f484e9b444b4cff1c25aa2192d97 (patch) | |
tree | 4db350f7a8091bdc43570740a16f454b430416d1 /debug | |
parent | 20ac1c6f2bb5f4afc1c1dd3626eff657140301d2 (diff) | |
download | org.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.
Diffstat (limited to 'debug')
-rw-r--r-- | debug/org.eclipse.cdt.debug.mi.core/ChangeLog | 2 | ||||
-rw-r--r-- | debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/output/MIFrame.java | 15 |
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 1ad359dff15..a549e7c9768 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 074f50f87bd..e58ca2a9c19 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; |