From 80afc076a5abb375e5f7bf0089c0dbfdf18eec6c Mon Sep 17 00:00:00 2001 From: Mikhail Khodjaiants Date: Mon, 4 Jul 2005 19:06:05 +0000 Subject: [PATCH] Removed the "IBreakpointTarget" interface. --- debug/org.eclipse.cdt.debug.core/ChangeLog | 6 ++++ .../debug/core/model/IBreakpointTarget.java | 35 ------------------- .../cdt/debug/core/model/ICDebugTarget.java | 10 +++++- .../internal/core/model/CDebugTarget.java | 7 ---- debug/org.eclipse.cdt.debug.ui/ChangeLog | 4 +++ 5 files changed, 19 insertions(+), 43 deletions(-) delete mode 100644 debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/model/IBreakpointTarget.java diff --git a/debug/org.eclipse.cdt.debug.core/ChangeLog b/debug/org.eclipse.cdt.debug.core/ChangeLog index 4c26875664f..b9543a0805d 100644 --- a/debug/org.eclipse.cdt.debug.core/ChangeLog +++ b/debug/org.eclipse.cdt.debug.core/ChangeLog @@ -1,3 +1,9 @@ +2005-07-04 Mikhail Khodjaiants + Removed the "IBreakpointTarget" interface. + - IBreakpointTarget.java + * ICDebugTarget.java + * CDebugTarget.java + 2005-06-29 Mikhail Khodjaiants Bug 41725: I can't set a breakpoint in a function where I used attach source. Bug 45514: Breakpoints made is assembly view do not show in C view. diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/model/IBreakpointTarget.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/model/IBreakpointTarget.java deleted file mode 100644 index d597c9cd950..00000000000 --- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/model/IBreakpointTarget.java +++ /dev/null @@ -1,35 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2004 QNX Software Systems and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * QNX Software Systems - Initial API and implementation - *******************************************************************************/ -package org.eclipse.cdt.debug.core.model; - -import org.eclipse.cdt.core.IAddress; -import org.eclipse.debug.core.DebugException; - -/** - * Provides access to breakpoint-specific information. - */ -public interface IBreakpointTarget { - - /** - * Returns whether this target supports the given breakpoint. - * - * @return whether this target supports the given breakpoint. - */ - boolean isTargetBreakpoint( ICBreakpoint breakpoint ); - - /** - * Returns the target address of the given breakpoint. - * - * @return the target address of the given breakpoint - * @throws DebugException if the address is not available - */ - IAddress getBreakpointAddress( ICLineBreakpoint breakpoint ) throws DebugException; -} diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/model/ICDebugTarget.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/model/ICDebugTarget.java index d71b08420fe..1eca2e86e42 100644 --- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/model/ICDebugTarget.java +++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/model/ICDebugTarget.java @@ -10,6 +10,7 @@ *******************************************************************************/ package org.eclipse.cdt.debug.core.model; +import org.eclipse.cdt.core.IAddress; import org.eclipse.debug.core.DebugException; import org.eclipse.debug.core.model.IDebugTarget; import org.eclipse.debug.core.model.IRegisterGroup; @@ -22,7 +23,6 @@ public interface ICDebugTarget extends IDebugTarget, IRestart, IResumeWithoutSignal, ICDebugElement, - IBreakpointTarget, ISteppingModeTarget, ITargetProperties { @@ -134,4 +134,12 @@ public interface ICDebugTarget extends IDebugTarget, * @since 3.0 */ public void restoreDefaultRegisterGroups(); + + /** + * Returns the target address of the given breakpoint. + * + * @return the target address of the given breakpoint + * @throws DebugException if the address is not available + */ + public IAddress getBreakpointAddress( ICLineBreakpoint breakpoint ) throws DebugException; } diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CDebugTarget.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CDebugTarget.java index 00c86c51ede..a9d79d61c72 100644 --- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CDebugTarget.java +++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CDebugTarget.java @@ -1566,13 +1566,6 @@ public class CDebugTarget extends CDebugElement implements ICDebugTarget, ICDIEv return (getBreakpointManager() != null) ? getBreakpointManager().getBreakpointAddress( breakpoint ) : getAddressFactory().getZero(); } - /* (non-Javadoc) - * @see org.eclipse.cdt.debug.core.model.IBreakpointTarget#isTargetBreakpoint(org.eclipse.cdt.debug.core.model.ICBreakpoint) - */ - public boolean isTargetBreakpoint( ICBreakpoint breakpoint ) { - return (getBreakpointManager() != null) ? getBreakpointManager().isTargetBreakpoint( breakpoint ) : false; - } - /* (non-Javadoc) * @see org.eclipse.cdt.debug.core.model.ISteppingModeTarget#enableInstructionStepping(boolean) */ diff --git a/debug/org.eclipse.cdt.debug.ui/ChangeLog b/debug/org.eclipse.cdt.debug.ui/ChangeLog index ced03f878a6..ef8e508fc9b 100644 --- a/debug/org.eclipse.cdt.debug.ui/ChangeLog +++ b/debug/org.eclipse.cdt.debug.ui/ChangeLog @@ -1,3 +1,7 @@ +2005-07-04 Mikhail Khodjaiants + Removed the "IBreakpointTarget" interface. + * DisassemblyEditorInput.java + 2005-06-30 Mikhail Khodjaiants Bug 102386: double-clicking on a disassembly line in the disassembly view does not add a breakpoint. * ToggleBreakpointAdapter.java