Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 9962c4703151ed99d87181efc2664c270650c477 (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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
/*******************************************************************************
 * Copyright (c) 2004, 2012 QNX Software Systems and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 * QNX Software Systems - Initial API and implementation
 *******************************************************************************/
package org.eclipse.cdt.debug.core.model;

import org.eclipse.cdt.core.IAddress;
import org.eclipse.debug.core.DebugException;
import org.eclipse.debug.core.model.IDebugTarget;
import org.eclipse.debug.core.model.IRegisterGroup;

/**
 * C/C++ extension of <code>IDebugTarget</code>.
 */
public interface ICDebugTarget extends IDebugTarget,
									   IExecFileInfo,
									   IRestart,
									   IResumeWithoutSignal,
									   ICDebugElement,
									   ISteppingModeTarget,
									   IModuleRetrieval,
									   ITargetProperties {

	/**
	 * Returns whether this target is little endian.
	 * 
	 * @return whether this target is little endian
	 */
	@Override
	public boolean isLittleEndian();
	
	/**
	 * Returns whether this target supports signals.
	 * 
	 * @return whether this target supports signals
	 * @throws DebugException if this method fails.
	 */
	public boolean hasSignals() throws DebugException;

	/**
	 * Returns the list of signals defined for this target.
	 * 
	 * @return the list of signals defined for this target
	 * @throws DebugException if this method fails.
	 */
	public ICSignal[] getSignals() throws DebugException;

	/**
	 * Returns the disassembly provider of this debug target.
	 * 
	 * @return the disassembly provider of this debug target
	 * @throws DebugException if this method fails.
	 */
	public IDisassembly getDisassembly() throws DebugException;

	/**
	 * Returns whether this target is a post mortem type.
	 * 
	 * @return whether this target is a post mortem type
	 */
	public boolean isPostMortem();

	/**
	 * Returns the list of descriptors of the target registers
	 * 
	 * @return the list register descriptors
	 * @throws DebugException if this method fails. Reasons include:
	 * 
	 * @since 3.0
	 */
	public IRegisterDescriptor[] getRegisterDescriptors() throws DebugException;

	/**
	 * Adds a new user-defined register group to this target
	 * 
	 * @param name the group name
	 * @param descriptors the list of registers to be grouped
	 * 
	 * @since 3.0
	 */
	public void addRegisterGroup( String name, IRegisterDescriptor[]  descriptors );

	/**
	 * Removes the given register group from the target
	 * 
	 * @param group a group to be removed
	 * 
	 * @since 3.0
	 */
	public void removeRegisterGroups( IRegisterGroup[] groups );

	/**
	 * Replace the given group's register descriptors by the specified descriptors.
	 *  
	 * @param group a group to be modified
	 * @param descriptors a descriptor array to replace existing descriptors
	 * 
	 * @since 3.0
	 */
	public void modifyRegisterGroup( IPersistableRegisterGroup group, IRegisterDescriptor[] descriptors );


	/**
	 * Removes all user-defined register groups and restores the hardware groups.
	 * 
	 * @since 3.0
	 */
	public void restoreDefaultRegisterGroups();

	/**
	 * Returns the target address of the given breakpoint.
	 * 
	 * @return the target address of the given breakpoint
	 * @throws DebugException if the address is not available
	 */
	public IAddress getBreakpointAddress( ICLineBreakpoint breakpoint ) throws DebugException;
}

Back to the top