1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64901 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2018-10-02 19:14:24 +00:00
parent 4e133fdb7e
commit 3cfe3051c5

View file

@ -56,6 +56,9 @@ def flonum_p(x):
return (x&RUBY_FLONUM_MASK) == RUBY_FLONUM_FLAG return (x&RUBY_FLONUM_MASK) == RUBY_FLONUM_FLAG
def lldb_rp(debugger, command, result, internal_dict): def lldb_rp(debugger, command, result, internal_dict):
if not ('RUBY_Qfalse' in globals()):
lldb_init(debugger)
target = debugger.GetSelectedTarget() target = debugger.GetSelectedTarget()
process = target.GetProcess() process = target.GetProcess()
thread = process.GetSelectedThread() thread = process.GetSelectedThread()