@@ -83,7 +83,7 @@ def __ne__(self, other):
8383 return not (self == other )
8484
8585 def __hash__ (self ):
86- return hash ((self .pid , self .pid ))
86+ return hash ((self .pid , self .name ))
8787
8888 def __setattr__ (self , name , value ):
8989 try :
@@ -1586,7 +1586,7 @@ def detach(self) -> None:
15861586 """
15871587 Detach the target, and let it execute on its own.
15881588 """
1589- dbgcore .BNDebuggerQuit (self .handle )
1589+ dbgcore .BNDebuggerDetach (self .handle )
15901590
15911591 def pause (self ) -> None :
15921592 """
@@ -2072,12 +2072,12 @@ def pid_attach(self) -> int:
20722072
20732073 ``pid_attach`` is only useful for connecting to a running process using PID.
20742074
2075- :getter: returns the remote port
2076- :setter: sets the remote port
2075+ :getter: returns the PID to attach to
2076+ :setter: sets the PID to attach to
20772077 """
20782078 return dbgcore .BNDebuggerGetPIDAttach (self .handle )
20792079
2080- @remote_port .setter
2080+ @pid_attach .setter
20812081 def pid_attach (self , pid : int ) -> None :
20822082 dbgcore .BNDebuggerSetPIDAttach (self .handle , pid )
20832083
@@ -2494,7 +2494,9 @@ def set_adapter_property(self, name: Union[str, bytes], value: binaryninja.metad
24942494 return dbgcore .BNDebuggerSetAdapterProperty (self .handle , name , handle )
24952495
24962496 def get_addr_info (self , addr : int ):
2497- return dbgcore .BNDebuggerGetAddressInformation (self .handle , addr )
2497+ buffer = addr .to_bytes (64 , byteorder = 'little' , signed = False )
2498+ c_buffer = (ctypes .c_ubyte * 64 )(* buffer )
2499+ return dbgcore .BNDebuggerGetAddressInformation (self .handle , c_buffer )
24982500
24992501 @property
25002502 def is_first_launch (self ):
0 commit comments