From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 45861 invoked by alias); 18 Jul 2016 10:04:40 -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 44939 invoked by uid 89); 18 Jul 2016 10:04:39 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mail-oi0-f43.google.com Received: from mail-oi0-f43.google.com (HELO mail-oi0-f43.google.com) (209.85.218.43) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Mon, 18 Jul 2016 10:04:29 +0000 Received: by mail-oi0-f43.google.com with SMTP id l65so159116202oib.1 for ; Mon, 18 Jul 2016 03:04:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=6vjTA24UG0hT0cexp8WKOOZLg79ETqH27SkAWOz6hRc=; b=dF7EWjpgs1RgWKKZ6YQXas7uW3KOmJAWgJ7pJYtPccXEw2lNes7gP7IMZJ3isHMzf2 UhtYPeCbC3eym1FYD1n8an7BcmsDAAcbcBt+JDwQllQETdFd5MoQi90xaYw1/Oz1ZMJl 9fuSpSio5xIlVN9HwgeA9ELUmDybYlEyGsVrp8ZFa01XX3R5zFpf5xvSewSqQtmSc1es EbIk+xZLzXxc8NuWKRn86TWAU27Vd6AVfoxqtrkO1DqziX5oJ8IKmciQUeWJ0U5F7MKk m1ZoC70KV9z/Ugp2K6u19OcorFdaRiz1qQJYGpos50PUJxe3YVLuVzA3j8VtdHIvHS/X M/3g== X-Gm-Message-State: ALyK8tIwSVNHGvnrT9l/587tKPKDJLItIdacfUUwq9BcnOQbrmP1TF1fIdjpbLJBfHLIKd9nSs4GbTOAr95TuQ== X-Received: by 10.202.62.196 with SMTP id l187mr14846825oia.142.1468836267434; Mon, 18 Jul 2016 03:04:27 -0700 (PDT) MIME-Version: 1.0 Received: by 10.202.105.138 with HTTP; Mon, 18 Jul 2016 03:04:27 -0700 (PDT) In-Reply-To: <20160717143003.GA12147@host1.jankratochvil.net> References: <20160717143003.GA12147@host1.jankratochvil.net> From: Yao Qi Date: Mon, 18 Jul 2016 10:04:00 -0000 Message-ID: Subject: Re: [testsuite patch] Skip py-unwind.exp on x86_64 -m32 To: Jan Kratochvil Cc: "gdb-patches@sourceware.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2016-07/txt/msg00184.txt.bz2 On Sun, Jul 17, 2016 at 3:30 PM, Jan Kratochvil wrote: > Hi, > > (gdb) source /home/jkratoch/redhat/gdb-clean/gdb/testsuite/outputs/gdb.py= thon/py-unwind/py-unwind.py^M > Python script imported^M > Python Exception Bad register: ^M > (gdb) FAIL: gdb.python/py-unwind.exp: import python scripts > > class TestUnwinder(Unwinder): > AMD64_RBP =3D 6 > AMD64_RSP =3D 7 > AMD64_RIP =3D 16 > > This was already discussed here: > Re: [testsuite patch] Fix gdb.btrace/tailcall-only.exp errors on = x86_64-m32 > https://sourceware.org/ml/gdb-patches/2016-04/msg00222.html > Message-ID: <20160411195537.GA22299@host1.jankratochvil.net> > but no GDB maintainer gave an answer how to run testsuite in cross-arch m= ode. > > This problem is slightly different from "how to run testsuite in cross-arch mode", IMO. py-unwind.py defines a unwinder, in an arch-specific way. It has nothing wrong. However, py-unwind.py should be more portable, which means, it should define unwdiner for each arch it supports, and py-unwind.exp or py-unwind.py chooses the right python unwinder according to the arch. IOW, we need to define a python unwinder for i386, and use it when arch is i386. --=20 Yao (=E9=BD=90=E5=B0=A7)