ruby-changes:46860
From: nobu <ko1@a...>
Date: Wed, 31 May 2017 15:03:18 +0900 (JST)
Subject: [ruby-changes:46860] nobu:r58975 (trunk): common.mk: lldb [ci skip]
nobu 2017-05-31 15:03:13 +0900 (Wed, 31 May 2017) New Revision: 58975 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=58975 Log: common.mk: lldb [ci skip] * common.mk (lldb, lldb-ruby): add targets to debug with lldb. Modified files: trunk/Makefile.in trunk/common.mk Index: Makefile.in =================================================================== --- Makefile.in (revision 58974) +++ Makefile.in (revision 58975) @@ -75,6 +75,7 @@ XLDFLAGS = @XLDFLAGS@ $(EXTLDFLAGS) https://github.com/ruby/ruby/blob/trunk/Makefile.in#L75 EXTLIBS = LIBS = @LIBS@ $(EXTLIBS) MISSING = @LIBOBJS@ @ALLOCA@ +ENABLE_SHARED = @ENABLE_SHARED@ LDSHARED = @LIBRUBY_LDSHARED@ DLDFLAGS = @LIBRUBY_DLDFLAGS@ $(XLDFLAGS) $(ARCH_FLAG) SOLIBS = @SOLIBS@ Index: common.mk =================================================================== --- common.mk (revision 58974) +++ common.mk (revision 58975) @@ -13,6 +13,7 @@ ECHO = @$(ECHO0) https://github.com/ruby/ruby/blob/trunk/common.mk#L13 mflags = $(MFLAGS) gnumake_recursive = +enable_shared = $(ENABLE_SHARED:no=) UNICODE_VERSION = 9.0.0 @@ -1073,6 +1074,14 @@ gdb: miniruby$(EXEEXT) run.gdb PHONY https://github.com/ruby/ruby/blob/trunk/common.mk#L1074 gdb-ruby: $(PROGRAM) run.gdb PHONY $(Q) $(RUNRUBY_COMMAND) $(RUNRUBY_DEBUGGER) -- $(TESTRUN_SCRIPT) +LLDB_INIT = command script import -r $(srcdir)/misc/lldb_cruby.py + +lldb: miniruby$(EXEEXT) PHONY + lldb -o '$(LLDB_INIT)' miniruby$(EXEEXT) -- $(TESTRUN_SCRIPT) + +lldb-ruby: $(PROGRAM) PHONY + lldb $(enable_shared:yes=-o 'target modules add $(LIBRUBY_SO)') -o '$(LLDB_INIT)' $(PROGRAM) -- $(TESTRUN_SCRIPT) + dist: $(BASERUBY) $(srcdir)/tool/make-snapshot \ -srcdir=$(srcdir) \ -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/