Tarantool development patches archive
 help / color / mirror / Atom feed
From: Sergey Kaplun via Tarantool-patches <tarantool-patches@dev.tarantool.org>
To: Sergey Bronnikov <sergeyb@tarantool.org>
Cc: tarantool-patches@dev.tarantool.org
Subject: Re: [Tarantool-patches] [PATCH v2 luajit 5/6] dbg: generalize extension
Date: Wed, 27 May 2026 15:55:05 +0300	[thread overview]
Message-ID: <ahbpqVJB7zx4Azjj@root> (raw)
In-Reply-To: <2f29ca87-ac11-4459-8717-b62f077afdfa@tarantool.org>

Hi, Sergey!
Thanks for the review!
Fixed your comment and force-pushed the branch.

On 27.05.26, Sergey Bronnikov wrote:
> Hi, Sergey,
> 
> thanks for the patch! LGTM with a minor comment.
> 
> Sergey
> 
> On 5/19/26 15:39, Sergey Kaplun wrote:
> > This patch joins the LLDB and GDB LuaJIT debugging extensions
> > into one, so now the extension logic can be debugger-agnostic.
> >
> > To do that, an adapter class is introduced, and all of the
> > debugger-specific behavior is encapsulated there and in its child
> > debugger classes with the specific implementations of required methods.
> > The extension auto-detects the debugger it was loaded into and selects
> > the correct low-level logic implementation.
> >
> > The F821 ignore is removed from <.flake8rc> since there is no more need
> > for it.
> > ---
> >   .flake8rc                                     |    5 -
> >   src/luajit-gdb.py                             |  884 ------------
> >   src/luajit_dbg.py                             | 1281 +++++++++++++++++
> >   src/luajit_lldb.py                            | 1015 -------------
> >   .../debug-extension-tests.py                  |    4 +-
> >   5 files changed, 1283 insertions(+), 1906 deletions(-)
> >   delete mode 100644 src/luajit-gdb.py
> >   create mode 100644 src/luajit_dbg.py
> 
> "autopep8 -i" generates the following patch:
> 
> --- a/src/luajit_dbg.py
> +++ b/src/luajit_dbg.py
> @@ -651,7 +651,7 @@ def frame_ftsz(framelink):
> 
>   def frame_pc(framelink):
>       return dbg.cast('BCIns *', frame_ftsz(framelink)) if LJ_FR2 \
> -                    else mref('BCIns *', framelink['fr']['tp']['pcr'])
> +        else mref('BCIns *', framelink['fr']['tp']['pcr'])
> 
> 
>   def frame_prevl(framelink):
> 
> Feel free to ignore, but I propose following PEP8 style from the beginning.

This is weird, since flake8 checks PEP8 compliance as well, and it
didn't warn about it.
Fixed, thanks!

===================================================================
diff --git a/src/luajit_dbg.py b/src/luajit_dbg.py
index 164f0955..d9196f06 100644
--- a/src/luajit_dbg.py
+++ b/src/luajit_dbg.py
@@ -651,7 +651,7 @@ def frame_ftsz(framelink):
 
 def frame_pc(framelink):
     return dbg.cast('BCIns *', frame_ftsz(framelink)) if LJ_FR2 \
-                    else mref('BCIns *', framelink['fr']['tp']['pcr'])
+        else mref('BCIns *', framelink['fr']['tp']['pcr'])
 
 
 def frame_prevl(framelink):
===================================================================

> >   delete mode 100644 src/luajit_lldb.py
> >

<snipped>

[1]: https://peps.python.org/pep-0008/#indentation

-- 
Best regards,
Sergey Kaplun

  reply	other threads:[~2026-05-27 12:55 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-19 12:39 [Tarantool-patches] [PATCH v2 luajit 0/6] Unified extension for debuggers Sergey Kaplun via Tarantool-patches
2026-05-19 12:39 ` [Tarantool-patches] [PATCH v2 luajit 1/6] test: introduce tests for debugging extensions Sergey Kaplun via Tarantool-patches
2026-05-20 13:38   ` Sergey Bronnikov via Tarantool-patches
2026-05-25  9:14     ` Sergey Kaplun via Tarantool-patches
2026-05-27  9:54       ` Sergey Bronnikov via Tarantool-patches
2026-05-27 10:52         ` Sergey Kaplun via Tarantool-patches
2026-05-26 13:50   ` Evgeniy Temirgaleev via Tarantool-patches
2026-05-26 14:41     ` Sergey Kaplun via Tarantool-patches
2026-05-26 18:52       ` Evgeniy Temirgaleev via Tarantool-patches
2026-05-27  7:56         ` Sergey Kaplun via Tarantool-patches
2026-05-27 12:41   ` Sergey Bronnikov via Tarantool-patches
2026-05-19 12:39 ` [Tarantool-patches] [PATCH v2 luajit 2/6] lldb: refactor extension Sergey Kaplun via Tarantool-patches
2026-05-27 12:27   ` Sergey Bronnikov via Tarantool-patches
2026-05-19 12:39 ` [Tarantool-patches] [PATCH v2 luajit 3/6] dbg: sort initialization of commands Sergey Kaplun via Tarantool-patches
2026-05-20 13:43   ` Sergey Bronnikov via Tarantool-patches
2026-05-19 12:39 ` [Tarantool-patches] [PATCH v2 luajit 4/6] lldb: support full-range 64-bit lightuserdata Sergey Kaplun via Tarantool-patches
2026-05-27 12:28   ` Sergey Bronnikov via Tarantool-patches
2026-05-19 12:39 ` [Tarantool-patches] [PATCH v2 luajit 5/6] dbg: generalize extension Sergey Kaplun via Tarantool-patches
2026-05-27 12:38   ` Sergey Bronnikov via Tarantool-patches
2026-05-27 12:55     ` Sergey Kaplun via Tarantool-patches [this message]
2026-05-19 12:39 ` [Tarantool-patches] [PATCH v2 luajit 6/6] ci: introduce workflow to test debugger extension Sergey Kaplun via Tarantool-patches
2026-05-20 13:52   ` Sergey Bronnikov via Tarantool-patches
2026-05-25  7:00     ` Sergey Kaplun via Tarantool-patches
2026-05-27 10:57       ` Sergey Bronnikov via Tarantool-patches
2026-05-27 11:58         ` Sergey Kaplun 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=ahbpqVJB7zx4Azjj@root \
    --to=tarantool-patches@dev.tarantool.org \
    --cc=sergeyb@tarantool.org \
    --cc=skaplun@tarantool.org \
    --subject='Re: [Tarantool-patches] [PATCH v2 luajit 5/6] dbg: generalize extension' \
    /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