Skip to content

Commit 7ca7caf

Browse files
committed
Minor python 3.7.4 fix
1 parent 3979c91 commit 7ca7caf

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lldb.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ def thread_stop_pkt_to_reason(self, tdict):
252252
mecount = tdict.get('mecount', '-1')
253253
if mecount != None: mecount = int(mecount, 16)
254254
medata = tdict.get('medata', '-1')
255-
print('signal=0x%X metype=%s mecount=%s medata=%s' % (signal, metype, mecount, medata))
255+
#print('signal=0x%X metype=%s mecount=%s medata=%s' % (signal, metype, mecount, medata))
256256

257257
# map the packet macos/lldb "T packet" data to a DebugAdapter reason
258258
result = (DebugAdapter.STOP_REASON.UNKNOWN, None)

ui.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ def navigate_to_rip(self):
309309
# Highlight lines
310310
def update_highlights(self):
311311
# Clear old highlighted rip
312-
for func in self.state.bv.get_functions_containing(self.last_ip):
312+
for func in (self.state.bv.get_functions_containing(self.last_ip) or []):
313313
func.set_auto_instr_highlight(self.last_ip, HighlightStandardColor.NoHighlightColor)
314314

315315
for (module, offset) in self.state.breakpoints:
@@ -323,7 +323,7 @@ def update_highlights(self):
323323
remote_rip = self.state.ip
324324
local_rip = self.state.memory_view.remote_addr_to_local(remote_rip)
325325

326-
for func in self.state.bv.get_functions_containing(local_rip):
326+
for func in (self.state.bv.get_functions_containing(local_rip) or []):
327327
func.set_auto_instr_highlight(local_rip, HighlightStandardColor.BlueHighlightColor)
328328

329329
def update_modules(self):

0 commit comments

Comments
 (0)