blob: 5979b57b3b1e6d115e39f47a1925e53ca03a7912 (
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
|
/*******************************************************************************
* Copyright (c) 2013, 2014 Mentor Graphics 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:
* Mentor Graphics - Initial API and implementation
* Red Hat Inc. - modified for use in Standalone Debugger
* Marc Khouzam (Ericsson) - Modified for Remote launch (bug 450080)
*******************************************************************************/
package org.eclipse.cdt.debug.application;
/**
* This class provides information required to start debugging a remote executable.
*/
public class RemoteExecutableInfo {
private final String fHostPath;
private final String fBuildLog;
private final String fAddress;
private final String fPort;
private final boolean fAttach;
public RemoteExecutableInfo(String hostPath, String buildLog, String address, String port, boolean attach) {
super();
fHostPath = hostPath;
fBuildLog = buildLog;
fAddress = address;
fPort = port;
fAttach = attach;
}
public RemoteExecutableInfo(RemoteExecutableInfo info) {
fHostPath = info.getHostPath();
fBuildLog = info.getBuildLog();
fAddress = info.getAddress();
fPort = info.getPort();
fAttach = info.isAttach();
}
/**
* Returns the path of the executable on the host
*/
public String getHostPath() {
return fHostPath;
}
public String getAddress() {
return fAddress;
}
public String getPort() {
return fPort;
}
public boolean isAttach() {
return fAttach;
}
/**
* Get the build log path.
*
* @return the build log path or null
*/
public String getBuildLog() {
return fBuildLog;
}
}
|