~ubuntu-branches/debian/sid/eclipse-cdt/sid

« back to all changes in this revision

Viewing changes to debug/org.eclipse.cdt.debug.mi.core/mi/org/eclipse/cdt/debug/mi/core/command/MIBreakList.java

  • Committer: Package Import Robot
  • Author(s): Jakub Adam
  • Date: 2011-10-06 21:15:04 UTC
  • mfrom: (1.1.4)
  • Revision ID: package-import@ubuntu.com-20111006211504-8dutmljjih0zikfv
Tags: 8.0.1-1
* New upstream release.
* Split the JNI packages into a separate architecture dependent
  package and made eclipse-cdt architecture independent.
* Install JNI libraries into multiarch aware location
* Bumped Standards-Version to 3.9.2.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 
7
 *
 
8
 * Contributors:
 
9
 *     QNX Software Systems - Initial API and implementation
 
10
 *******************************************************************************/
 
11
 
 
12
package org.eclipse.cdt.debug.mi.core.command;
 
13
 
 
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;
 
18
 
 
19
/**
 
20
 * 
 
21
 *   -break-list
 
22
 *
 
23
 *   Displays the list of inserted breakpoints, showing the following
 
24
 * fields:
 
25
 *
 
26
 * `Number'
 
27
 *     number of the breakpoint
 
28
 *
 
29
 * `Type'
 
30
 *     type of the breakpoint: `breakpoint' or `watchpoint'
 
31
 *
 
32
 * `Disposition'
 
33
 *     should the breakpoint be deleted or disabled when it is hit: `keep'
 
34
 *     or `nokeep'
 
35
 *
 
36
 * `Enabled'
 
37
 *     is the breakpoint enabled or no: `y' or `n'
 
38
 *
 
39
 * `Address'
 
40
 *     memory location at which the breakpoint is set
 
41
 *
 
42
 * `What'
 
43
 *     logical location of the breakpoint, expressed by function name,
 
44
 *
 
45
 * `Times'
 
46
 *     number of times the breakpoint has been hit
 
47
 *
 
48
 *   If there are no breakpoints or watchpoints, the `BreakpointTable'
 
49
 *   `body' field is an empty list.
 
50
 *
 
51
 */
 
52
public class MIBreakList extends MICommand
 
53
{
 
54
        public MIBreakList (String miVersion) {
 
55
                super(miVersion, "-break-list"); //$NON-NLS-1$
 
56
        }
 
57
 
 
58
        public MIBreakListInfo getMIBreakListInfo() throws MIException {
 
59
                return (MIBreakListInfo)getMIInfo();
 
60
        }
 
61
 
 
62
        public MIInfo getMIInfo() throws MIException {
 
63
                MIInfo info = null;
 
64
                MIOutput out = getMIOutput();
 
65
                if (out != null) {
 
66
                        info = new MIBreakListInfo(out);
 
67
                        if (info.isError()) {
 
68
                                throwMIException(info, out);
 
69
                        }
 
70
                }
 
71
                return info;
 
72
        }
 
73
}