@@ -13,11 +13,11 @@ public abstract class BaseFunctionPtrNode : BaseFunctionNode
1313 {
1414 public override int MemorySize => IntPtr . Size ;
1515
16- public override string GetToolTipText ( HotSpot spot , MemoryBuffer memory )
16+ public override string GetToolTipText ( HotSpot spot )
1717 {
18- var ptr = memory . ReadIntPtr ( Offset ) ;
18+ var ptr = spot . Memory . ReadIntPtr ( Offset ) ;
1919
20- DisassembleRemoteCode ( memory , ptr ) ;
20+ DisassembleRemoteCode ( spot . Process , ptr ) ;
2121
2222 return string . Join ( "\n " , instructions . Select ( i => i . Instruction ) ) ;
2323 }
@@ -59,10 +59,10 @@ protected Size Draw(ViewInfo view, int x, int y, string type, string name)
5959 {
6060 var value = view . Memory . ReadIntPtr ( Offset ) ;
6161
62- var module = view . Memory . Process . GetModuleToPointer ( value ) ;
62+ var module = view . Process . GetModuleToPointer ( value ) ;
6363 if ( module != null )
6464 {
65- var symbols = view . Memory . Process . Symbols . GetSymbolsForModule ( module ) ;
65+ var symbols = view . Process . Symbols . GetSymbolsForModule ( module ) ;
6666 var symbol = symbols ? . GetSymbolString ( value , module ) ;
6767 if ( ! string . IsNullOrEmpty ( symbol ) )
6868 {
@@ -81,7 +81,7 @@ protected Size Draw(ViewInfo view, int x, int y, string type, string name)
8181 {
8282 var ptr = view . Memory . ReadIntPtr ( Offset ) ;
8383
84- DisassembleRemoteCode ( view . Memory , ptr ) ;
84+ DisassembleRemoteCode ( view . Process , ptr ) ;
8585
8686 var instructionSize = DrawInstructions ( view , tx , y ) ;
8787
@@ -107,19 +107,19 @@ public override int CalculateDrawnHeight(ViewInfo view)
107107 return height ;
108108 }
109109
110- private void DisassembleRemoteCode ( MemoryBuffer memory , IntPtr address )
110+ private void DisassembleRemoteCode ( RemoteProcess process , IntPtr address )
111111 {
112- Contract . Requires ( memory != null ) ;
112+ Contract . Requires ( process != null ) ;
113113
114114 if ( this . address != address )
115115 {
116116 instructions . Clear ( ) ;
117117
118118 this . address = address ;
119119
120- if ( ! address . IsNull ( ) && memory . Process . IsValid )
120+ if ( ! address . IsNull ( ) && process . IsValid )
121121 {
122- DisassembleRemoteCode ( memory , address , out _ ) ;
122+ DisassembleRemoteCode ( process , address , out _ ) ;
123123 }
124124 }
125125 }
0 commit comments