1
/*******************************************************************************
2
* Copyright (c) 2000, 2006 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
*******************************************************************************/
12
package org.eclipse.cdt.debug.mi.core.command;
14
import org.eclipse.cdt.debug.mi.core.MIException;
15
import org.eclipse.cdt.debug.mi.core.output.MIBreakListInfo;
16
import org.eclipse.cdt.debug.mi.core.output.MIInfo;
17
import org.eclipse.cdt.debug.mi.core.output.MIOutput;
23
* Displays the list of inserted breakpoints, showing the following
27
* number of the breakpoint
30
* type of the breakpoint: `breakpoint' or `watchpoint'
33
* should the breakpoint be deleted or disabled when it is hit: `keep'
37
* is the breakpoint enabled or no: `y' or `n'
40
* memory location at which the breakpoint is set
43
* logical location of the breakpoint, expressed by function name,
46
* number of times the breakpoint has been hit
48
* If there are no breakpoints or watchpoints, the `BreakpointTable'
49
* `body' field is an empty list.
52
public class MIBreakList extends MICommand
54
public MIBreakList (String miVersion) {
55
super(miVersion, "-break-list"); //$NON-NLS-1$
58
public MIBreakListInfo getMIBreakListInfo() throws MIException {
59
return (MIBreakListInfo)getMIInfo();
62
public MIInfo getMIInfo() throws MIException {
64
MIOutput out = getMIOutput();
66
info = new MIBreakListInfo(out);
68
throwMIException(info, out);