File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,34 @@ public class RemoteProcess : IDisposable
5353
5454 public SymbolStore Symbols => symbols ;
5555
56+ /// <summary>Gets a copy of the current modules list. This list may change if the remote process (un)loads a module.</summary>
57+ public IEnumerable < Module > Modules
58+ {
59+ get
60+ {
61+ List < Module > cpy ;
62+ lock ( modules )
63+ {
64+ cpy = modules . ToList ( ) ;
65+ }
66+ return cpy ;
67+ }
68+ }
69+
70+ /// <summary>Gets a copy of the current sections list. This list may change if the remote process (un)loads a section.</summary>
71+ public IEnumerable < Section > Sections
72+ {
73+ get
74+ {
75+ List < Section > cpy ;
76+ lock ( sections )
77+ {
78+ cpy = sections . ToList ( ) ;
79+ }
80+ return cpy ;
81+ }
82+ }
83+
5684 public bool IsValid => process != null && coreFunctions . IsProcessValid ( handle ) ;
5785
5886 public RemoteProcess ( CoreFunctionsManager coreFunctions )
You can’t perform that action at this time.
0 commit comments