Skip to content

Commit f5e1943

Browse files
author
Paul Dagnelie
authored
Add module system to prevent commands from being loaded when they aren't useful (#319)
1 parent 38011c6 commit f5e1943

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+415
-202
lines changed

sdb/__init__.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,16 @@
3636
get_pointer_type, get_target_flags, get_symbol, is_null,
3737
type_canonical_name, type_canonicalize,
3838
type_canonicalize_name, type_canonicalize_size,
39-
type_equals)
39+
type_equals, Runtime, All, Kernel, Userland, Module,
40+
Library)
4041
from sdb.command import (Address, Cast, Command, InputHandler, Locator,
4142
PrettyPrinter, Walk, Walker, SingleInputCommand,
42-
get_registered_commands)
43+
get_registered_commands, register_commands)
4344
from sdb.pipeline import execute_pipeline, get_first_type, invoke
4445

4546
__all__ = [
4647
'Address',
48+
'All',
4749
'Cast',
4850
'Command',
4951
'CommandArgumentsError',
@@ -53,11 +55,16 @@
5355
'CommandNotFoundError',
5456
'Error',
5557
'InputHandler',
58+
'Kernel',
59+
'Library',
5660
'Locator',
61+
'Module',
5762
'ParserError',
5863
'PrettyPrinter',
64+
'Runtime',
5965
'SingleInputCommand',
6066
'SymbolNotFoundError',
67+
'Userland',
6168
'Walk',
6269
'Walker',
6370
'create_object',
@@ -72,6 +79,7 @@
7279
'get_symbol',
7380
'get_target_flags',
7481
'get_type',
82+
'register_commands',
7583
'type_canonical_name',
7684
'type_canonicalize',
7785
'type_canonicalize_name',

0 commit comments

Comments
 (0)