From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from [87.239.111.99] (localhost [127.0.0.1]) by dev.tarantool.org (Postfix) with ESMTP id CF138111A010; Tue, 19 May 2026 15:41:31 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org CF138111A010 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tarantool.org; s=dev; t=1779194491; bh=y0Ey5p9ndrGjl/O5Ehxd6fSNHeGUiPkSA8x0AS3Pijw=; h=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=yJhMjO3W9mbyOtzw+uN6gaXtdIYGZQMrcpNbVDWFeL5YiYeAKOf9/7LaiMiMF70V7 LTUFZAHkKjAEe423ZHsSUswxs75gU9WmoQwy3h/+lQK3fq8+j2WKj7H0txJfjZdYQU OWi75HRmzUGLZByT08HSPoSJ3XUEbh/VPPbGdB9M= Received: from send152.i.mail.ru (send152.i.mail.ru [89.221.237.247]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 119541769CFE for ; Tue, 19 May 2026 15:40:02 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 dev.tarantool.org 119541769CFE Received: by exim-smtp-8466d5ddfc-zbcjt with esmtpa (envelope-from ) id 1wPJjs-00000000Fgc-3fPb; Tue, 19 May 2026 15:40:01 +0300 To: Mikhail Elhimov , Sergey Bronnikov , Evgeniy Temirgaleev Date: Tue, 19 May 2026 15:39:10 +0300 Message-ID: <20260519123913.178775-4-skaplun@tarantool.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260519123913.178775-1-skaplun@tarantool.org> References: <20260519123913.178775-1-skaplun@tarantool.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Mailru-Src: smtp X-618D5548: 6DBD36D6A28F8396411046492FDDF806F3D8932E3637843A9D98F6840A4EFB7829B766A2CF85C87F X-7564579A: B8F34718100C35BD X-77F55803: 4F1203BC0FB41BD98DC58EE55F2C5C37D508395C9562F44E6BCE60FAE40AF78000894C459B0CD1B96DBD36D6A28F8396411046492FDDF8064AB83D084104C9EB9D98F6840A4EFB78BC2FBDE9E7577831 X-7FA49CB5: FF5795518A3D127A4AD6D5ED66289B5278DA827A17800CE7B264C8851FD8E810EA1F7E6F0F101C67BD4B6F7A4D31EC0BCC500DACC3FED6E28638F802B75D45FF8AA50765F7900637AC83A81C8FD4AD23D82A6BABE6F325AC2E85FA5F3EDFCBAA7353EFBB55337566BAD382DE516896515B479D601D641AE9E6297AC5CE0D9CFDAEB49D74E1A765EE389733CBF5DBD5E913377AFFFEAFD269176DF2183F8FC7C078FCF50C7EAF9C588941B15DA834481FCF19DD082D7633A0EF3E4896CB9E6436389733CBF5DBD5E9D5E8D9A59859A8B6E5E764EB5D94DBD4CC7F00164DA146DA6F5DAA56C3B73B237318B6A418E8EAB86D1867E19FE14079C09775C1D3CA48CFED8438A78DFE0A9E1DD303D21008E298D5E8D9A59859A8B6B372FE9A2E580EFC725E5C173C3A84C35D1D84EF68E022EA35872C767BF85DA2F004C90652538430E4A6367B16DE6309 X-87b9d050: 1 X-C1DE0DAB: 0D63561A33F958A530005D8AF7760DC95002B1117B3ED696C67B5C193F9A6D06361FAC1196A180DE823CB91A9FED034534781492E4B8EEAD2B25D9E4C92BC8ACC79554A2A72441328621D336A7BC284946AD531847A6065A535571D14F44ED41 X-C8649E89: 1C3962B70DF3F0ADB58128AB1E6D661A716CD42B3DD1D34C77DD89D51EBB774225B6776AC983F447FC0B9F89525902EE6F57B2FD27647F25E66C117BDB76D659D6159A4B49C56E87F1055A1A131C0B2F706B199D11E032FB61A3C932A0A790DC1A0F941E7BFA8677B8341EE9D5BE9A0A45ACA3BE792110CE4B43B2A6B51D093CC97F5C35A79DD49E9350E1BD188BD56E4C41F94D744909CECFA6C6B0C050A61A8CAF69B82BA93681CD72808BE417F3B9E0E7457915DAA85F X-D57D3AED: 3ZO7eAau8CL7WIMRKs4sN3D3tLDjz0dLbV79QFUyzQ2Ujvy7cMT6pYYqY16iZVKkSc3dCLJ7zSJH7+u4VD18S7Vl4ZUrpaVfd2+vE6kuoey4m4VkSEu53w8ahmwBjZKM/YPHZyZHvz5uv+WouB9+ObcCpyrx6l7KImUglyhkEat/+ysWwi0gdhEs0JGjl6ggRWTy1haxBpVdbIX1nthFXMZebaIdHP2ghjoIc/363UZI6Kf1ptIMVax5M0mESuWm7CzqBCTF+1s= X-DA7885C5: 030EF72C66015A1EF255D290C0D534F9F52436BA58F0116150C844D59B37A590DC16A1EDAAD244F75B1A4C17EAA7BC4BEF2421ABFA55128DAF83EF9164C44C7E X-Mailru-Sender: 689FA8AB762F7393520AF17B8A65FDE28ECF119E5C06CE43228D337503C33EE575881EECC0BA3990E49D44BB4BD9522A059A1ED8796F048DB274557F927329BE89D5A3BC2B10C37545BD1C3CC395C826B4A721A3011E896F X-Mras: Ok Subject: [Tarantool-patches] [PATCH v2 luajit 3/6] dbg: sort initialization of commands X-BeenThere: tarantool-patches@dev.tarantool.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Sergey Kaplun via Tarantool-patches Reply-To: Sergey Kaplun Cc: tarantool-patches@dev.tarantool.org Errors-To: tarantool-patches-bounces@dev.tarantool.org Sender: "Tarantool-patches" This patch sorts the commands for extensions' initialization alphabetically. Also, it fixes the typo in the lldb extension. This allows enabling the loading test for LLDB as well. --- src/luajit-gdb.py | 8 ++--- src/luajit_lldb.py | 8 ++--- .../debug-extension-tests.py | 30 +++++++++---------- 3 files changed, 22 insertions(+), 24 deletions(-) diff --git a/src/luajit-gdb.py b/src/luajit-gdb.py index dab07b35..be67bf18 100644 --- a/src/luajit-gdb.py +++ b/src/luajit-gdb.py @@ -872,12 +872,12 @@ def init(commands): def load(event=None): init({ 'lj-arch': LJDumpArch, - 'lj-tv': LJDumpTValue, - 'lj-str': LJDumpString, - 'lj-tab': LJDumpTable, + 'lj-gc': LJGC, 'lj-stack': LJDumpStack, 'lj-state': LJState, - 'lj-gc': LJGC, + 'lj-str': LJDumpString, + 'lj-tab': LJDumpTable, + 'lj-tv': LJDumpTValue, }) diff --git a/src/luajit_lldb.py b/src/luajit_lldb.py index 218cc8d1..7668a94c 100644 --- a/src/luajit_lldb.py +++ b/src/luajit_lldb.py @@ -958,7 +958,7 @@ def register_commands(debugger, commands): cmd=cls.command, ) ) - print('{cmd} command intialized'.format(cmd=cls.command)) + print('{cmd} command initialized'.format(cmd=cls.command)) def configure(debugger): @@ -986,12 +986,12 @@ def configure(debugger): def __lldb_init_module(debugger, internal_dict): configure(debugger) register_commands(debugger, { - 'lj-tv': LJDumpTValue, - 'lj-state': LJState, 'lj-arch': LJDumpArch, 'lj-gc': LJGC, + 'lj-stack': LJDumpStack, + 'lj-state': LJState, 'lj-str': LJDumpString, 'lj-tab': LJDumpTable, - 'lj-stack': LJDumpStack, + 'lj-tv': LJDumpTValue, }) print('luajit_lldb.py is successfully loaded') diff --git a/test/tarantool-debugger-tests/debug-extension-tests.py b/test/tarantool-debugger-tests/debug-extension-tests.py index 11c2492b..f3ce3ced 100644 --- a/test/tarantool-debugger-tests/debug-extension-tests.py +++ b/test/tarantool-debugger-tests/debug-extension-tests.py @@ -125,22 +125,20 @@ class TestCaseBase(unittest.TestCase): self.assertRegex(self.output, self.pattern.strip()) -# FIXME: Skip for LLDB since it has different order. -if not LLDB: - class TestLoad(TestCaseBase): - extension_cmds = '' - location = 'lj_cf_print' - lua_script = 'print(1)' - pattern = ( - r'lj-arch command initialized\n' - r'lj-tv command initialized\n' - r'lj-str command initialized\n' - r'lj-tab command initialized\n' - r'lj-stack command initialized\n' - r'lj-state command initialized\n' - r'lj-gc command initialized\n' - r'.*is successfully loaded' - ) +class TestLoad(TestCaseBase): + extension_cmds = '' + location = 'lj_cf_print' + lua_script = 'print(1)' + pattern = ( + r'lj-arch command initialized\n' + r'lj-gc command initialized\n' + r'lj-stack command initialized\n' + r'lj-state command initialized\n' + r'lj-str command initialized\n' + r'lj-tab command initialized\n' + r'lj-tv command initialized\n' + r'.*is successfully loaded' + ) class TestLJArch(TestCaseBase): -- 2.53.0