From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 120416 invoked by alias); 11 Jun 2017 21:09:50 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 120392 invoked by uid 89); 11 Jun 2017 21:09:49 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_SOFTFAIL autolearn=no version=3.3.2 spammy=Hx-languages-length:998 X-HELO: simark.ca Received: from simark.ca (HELO simark.ca) (158.69.221.121) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 11 Jun 2017 21:09:48 +0000 Received: by simark.ca (Postfix, from userid 33) id 444FA1E4D7; Sun, 11 Jun 2017 17:09:51 -0400 (EDT) To: Orgad Shaneh Subject: Re: [PATCH] Fix python compatibility with old versions of GDB X-PHP-Originating-Script: 33:rcube.php MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Sun, 11 Jun 2017 21:09:00 -0000 From: Simon Marchi Cc: gdb-patches@sourceware.org In-Reply-To: References: Message-ID: X-Sender: simon.marchi@polymtl.ca User-Agent: Roundcube Webmail/1.2.5 X-IsSubscribed: yes X-SW-Source: 2017-06/txt/msg00265.txt.bz2 On 2017-06-11 19:48, Orgad Shaneh wrote: > If data-directory is shared between various version of GDB, it should > work for all of them. > > There are several hasattr conditions that enable this kind of > compatibility. > > RegexpCollectionPrettyPrinter was missing a check that enables it to > work with GDB prior to 7.9, when Type.name was introduced. Hi Orgad, I still don't understand what problem this is trying to fix. It looks like you want to make older versions of GDB work with newer versions of the Python scripts in the data directory. I am not sure this is what we want. If you want multiple version of GDB in parallel on a system, they should all be compiled with a different --prefix, and they will all get their own data-directory. We should only expect a certain version of the data directory to be compatible with the version of GDB it was shipped with. Or am I missing some use case where this is not true? Simon