@@ -67,7 +67,7 @@ public int read() throws IOException {
67
67
Thread .sleep (10000 );
68
68
} catch (InterruptedException e ) {
69
69
if (Activator .getInstance ().isDebugging ()) {
70
- System .out .println ("NullInputStream.read() interrupted" );
70
+ System .out .println ("jlink.SemihostingProcess. NullInputStream.read() interrupted" );
71
71
}
72
72
}
73
73
return 0 ;
@@ -80,16 +80,16 @@ public int available() {
80
80
public void close () throws IOException {
81
81
82
82
if (Activator .getInstance ().isDebugging ()) {
83
- System .out .println ("NullInputStream.close() " + Thread .currentThread ());
83
+ System .out .println ("jlink.SemihostingProcess. NullInputStream.close() " + Thread .currentThread ());
84
84
}
85
85
86
86
if (fIsOpened ) {
87
87
super .close ();
88
88
fIsOpened = false ;
89
89
if (fThread != null ) {
90
90
if (Activator .getInstance ().isDebugging ()) {
91
- System .out
92
- . println ( "NullInputStream.close() interrupt " + Thread .currentThread () + " " + fThread );
91
+ System .out . println ( "jlink.SemihostingProcess.NullInputStream.close() interrupt "
92
+ + Thread .currentThread () + " " + fThread );
93
93
}
94
94
fThread .interrupt ();
95
95
}
@@ -115,7 +115,7 @@ public void write(int arg) throws IOException {
115
115
public SemihostingProcess (String host , int port ) {
116
116
117
117
if (Activator .getInstance ().isDebugging ()) {
118
- System .out .println ("SemihostingProcess(" + host + "," + port + ") " + this );
118
+ System .out .println ("jlink. SemihostingProcess(" + host + "," + port + ") " + this );
119
119
}
120
120
121
121
fHost = host ;
@@ -140,15 +140,15 @@ public SemihostingProcess(String host, int port) {
140
140
public void destroy () {
141
141
142
142
if (Activator .getInstance ().isDebugging ()) {
143
- System .out .println ("SemihostingProcess.destroy() " + Thread .currentThread () + " " + fThread );
143
+ System .out .println ("jlink. SemihostingProcess.destroy() " + Thread .currentThread () + " " + fThread );
144
144
}
145
145
146
146
if (fRunning ) {
147
147
148
148
if (fThread != null && fThread != Thread .currentThread ()) {
149
149
fThread .interrupt ();
150
150
if (Activator .getInstance ().isDebugging ()) {
151
- System .out .println ("SemihostingProcess.destroy() after interrupt" );
151
+ System .out .println ("jlink. SemihostingProcess.destroy() after interrupt" );
152
152
}
153
153
}
154
154
@@ -160,13 +160,13 @@ public void destroy() {
160
160
161
161
if (fSocket != null && !fSocket .isInputShutdown ()) {
162
162
if (Activator .getInstance ().isDebugging ()) {
163
- System .out .println ("SemihostingProcess.destroy() before shutdownInput" );
163
+ System .out .println ("jlink. SemihostingProcess.destroy() before shutdownInput" );
164
164
}
165
165
fSocket .shutdownInput ();
166
166
}
167
167
if (fSocket != null && !fSocket .isOutputShutdown ()) {
168
168
if (Activator .getInstance ().isDebugging ()) {
169
- System .out .println ("SemihostingProcess.destroy() before shutdownOutput" );
169
+ System .out .println ("jlink. SemihostingProcess.destroy() before shutdownOutput" );
170
170
}
171
171
fSocket .shutdownOutput ();
172
172
}
@@ -177,7 +177,7 @@ public void destroy() {
177
177
}
178
178
179
179
if (Activator .getInstance ().isDebugging ()) {
180
- System .out .println ("SemihostingProcess.destroy() return" );
180
+ System .out .println ("jlink. SemihostingProcess.destroy() return" );
181
181
}
182
182
}
183
183
@@ -209,19 +209,20 @@ public OutputStream getOutputStream() {
209
209
@ Override
210
210
public int waitFor () throws InterruptedException {
211
211
if (Activator .getInstance ().isDebugging ()) {
212
- System .out .println ("SemihostingProcess.waitFor() " + Thread .currentThread () + " will wait for " + fThread );
212
+ System .out .println (
213
+ "jlink.SemihostingProcess.waitFor() " + Thread .currentThread () + " will wait for " + fThread );
213
214
}
214
215
fThread .join ();
215
216
if (Activator .getInstance ().isDebugging ()) {
216
- System .out .println ("SemihostingProcess.waitFor() return " + Thread .currentThread ());
217
+ System .out .println ("jlink. SemihostingProcess.waitFor() return " + Thread .currentThread ());
217
218
}
218
219
return 0 ;
219
220
}
220
221
221
222
public void run () {
222
223
223
224
if (Activator .getInstance ().isDebugging ()) {
224
- System .out .println ("SemihostingProcess.run() " + Thread .currentThread ());
225
+ System .out .println ("jlink. SemihostingProcess.run() " + Thread .currentThread ());
225
226
}
226
227
227
228
fRunning = true ;
@@ -246,7 +247,7 @@ public void run() {
246
247
if (i == 0 ) {
247
248
// cannot connect, no way to go further
248
249
if (Activator .getInstance ().isDebugging ()) {
249
- System .out .println ("cannot connect, no way to go further." );
250
+ System .out .println ("jlink.SemihostingProcess.run() cannot connect, no way to go further." );
250
251
}
251
252
252
253
return ;
@@ -279,7 +280,7 @@ public void run() {
279
280
// the connection.
280
281
281
282
if (Activator .getInstance ().isDebugging ()) {
282
- System .out .println ("SemihostingProcess.run() Connection closed by the GDB server." );
283
+ System .out .println ("jlink. SemihostingProcess.run() Connection closed by the GDB server." );
283
284
}
284
285
285
286
fPipeOut .write ("Connection closed by the GDB server." .getBytes ());
@@ -325,13 +326,13 @@ public void run() {
325
326
}
326
327
327
328
if (Activator .getInstance ().isDebugging ()) {
328
- System .out .println ("SemihostingProcess.run() completed " );
329
+ System .out .println ("jlink. SemihostingProcess.run() completed " );
329
330
}
330
331
}
331
332
332
333
public void submit () {
333
334
if (Activator .getInstance ().isDebugging ()) {
334
- System .out .println ("SemihostingProcess.submit() " + Thread .currentThread ());
335
+ System .out .println ("jlink. SemihostingProcess.submit() " + Thread .currentThread ());
335
336
}
336
337
fThread = new Thread (this );
337
338
fThread .setName ("Semihosting and SWV fake process" );
0 commit comments