From 241afd5b62579bc49ec85f761ff9aed644514601 Mon Sep 17 00:00:00 2001 From: Omar Sandoval Date: Thu, 22 Feb 2024 13:30:32 -0800 Subject: [PATCH] cli: add FaultError to default imports It's not uncommon to need to catch FaultError in the CLI. Josef Bacik complained that he often forgets to import it when he needs it, so let's do it by default. Signed-off-by: Omar Sandoval --- drgn/cli.py | 1 + 1 file changed, 1 insertion(+) diff --git a/drgn/cli.py b/drgn/cli.py index 06c3c197..2bbfcec3 100644 --- a/drgn/cli.py +++ b/drgn/cli.py @@ -345,6 +345,7 @@ def run_interactive( "__doc__": None, } drgn_globals = [ + "FaultError", "NULL", "Object", "cast",