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

ruby-changes:52689

From: nobu <ko1@a...>
Date: Wed, 3 Oct 2018 04:14:34 +0900 (JST)
Subject: [ruby-changes:52689] nobu:r64901 (trunk): lldb_rp: reload debug info if not loaded yet [ci skip]

nobu	2018-10-03 04:14:24 +0900 (Wed, 03 Oct 2018)

  New Revision: 64901

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=64901

  Log:
    lldb_rp: reload debug info if not loaded yet [ci skip]
    
    As debug infos in shared libraries are not accessible until loaded,
    retry loading the infos when needed.

  Modified files:
    trunk/misc/lldb_cruby.py
Index: misc/lldb_cruby.py
===================================================================
--- misc/lldb_cruby.py	(revision 64900)
+++ misc/lldb_cruby.py	(revision 64901)
@@ -56,6 +56,9 @@ def flonum_p(x): https://github.com/ruby/ruby/blob/trunk/misc/lldb_cruby.py#L56
     return (x&RUBY_FLONUM_MASK) == RUBY_FLONUM_FLAG
 
 def lldb_rp(debugger, command, result, internal_dict):
+    if not ('RUBY_Qfalse' in globals()):
+        lldb_init(debugger)
+
     target = debugger.GetSelectedTarget()
     process = target.GetProcess()
     thread = process.GetSelectedThread()

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

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