From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp39.i.mail.ru (smtp39.i.mail.ru [94.100.177.99]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 6698446970E for ; Wed, 22 Jan 2020 17:51:04 +0300 (MSK) From: Sergey Voinov Date: Wed, 22 Jan 2020 17:51:59 +0300 Message-Id: <20200122145159.15751-1-sergeiv@tarantool.org> Subject: [Tarantool-patches] [PATCH] Increase limits for debug.traceback List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: tarantool-patches@dev.tarantool.org, Alexander Turenko Currently debug.traceback cuts out path prefixes and removes intermediate frames. This makes it harder to debug and navigate to files right from terminal. This change in main trunk adds default traceback limits as defines to cmake/luajit.cmake file. Please see the commit for #4581 for luajit submodule. Closes: #4581 --- issue: https://github.com/tarantool/tarantool/issues/4581 branch: https://github.com/tarantool/tarantool/tree/servoin/gh-4581-debug-limits_2 cmake/luajit.cmake | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cmake/luajit.cmake b/cmake/luajit.cmake index 072db8269..373e88458 100644 --- a/cmake/luajit.cmake +++ b/cmake/luajit.cmake @@ -282,6 +282,13 @@ macro(luajit_build) DESTINATION ${MODULE_INCLUDEDIR}) endmacro() +# +# Definitions for luajit debug traceback limits +# +add_definitions(-DLUA_TRACEBACK_LEVELS1=25) +add_definitions(-DLUA_TRACEBACK_LEVELS2=25) +add_definitions(-DLUA_IDSIZE=128) + # # Building shipped luajit only if there is no # usable system one (see cmake/luajit.cmake) or by demand. -- 2.17.1