OLD | NEW |
| (Empty) |
1 // Copyright 2009 The Native Client Authors. All rights reserved. | |
2 // | |
3 // Use of this source code is governed by a BSD-style license that can | |
4 // | |
5 // be found in the LICENSE file. | |
6 using System; | |
7 using System.Collections.Generic; | |
8 using Google.MsAd7.BaseImpl; | |
9 using Microsoft.VisualStudio.Debugger.Interop; | |
10 | |
11 namespace Google.NaClVsx.DebugSupport { | |
12 public class NaClDebugProcess : DebugProcess { | |
13 public NaClDebugProcess(IDebugPort2 port, string connectionString, int pid,
string imagePath) | |
14 : base(port, pid, imagePath) { | |
15 connectionString_ = connectionString; | |
16 } | |
17 | |
18 public NaClPort NaClPort { | |
19 get { return (DebugSupport.NaClPort) this.Port;} | |
20 } | |
21 | |
22 #region Overrides of DebugProcess | |
23 | |
24 public override enum_PROCESS_INFO_FLAGS GetProcessStatus() { | |
25 return enum_PROCESS_INFO_FLAGS.PIFLAG_PROCESS_RUNNING; | |
26 } | |
27 | |
28 protected override ICollection<IDebugProgram2> GetPrograms() { | |
29 Refresh(); | |
30 return programs_; | |
31 } | |
32 | |
33 #endregion | |
34 | |
35 void Refresh() | |
36 { | |
37 if (programs_.Count > 0) return; | |
38 programs_.Add(new ProgramNode(this)); | |
39 } | |
40 | |
41 | |
42 List<IDebugProgram2> programs_ = new List<IDebugProgram2>(); | |
43 private string connectionString_; | |
44 } | |
45 } | |
OLD | NEW |