Tarantool development patches archive
 help / color / mirror / Atom feed
From: Igor Munkin <imun@tarantool.org>
To: Oleg Babin <olegrok@tarantool.org>
Cc: tarantool-patches@dev.tarantool.org,
	Alexander Turenko <alexander.turenko@tarantool.org>
Subject: Re: [Tarantool-patches] [PATCH] gdb: fix the extension to be loaded with Python 2
Date: Mon, 6 Jul 2020 13:24:35 +0300	[thread overview]
Message-ID: <20200706102435.GF5559@tarantool.org> (raw)
In-Reply-To: <8c8cbc95-3d7b-6c92-669c-c040efdf8147@tarantool.org>

Oleg,

Thanks for your review!

On 06.07.20, Oleg Babin wrote:
> Hi! Thanks for your patch!
> 
> I just add that problem appeared on CentOS 7 that is still popular.

As I mentioned in the commit message the problem relates to gdb built
against Python 2 (viz. 2.7.5, since I can't claim anything about later
Python 2 versions). CentOS 7 is just particular distro providing this
gdb and I guess one can install a new one from SCL. However, as we
discussed with Sasha some time before it would be nice to support the
toolchain provided by default. Thereby we should support Python 2 even
after its EOL until CentOS 7 is gone.

> 
> But seems your patch solves a problem. LGTM.

Added your tag:
| Reviewed-by: Oleg Babin <olegrok@tarantool.org>

> 
> 
> On 04/07/2020 22:58, Igor Munkin wrote:
> > There was a mystic error when the extension was loaded against old gdb
> > versions build against Python 2:

Meh, this line looks bad, I've reworded it a bit:
| There was a mystic error when the extension was loaded by the old gdb
| versions built against Python 2:

Updated the upstream.

> > | (gdb) source luajit-gdb.py
> > | Traceback (most recent call last):
> > |   File "luajit-gdb.py", line 702, in <module>
> > |     load(None)
> > |   File "luajit-gdb.py", line 699, in load
> > |     'lj-gc': LJGC,
> > |   File "luajit-gdb.py", line 687, in init
> > |     command(name)
> > |   File "luajit-gdb.py", line 468, in __init__
> > |     gdb.write('{} command initialized\n'.format(name))
> > | ValueError: sequence.index(x): x not in sequence

-- 
Best regards,
IM

  reply	other threads:[~2020-07-06 10:34 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-04 19:58 Igor Munkin
2020-07-06  5:50 ` Oleg Babin
2020-07-06 10:24   ` Igor Munkin [this message]
2020-07-22 10:46 ` Sergey Ostanevich
2020-07-22 12:00   ` Igor Munkin
2020-07-22 12:46 ` Kirill Yukhin

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=20200706102435.GF5559@tarantool.org \
    --to=imun@tarantool.org \
    --cc=alexander.turenko@tarantool.org \
    --cc=olegrok@tarantool.org \
    --cc=tarantool-patches@dev.tarantool.org \
    --subject='Re: [Tarantool-patches] [PATCH] gdb: fix the extension to be loaded with Python 2' \
    /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