mirror of
https://github.com/systemd/systemd.git
synced 2024-11-23 02:03:37 +08:00
tools: pylint gdb-sd_dump_hashmaps.py
This commit is contained in:
parent
8708cd47b2
commit
de9eca7e86
@ -1,5 +1,6 @@
|
||||
#!/usr/bin/env python3
|
||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||
# pylint: disable=consider-using-f-string
|
||||
|
||||
import gdb
|
||||
|
||||
@ -9,7 +10,7 @@ class sd_dump_hashmaps(gdb.Command):
|
||||
def __init__(self):
|
||||
super().__init__("sd_dump_hashmaps", gdb.COMMAND_DATA, gdb.COMPLETE_NONE)
|
||||
|
||||
def invoke(self, arg, from_tty):
|
||||
def invoke(self, arg, _from_tty):
|
||||
d = gdb.parse_and_eval("hashmap_debug_list")
|
||||
hashmap_type_info = gdb.parse_and_eval("hashmap_type_info")
|
||||
uchar_t = gdb.lookup_type("unsigned char")
|
||||
|
Loading…
Reference in New Issue
Block a user