Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 1238984480276e1e541a997a8ab40f8460929d78 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*******************************************************************************
 * Copyright (c) 2012 Ericsson and others.
 *
 * This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License 2.0
 * which accompanies this distribution, and is available at
 * https://www.eclipse.org/legal/epl-2.0/
 *
 * SPDX-License-Identifier: EPL-2.0
 *
 * Contributors:
 *     Marc Khouzam (Ericsson) - Initial API and implementation
 *******************************************************************************/
package org.eclipse.cdt.dsf.mi.service.command.commands;

import org.eclipse.cdt.dsf.datamodel.IDMContext;
import org.eclipse.cdt.dsf.mi.service.command.output.CLIInfoBreakInfo;
import org.eclipse.cdt.dsf.mi.service.command.output.MIOutput;

/**
 * 'info break [BP_REFERENCE]
 *
 * will return information about the specified breakpoint.  If no breakpoint is
 * specified, it will return information about all breakpoints.
 * We use it to find out to which inferior a breakpoint is applicable.
 * This information is not available from -break-list or -break-info until GDB 7.6.
 *
 * @since 4.2
 */
public class CLIInfoBreak extends CLICommand<CLIInfoBreakInfo> {

	private static final String INFO_BREAK = "info break"; //$NON-NLS-1$

	public CLIInfoBreak(IDMContext ctx) {
		super(ctx, INFO_BREAK);
	}

	public CLIInfoBreak(IDMContext ctx, int bpReference) {
		super(ctx, INFO_BREAK + Integer.toString(bpReference));
	}

	@Override
	public CLIInfoBreakInfo getResult(MIOutput MIresult) {
		return new CLIInfoBreakInfo(MIresult);
	}
}

Back to the top