blob: 7233cc786ec7288bd9e41372c7472f4e8536c7aa (
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
|
/*******************************************************************************
* Copyright (c) 2008, 2009 Ericsson 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:
* Ericsson - initial API and implementation
*******************************************************************************/
package org.eclipse.cdt.dsf.mi.service;
import org.eclipse.cdt.dsf.debug.service.IProcesses;
import org.eclipse.cdt.dsf.debug.service.IRunControl.IContainerDMContext;
import org.eclipse.cdt.dsf.debug.service.command.ICommandControlService.ICommandControlDMContext;
/**
* This interface provides a method for creating execution contexts.
* @since 1.1
*/
public interface IMIProcesses extends IProcesses
{
/**
* Create a thread context.
*
* @param processDmc The parent process context
* @param threadId The OS Id of the thread
*/
IThreadDMContext createThreadContext(IProcessDMContext processDmc, String threadId);
/**
* Create a process context.
*
* @param pid The OS Id of the process
*/
IProcessDMContext createProcessContext(ICommandControlDMContext controlDmc, String pid);
/**
* Create an execution context.
*
* @param containerDmc The parent process debugging context
* @param threadDmc The parent thread context
* @param threadId The thread id of the thread
*/
IMIExecutionDMContext createExecutionContext(IContainerDMContext containerDmc,
IThreadDMContext threadDmc,
String threadId);
/**
* Create a container context.
*
* @param processDmc The parent process context of this context
* @param groupId The thread group id of the process
*/
IMIContainerDMContext createContainerContext(IProcessDMContext processDmc,
String groupId);
/**
* Create a container context based on a threadId. This implies knowledge
* of which threads belong to which container.
*
* @param controlDmc The parent command control context of this context
* @param threadId The thread id belonging to the container we want to create
*/
IMIContainerDMContext createContainerContextFromThreadId(ICommandControlDMContext controlDmc, String threadId);
}
|