cdt/cdt_6_0_x/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/mi/service/MIBreakpointsManager.java
author l12wang
Mon, 23 Nov 2009 00:59:16 -0600
changeset 117 09f3d307f081
parent 37 c2bce6dd59e7
child 122 d94b9ba55bed
permissions -rw-r--r--
Overhauled BreakpointsMediator to support both EDC and GDB properly. See Eclipse bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=292468
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
37
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
     1
/*******************************************************************************
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
     2
 * Copyright (c) 2007, 2008 Wind River and others.
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
     3
 * All rights reserved. This program and the accompanying materials
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
     4
 * are made available under the terms of the Eclipse Public License v1.0
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
     5
 * which accompanies this distribution, and is available at
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
     6
 * http://www.eclipse.org/legal/epl-v10.html
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
     7
 *
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
     8
 * Contributors:
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
     9
 *     Wind River - Initial API and implementation
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    10
 *     Ericsson   - High-level breakpoints integration
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    11
 *     Ericsson   - Added breakpoint filter support
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    12
 *     Ericsson   - Re-factored the service and put a few comments
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    13
 *     Ericsson   - Added Action support
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    14
 *******************************************************************************/
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    15
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    16
package org.eclipse.cdt.dsf.mi.service;
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    17
117
09f3d307f081 Overhauled BreakpointsMediator to support both EDC and GDB properly. See Eclipse bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=292468
l12wang
parents: 37
diff changeset
    18
import org.eclipse.cdt.dsf.debug.service.BreakpointsMediator;
37
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    19
import org.eclipse.cdt.dsf.service.DsfSession;
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    20
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    21
/**
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    22
 * Breakpoint service interface.  The breakpoint service tracks CDT breakpoint
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    23
 * objects, and based on those, it manages breakpoints in the debugger back end.
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    24
 * 
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    25
 * It relies on MIBreakpoints for the actual back-end interface.
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    26
 */
117
09f3d307f081 Overhauled BreakpointsMediator to support both EDC and GDB properly. See Eclipse bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=292468
l12wang
parents: 37
diff changeset
    27
public class MIBreakpointsManager extends BreakpointsMediator
37
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    28
{
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    29
    /**
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    30
     * The service constructor.
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    31
     * Performs basic instantiation (method initialize() performs the real
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    32
     * service initialization asynchronously).
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    33
     * 
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    34
     * @param session       the debugging session
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    35
     * @param debugModelId  the debugging model
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    36
     */
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    37
    public MIBreakpointsManager(DsfSession session, String debugModelId) {
117
09f3d307f081 Overhauled BreakpointsMediator to support both EDC and GDB properly. See Eclipse bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=292468
l12wang
parents: 37
diff changeset
    38
        super(session, new MIBreakpointAttributeTranslator(session, debugModelId));
37
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    39
    }
c2bce6dd59e7 add cdt_6_0_x
cawthron
parents:
diff changeset
    40
}