@@ -382,7 +382,7 @@ def __eq__(self, other):
382382 if not isinstance (other , self .__class__ ):
383383 return NotImplemented
384384 return self .module == other .module and self .offset == other .offset and self .address == other .address \
385- and self .enabled == other .enabled and self . condition == other . condition
385+ and self .enabled == other .enabled
386386
387387 def __ne__ (self , other ):
388388 if not isinstance (other , self .__class__ ):
@@ -2161,9 +2161,9 @@ def set_breakpoint_condition(self, address, condition: str) -> bool:
21612161 :return: True if successful, False otherwise
21622162 """
21632163 if isinstance (address , int ):
2164- return dbgcore .BNDebuggerSetBreakpointConditionAbsolute (self .handle , address , condition . encode ( 'utf-8' ) if condition else None )
2164+ return dbgcore .BNDebuggerSetBreakpointConditionAbsolute (self .handle , address , condition )
21652165 elif isinstance (address , ModuleNameAndOffset ):
2166- return dbgcore .BNDebuggerSetBreakpointConditionRelative (self .handle , address .module . encode ( 'utf-8' ) , address .offset , condition . encode ( 'utf-8' ) if condition else None )
2166+ return dbgcore .BNDebuggerSetBreakpointConditionRelative (self .handle , address .module , address .offset , condition )
21672167 else :
21682168 raise NotImplementedError
21692169
@@ -2177,7 +2177,7 @@ def get_breakpoint_condition(self, address) -> str:
21772177 if isinstance (address , int ):
21782178 result = dbgcore .BNDebuggerGetBreakpointConditionAbsolute (self .handle , address )
21792179 elif isinstance (address , ModuleNameAndOffset ):
2180- result = dbgcore .BNDebuggerGetBreakpointConditionRelative (self .handle , address .module . encode ( 'utf-8' ) , address .offset )
2180+ result = dbgcore .BNDebuggerGetBreakpointConditionRelative (self .handle , address .module , address .offset )
21812181 else :
21822182 raise NotImplementedError
21832183
0 commit comments