From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 98553 invoked by alias); 28 Apr 2015 11:07:58 -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 98539 invoked by uid 89); 28 Apr 2015 11:07:57 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.5 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-pd0-f179.google.com Received: from mail-pd0-f179.google.com (HELO mail-pd0-f179.google.com) (209.85.192.179) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Tue, 28 Apr 2015 11:07:56 +0000 Received: by pdea3 with SMTP id a3so160812727pde.3 for ; Tue, 28 Apr 2015 04:07:54 -0700 (PDT) X-Received: by 10.68.250.194 with SMTP id ze2mr11060360pbc.24.1430219274916; Tue, 28 Apr 2015 04:07:54 -0700 (PDT) Received: from E107787-LIN (gcc1-power7.osuosl.org. [140.211.15.137]) by mx.google.com with ESMTPSA id ea4sm22044717pbb.94.2015.04.28.04.07.53 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 28 Apr 2015 04:07:54 -0700 (PDT) From: Yao Qi To: Sandra Loosemore Cc: Subject: Re: [patch 1/3, nios2] revert to using "trap 31" for breakpoints References: <55393E8C.8090804@codesourcery.com> <55393F7F.40004@codesourcery.com> Date: Tue, 28 Apr 2015 11:18:00 -0000 In-Reply-To: <55393F7F.40004@codesourcery.com> (Sandra Loosemore's message of "Thu, 23 Apr 2015 12:52:47 -0600") Message-ID: <86egn4wlx4.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: 2015-04/txt/msg01033.txt.bz2 Sandra Loosemore writes: > -/* Implement the breakpoint_from_pc gdbarch hook. */ > +/* Implement the breakpoint_from_pc gdbarch hook. > + Note that the Nios II ABI for Linux requires "trap 31" > + as the breakpoint, and we use that consistently on all targets. */ Please quote the original statement from NIOS 2 ABI, "Userspace programs should not use the break instruction and userspace debuggers should not insert one." and "Userspace breakpoints are accomplished using the trap instruction with immediate operand 31 (all ones)." OK with this change. --=20 Yao (=E9=BD=90=E5=B0=A7)