gdb: reformat Python files with black 23.1.0
Change-Id: Ie8ec8870a16d71c5858f5d08958309d23c318302 Reviewed-By: Tom Tromey <tom@tromey.com> Reviewed-By: Andrew Burgess <aburgess@redhat.com>
This commit is contained in:
parent
aa992b382f
commit
09de95fbb7
13 changed files with 11 additions and 9 deletions
|
@ -64,7 +64,6 @@ class FrameDecorator(object):
|
|||
or frame.type() == gdb.DUMMY_FRAME
|
||||
or frame.type() == gdb.SIGTRAMP_FRAME
|
||||
):
|
||||
|
||||
return True
|
||||
|
||||
return False
|
||||
|
|
|
@ -20,6 +20,7 @@ import sys
|
|||
import gdb
|
||||
import gdb.frames
|
||||
|
||||
|
||||
# GDB Commands.
|
||||
class SetFilterPrefixCmd(gdb.Command):
|
||||
"""Prefix command for 'set' frame-filter related operations."""
|
||||
|
|
|
@ -116,7 +116,7 @@ class Server:
|
|||
self._send_json(result)
|
||||
events = self.delayed_events
|
||||
self.delayed_events = []
|
||||
for (event, body) in events:
|
||||
for event, body in events:
|
||||
self.send_event(event, body)
|
||||
# Got the terminate request. This is handled by the
|
||||
# JSON-writing thread, so that we can ensure that all
|
||||
|
|
|
@ -228,7 +228,7 @@ class _EnumInstance:
|
|||
flag_list = []
|
||||
v = int(self.val)
|
||||
any_found = False
|
||||
for (e_name, e_value) in self.enumerators:
|
||||
for e_name, e_value in self.enumerators:
|
||||
if v & e_value != 0:
|
||||
flag_list.append(e_name)
|
||||
v = v & ~e_value
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue