Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-patch] BreakpointManager.createLocation()

Index: ChangeLog
===================================================================
RCS file: /home/tools/org.eclipse.cdt.debug.mi.core/ChangeLog,v
retrieving revision 1.49
diff -u -r1.49 ChangeLog
--- ChangeLog	3 Jan 2003 20:30:14 -0000	1.49
+++ ChangeLog	6 Jan 2003 16:29:45 -0000
@@ -1,3 +1,10 @@
+2003-01-06 Alain Magloire
+
+	* src/.../mi/core/cdi/BreapoinManager.java (createLocation): new method
+	to create a breakoint with an address.
+	* src/.../mi/core/cdi/Location.java (Location): New constructor takes
+	an address as argument.
+
 2003-01-03 Alain Magloire
 
 	The Class creating the CDISession part of the initialization would call
Index: src/org/eclipse/cdt/debug/mi/core/cdi/BreakpointManager.java
===================================================================
RCS file: /home/tools/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/BreakpointManager.java,v
retrieving revision 1.22
diff -u -r1.22 BreakpointManager.java
--- src/org/eclipse/cdt/debug/mi/core/cdi/BreakpointManager.java	5 Dec 2002 15:59:16 -0000	1.22
+++ src/org/eclipse/cdt/debug/mi/core/cdi/BreakpointManager.java	6 Jan 2003 16:29:45 -0000
@@ -395,8 +395,16 @@
 	/**
 	 * @see org.eclipse.cdt.debug.core.cdi.ICDIBreakpointManager#createLocation(String, String, int)
 	 */
-	public ICDILocation createLocation( String file, String function, int line) {
+	public ICDILocation createLocation(String file, String function, int line) {
 		return new Location(file, function, line);
 	}
+	
+	/**
+	 * @see org.eclipse.cdt.debug.core.cdi.ICDIBreakpointManager#createLocation(long)
+	 */
+	public ICDILocation createLocation(long address) {
+		return new Location(address);
+	}
+
 
 }
Index: src/org/eclipse/cdt/debug/mi/core/cdi/Location.java
===================================================================
RCS file: /home/tools/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/Location.java,v
retrieving revision 1.7
diff -u -r1.7 Location.java
--- src/org/eclipse/cdt/debug/mi/core/cdi/Location.java	12 Oct 2002 23:50:49 -0000	1.7
+++ src/org/eclipse/cdt/debug/mi/core/cdi/Location.java	6 Jan 2003 16:29:45 -0000
@@ -29,6 +29,10 @@
 		addr = a;  
 	}
 
+	public Location(long address) {
+		addr = address;
+	}
+
 	/**
 	 * @see org.eclipse.cdt.debug.core.cdi.ICDILocation#getAddress()
 	 */



Back to the top