From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 46252 invoked by alias); 11 Oct 2016 14:14:36 -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 46227 invoked by uid 89); 11 Oct 2016 14:14:35 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mail-pa0-f66.google.com Received: from mail-pa0-f66.google.com (HELO mail-pa0-f66.google.com) (209.85.220.66) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 11 Oct 2016 14:14:25 +0000 Received: by mail-pa0-f66.google.com with SMTP id fn2so825624pad.1 for ; Tue, 11 Oct 2016 07:14:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=nbALr4JXFoUXTQHXsK7zw7Ae3ef4z6X7If8e0FgMU/o=; b=HHxQzGpJx4bs0l34i3Hxaw0LesGaXvTFmwtH3/O7fj9ISWG3NR2kkPaptts8RA3qya GxmLAEb9Ik+vvqQKXIWFjYRUOO+KV9UeUH90rYSu++i/IvdEmye9ynjGQAiNQUQMv90u i8D3/ReRUjPpoUgX4TV8Dpufwz1l8q61kJb9q3GbvuiXmarf34AAuHeYs4fEHaIoHr69 upoDS7heurUiTNHDEdQKvEt6OGEai2tR9Mjf6g19iQX9IOmQnd8jzU+C1GKa30DZ9GH7 /x4tF0g89bEOFnp321yV/LTOzvqT2fVF1zkkIyXRvwN436mgQE567z6Qu9ttLyAPbAdx +ygg== X-Gm-Message-State: AA6/9RlqXOWCAFylU99ONzob9O3BfQ1F20AydmxKJew+qhpOnRJorcq1yEhHfsOwk3cakg== X-Received: by 10.66.50.40 with SMTP id z8mr7235993pan.109.1476195264018; Tue, 11 Oct 2016 07:14:24 -0700 (PDT) Received: from E107787-LIN (gcc1-power7.osuosl.org. [140.211.15.137]) by smtp.gmail.com with ESMTPSA id 70sm4750511pfc.50.2016.10.11.07.14.17 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Tue, 11 Oct 2016 07:14:19 -0700 (PDT) From: Yao Qi To: Anton Kolesov Cc: gdb-patches@sourceware.org, Francois Bedard Subject: Re: [PATCH 3/3] arc: Add support for Newlib References: <1475843870-11449-1-git-send-email-Anton.Kolesov@synopsys.com> <1475843870-11449-3-git-send-email-Anton.Kolesov@synopsys.com> Date: Tue, 11 Oct 2016 14:14:00 -0000 In-Reply-To: <1475843870-11449-3-git-send-email-Anton.Kolesov@synopsys.com> (Anton Kolesov's message of "Fri, 7 Oct 2016 15:37:50 +0300") Message-ID: <86fuo39dn5.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2016-10/txt/msg00255.txt.bz2 Anton Kolesov writes: Hi Anton, > +/* Implement the 'init_osabi' method of struct gdb_osabi_handler. */ > + > +static void > +arc_newlib_init_osabi (struct gdbarch_info info, struct gdbarch *gdbarch) > +{ > + if (arc_debug) > + debug_printf ("arc-newlib: Initialization.\n"); > + > + struct gdbarch_tdep *tdep =3D gdbarch_tdep (gdbarch); > + > + /* Offset of original PC in longjmp jump buffer (in registers). Value= of PC > + offset can be found in newlib/libc/machine/arc/setjmp.S. */ > + tdep->jb_pc =3D 18; What is jb_pc on arc-linux? Is it 18 or a different one? If it is 18 too, we can use arc_get_longjmp_target for both newlib and linux. Patch #1 is not needed. --=20 Yao (=E9=BD=90=E5=B0=A7)