Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-patch] Fix in the 'runUntil' method of CTarget

Index: ChangeLog
===================================================================
RCS file: /home/tools/org.eclipse.cdt.debug.mi.core/ChangeLog,v
retrieving revision 1.60
diff -u -r1.60 ChangeLog
--- ChangeLog 10 Jan 2003 20:23:28 -0000 1.60
+++ ChangeLog 13 Jan 2003 22:17:46 -0000
@@ -1,3 +1,6 @@
+2003-01-13 Mikhail Khodjaiants
+ * CTarget.java: in the 'runUntil' method check if file name or function name length > 0, otherwise use address.
+
 2003-01-10 Alain Magloire
 
  * src/.../mi/core/cdi/BreakpointManager.java (update): fix subscript
Index: src/org/eclipse/cdt/debug/mi/core/cdi/model/CTarget.java
===================================================================
RCS file: /home/tools/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/model/CTarget.java,v
retrieving revision 1.4
diff -u -r1.4 CTarget.java
--- src/org/eclipse/cdt/debug/mi/core/cdi/model/CTarget.java 10 Jan 2003 19:19:11 -0000 1.4
+++ src/org/eclipse/cdt/debug/mi/core/cdi/model/CTarget.java 13 Jan 2003 22:17:48 -0000
@@ -486,9 +486,9 @@
   MISession mi = session.getMISession();
   CommandFactory factory = mi.getCommandFactory();
   String loc = "";
-  if (location.getFile() != null) {
+  if (location.getFile() != null && location.getFile().length() > 0) {
    loc = location.getFile() + ":" + location.getLineNumber();
-  } else if (location.getFunction() != null) {
+  } else if (location.getFunction() != null && location.getFunction().length() > 0) {
    loc = location.getFunction();
   } else if (location.getAddress() != 0) {
    loc = "*" + location.getAddress();

Back to the top