diff lldb/examples/python/sources.py @ 252:1f2b6ac9f198 llvm-original

LLVM16-1
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Fri, 18 Aug 2023 09:04:13 +0900 (2023-08-18)
parents c4bab56944e8
children
line wrap: on
line diff
--- a/lldb/examples/python/sources.py	Wed Nov 09 17:47:54 2022 +0900
+++ b/lldb/examples/python/sources.py	Fri Aug 18 09:04:13 2023 +0900
@@ -13,7 +13,7 @@
 
 
 def info_sources(debugger, command, result, dict):
-    description = '''This command will dump all compile units in any modules that are listed as arguments, or for all modules if no arguments are supplied.'''
+    description = """This command will dump all compile units in any modules that are listed as arguments, or for all modules if no arguments are supplied."""
     module_names = shlex.split(command)
     target = debugger.GetSelectedTarget()
     if module_names:
@@ -26,6 +26,7 @@
 
 def __lldb_init_module(debugger, dict):
     # Add any commands contained in this module to LLDB
-    debugger.HandleCommand(
-        'command script add -f sources.info_sources info_sources')
-    print('The "info_sources" command has been installed, type "help info_sources" or "info_sources --help" for detailed help.')
+    debugger.HandleCommand("command script add -o -f sources.info_sources info_sources")
+    print(
+        'The "info_sources" command has been installed, type "help info_sources" or "info_sources --help" for detailed help.'
+    )