diff options
Diffstat (limited to 'scripts/gdb/load_kstd.py')
| -rw-r--r-- | scripts/gdb/load_kstd.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/scripts/gdb/load_kstd.py b/scripts/gdb/load_kstd.py new file mode 100644 index 0000000..f3adce1 --- /dev/null +++ b/scripts/gdb/load_kstd.py @@ -0,0 +1,14 @@ +import sys +import os +import gdb + +script_dir = os.path.dirname(os.path.abspath(__file__)) + +if script_dir not in sys.path: + sys.path.insert(0, script_dir) + +import kstd + +kstd.register_printers(gdb.current_objfile()) + +gdb.write("Loaded kstd pretty printers.\n") |
