Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Apr 2020 21:08:28 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r359582 - in head/contrib/llvm-project/lldb: include/lldb source/Core
Message-ID:  <202004022108.032L8SAR079311@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: emaste
Date: Thu Apr  2 21:08:28 2020
New Revision: 359582
URL: https://svnweb.freebsd.org/changeset/base/359582

Log:
  lldb: use lua as the default script language
  
  In the FreeBSD base system we do not have Python support in lldb, but
  will have Lua support.  Make Lua the default.
  
  This needs to be made into a configure-time option; that is being
  discussed upstream and will appear in a future lldb import.  For now
  carry this change as a tiny patch to our copy of lldb.

Modified:
  head/contrib/llvm-project/lldb/include/lldb/lldb-enumerations.h
  head/contrib/llvm-project/lldb/source/Core/CoreProperties.td

Modified: head/contrib/llvm-project/lldb/include/lldb/lldb-enumerations.h
==============================================================================
--- head/contrib/llvm-project/lldb/include/lldb/lldb-enumerations.h	Thu Apr  2 20:47:51 2020	(r359581)
+++ head/contrib/llvm-project/lldb/include/lldb/lldb-enumerations.h	Thu Apr  2 21:08:28 2020	(r359582)
@@ -215,7 +215,7 @@ enum ScriptLanguage {
   eScriptLanguagePython,
   eScriptLanguageLua,
   eScriptLanguageUnknown,
-  eScriptLanguageDefault = eScriptLanguagePython
+  eScriptLanguageDefault = eScriptLanguageLua
 };
 
 /// Register numbering types.

Modified: head/contrib/llvm-project/lldb/source/Core/CoreProperties.td
==============================================================================
--- head/contrib/llvm-project/lldb/source/Core/CoreProperties.td	Thu Apr  2 20:47:51 2020	(r359581)
+++ head/contrib/llvm-project/lldb/source/Core/CoreProperties.td	Thu Apr  2 21:08:28 2020	(r359582)
@@ -35,7 +35,7 @@ let Definition = "debugger" in {
     Desc<"The debugger command line prompt displayed for the user.">;
   def ScriptLanguage: Property<"script-lang", "Enum">,
     Global,
-    DefaultEnumValue<"eScriptLanguagePython">,
+    DefaultEnumValue<"eScriptLanguageLua">,
     EnumValues<"OptionEnumValues(g_language_enumerators)">,
     Desc<"The script language to be used for evaluating user-written scripts.">;
   def StopDisassemblyCount: Property<"stop-disassembly-count", "SInt64">,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202004022108.032L8SAR079311>