1
/*******************************************************************************
2
* Copyright (c) 2000, 2009 QNX Software Systems and others.
3
* All rights reserved. This program and the accompanying materials
4
* are made available under the terms of the Eclipse Public License v1.0
5
* which accompanies this distribution, and is available at
6
* http://www.eclipse.org/legal/epl-v10.html
9
* QNX Software Systems - Initial API and implementation
10
* Wind River Systems - Modified for new DSF Reference Implementation
11
*******************************************************************************/
13
package org.eclipse.cdt.dsf.mi.service.command.commands;
15
import org.eclipse.cdt.dsf.debug.service.IBreakpoints.IBreakpointsTargetDMContext;
16
import org.eclipse.cdt.dsf.mi.service.command.output.MIInfo;
20
* -break-delete ( BREAKPOINT )+
22
* Delete the breakpoint(s) whose number(s) are specified in the
23
* argument list. This is obviously reflected in the breakpoint list.
30
public class MIBreakDelete extends MICommand<MIInfo>
32
public MIBreakDelete (IBreakpointsTargetDMContext ctx, int[] array) {
33
super(ctx, "-break-delete"); //$NON-NLS-1$
34
if (array != null && array.length > 0) {
35
String[] brkids = new String[array.length];
36
for (int i = 0; i < array.length; i++) {
37
brkids[i] = Integer.toString(array[i]);
39
setParameters(brkids);