[前][次][番号順一覧][スレッド一覧]

ruby-changes:56012

From: Nobuyoshi <ko1@a...>
Date: Wed, 5 Jun 2019 11:15:29 +0900 (JST)
Subject: [ruby-changes:56012] Nobuyoshi Nakada: 26d02cc7cd (trunk): tool/runruby.rb: load the default lldb scripts

https://git.ruby-lang.org/ruby.git/commit/?id=26d02cc7cd

From 26d02cc7cdb9fd2272a695083449824a3852717a Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Wed, 5 Jun 2019 11:03:19 +0900
Subject: tool/runruby.rb: load the default lldb scripts


diff --git a/tool/runruby.rb b/tool/runruby.rb
index 1f5ca2f..a15c038 100755
--- a/tool/runruby.rb
+++ b/tool/runruby.rb
@@ -142,7 +142,12 @@ if debugger or ENV['RUNRUBY_USE_GDB'] == 'true' https://github.com/ruby/ruby/blob/trunk/tool/runruby.rb#L142
     debugger << '--args'
   end
   if debugger == :lldb
-    debugger = %w'lldb --'
+    debugger = ['lldb', '-O', "command script import #{srcdir}/misc/lldb_cruby.py"]
+    if File.exist?(lldb = 'run.lldb') or
+      File.exist?(lldb = File.join(abs_archdir, 'run.lldb'))
+      debugger.push('-s', lldb)
+    end
+    debugger << '--'
   end
 
   if idx = precommand.index(:debugger)
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]