[Lldb-commits] [lldb] [lldb] Treat user aliases the same as built-ins when tab completing (PR #65974)

via lldb-commits lldb-commits at lists.llvm.org
Mon Sep 11 10:33:44 PDT 2023


================
@@ -20,7 +20,7 @@ def test_command_abbreviations_and_aliases(self):
         self.assertTrue(result.Succeeded())
         self.assertEqual("apropos script", result.GetOutput())
 
-        command_interpreter.ResolveCommand("h", result)
+        command_interpreter.ResolveCommand("he", result)
----------------
jimingham wrote:

Huh, I don't see where we explicitly alias "help" to "h", but in the current TOT lldb (well, as of last Friday) and in the latest Apple release, "h" is not ambiguous:

(lldb) version
lldb version 18.0.0git (git at github.com:llvm/llvm-project.git revision 04a6dc24db333ee8bfdf50791a18024f30086ff6)
  clang revision 04a6dc24db333ee8bfdf50791a18024f30086ff6
  llvm revision 04a6dc24db333ee8bfdf50791a18024f30086ff6
(lldb) h
Debugger commands:
  apropos           -- List debugger commands related to a word or subject.
  breakpoint        -- Commands for operating on breakpoints (see 'help b' for

I wonder what's different.  Whatever we do, `h` really should mean "help" that's a far more common usage.

https://github.com/llvm/llvm-project/pull/65974


More information about the lldb-commits mailing list