Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-debug-dev] How can I override MIFrame from my plugin?

Is it possible for a plugin to override MIFrame.java?

CommandFactory.java in CDT does not contain a createMIFrame() entry...

The same applies to MIBreakInsertInfo, MIBreakpoint, MIConst, MIParser
and MISrcAsm and perhaps others(haven't checked).

-- 
Øyvind Harboe
http://www.zylin.com
Index: MIFrame.java
===================================================================
RCS file: /home/tools/org.eclipse.cdt-debug/org.eclipse.cdt.debug.mi.core/mi/org/eclipse/cdt/debug/mi/core/output/MIFrame.java,v
retrieving revision 1.4
diff -u -r1.4 MIFrame.java
--- MIFrame.java	17 Sep 2004 18:59:35 -0000	1.4
+++ MIFrame.java	20 Jun 2005 10:07:47 -0000
@@ -10,6 +10,10 @@
  *******************************************************************************/
 package org.eclipse.cdt.debug.mi.core.output;
 
+import java.io.File;
+
+import org.eclipse.cdt.utils.path.PathTranslator;
+
 /**
  * GDB/MI Frame tuple parsing.
  */
@@ -31,7 +35,7 @@
   }
 
	public String getFile() {
-	       return file;
+		      return PathTranslator.guessAbsolutePath(new File(".").getAbsolutePath(), file);
		      }
 
	public String getFunction() {

Back to the top