From: Sergey Bronnikov via Tarantool-patches <tarantool-patches@dev.tarantool.org>
To: Sergey Kaplun <skaplun@tarantool.org>
Cc: tarantool-patches@dev.tarantool.org
Subject: Re: [Tarantool-patches] [PATCH luajit 2/4] dbg: fix DUALNUM detection for LLDB
Date: Tue, 9 Jun 2026 16:57:47 +0300 [thread overview]
Message-ID: <78712f2b-739a-49fc-84d0-3449c6422bf6@tarantool.org> (raw)
In-Reply-To: <aiLy7n4u2jazrenC@root>
[-- Attachment #1: Type: text/plain, Size: 2177 bytes --]
Hi, Sergey,
thanks for the fixes! LGTM
Sergey
On 6/5/26 19:01, Sergey Kaplun wrote:
> Hi, Sergey!
> Thanks for the review!
> Added the separate commit as you suggested.
> Branch is force-pushed.
>
> On 05.06.26, Sergey Bronnikov wrote:
>> Hi, Sergey,
>>
>> thanks for the patch! LGTM with a minor comment below.
>>
>> Sergey
>>
>> On 6/4/26 12:30, Sergey Kaplun wrote:
>>> The `lj-arch` command on LLDB reports 'LJ_DUALNUM: True' for the
>>> single-number build since the `module.FindSymbol()` returns an invalid
>>> `SBSymbol` object [1], which is not `None`. This leads to invalid
>>> DUALNUM mode detection.
>>>
>>> This patch fixes this by checking that the returned symbol is valid.
>>>
>>> [1]:https://lldb.llvm.org/python_api/lldb.SBModule.html#lldb.SBModule.FindSymbol
>>> ---
>>> src/luajit_dbg.py | 3 ++-
>>> .../debug-extension-tests.py | 15 +++++++++++++--
>>> 2 files changed, 15 insertions(+), 3 deletions(-)
>>>
>>> diff --git a/src/luajit_dbg.py b/src/luajit_dbg.py
>>> index 410f0191..300d65e9 100644
>>> --- a/src/luajit_dbg.py
>>> +++ b/src/luajit_dbg.py
>> I believe DUALNUM should be added to the help for `lj-arch`. Now it
>> describes only LJ_64, LJ_GC64:
> I've added the separate commit for it. I'll send the patch in the reply
> to the main thread.
>
> ===================================================================
> dbg: update help for the lj-arch command
>
> This patch adds the description of the LJ_DUALNUM dumped flag to the
> lj-arch command's help.
>
> diff --git a/src/luajit_dbg.py b/src/luajit_dbg.py
> index 60308179..3a3ca9b8 100644
> --- a/src/luajit_dbg.py
> +++ b/src/luajit_dbg.py
> @@ -1461,7 +1461,8 @@ lj-arch
>
> The command requires no args and dumps values of LJ_64 and LJ_GC64
> compile-time flags. These values define the sizes of host and GC
> -pointers, respectively.
> +pointers, respectively. Also, it dumps the value for the LJ_DUALNUM
> +compile-time flag to inspect if LuaJIT is built in dual-number mode.
> '''
>
> def execute(self, arg):
> ===================================================================
>
> <snipped>
>
[-- Attachment #2: Type: text/html, Size: 2889 bytes --]
next prev parent reply other threads:[~2026-06-09 13:57 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-04 9:30 [Tarantool-patches] [PATCH luajit 0/4] Introduce dumpers for bytecodes in debuggers Sergey Kaplun via Tarantool-patches
2026-06-04 9:30 ` [Tarantool-patches] [PATCH luajit 1/4] dbg: fix lj-stack command for LLDB Sergey Kaplun via Tarantool-patches
2026-06-05 14:55 ` Sergey Bronnikov via Tarantool-patches
2026-06-04 9:30 ` [Tarantool-patches] [PATCH luajit 2/4] dbg: fix DUALNUM detection " Sergey Kaplun via Tarantool-patches
2026-06-05 14:57 ` Sergey Bronnikov via Tarantool-patches
2026-06-05 16:01 ` Sergey Kaplun via Tarantool-patches
2026-06-09 13:57 ` Sergey Bronnikov via Tarantool-patches [this message]
2026-06-04 9:30 ` [Tarantool-patches] [PATCH luajit 3/4] dbg: introduce lj-gco command Sergey Kaplun via Tarantool-patches
2026-06-05 15:02 ` Sergey Bronnikov via Tarantool-patches
2026-06-04 9:30 ` [Tarantool-patches] [PATCH luajit 4/4] dbg: introduce lj-bc, lj-func and lj-proto dumpers Sergey Kaplun via Tarantool-patches
2026-06-05 15:07 ` Sergey Bronnikov via Tarantool-patches
2026-06-05 16:10 ` Sergey Kaplun via Tarantool-patches
2026-06-05 14:55 ` [Tarantool-patches] [PATCH luajit 0/4] Introduce dumpers for bytecodes in debuggers Sergey Bronnikov via Tarantool-patches
2026-06-05 16:03 ` [Tarantool-patches] [PATCH luajit 3/5] dbg: update help for the lj-arch command Sergey Kaplun via Tarantool-patches
2026-06-09 13:58 ` Sergey Bronnikov via Tarantool-patches
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=78712f2b-739a-49fc-84d0-3449c6422bf6@tarantool.org \
--to=tarantool-patches@dev.tarantool.org \
--cc=sergeyb@tarantool.org \
--cc=skaplun@tarantool.org \
--subject='Re: [Tarantool-patches] [PATCH luajit 2/4] dbg: fix DUALNUM detection for LLDB' \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox