From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 41788 invoked by alias); 20 Nov 2015 09:03:38 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 41779 invoked by uid 89); 20 Nov 2015 09:03:37 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-pa0-f46.google.com Received: from mail-pa0-f46.google.com (HELO mail-pa0-f46.google.com) (209.85.220.46) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Fri, 20 Nov 2015 09:03:35 +0000 Received: by pabfh17 with SMTP id fh17so114326140pab.0 for ; Fri, 20 Nov 2015 01:03:34 -0800 (PST) X-Received: by 10.66.153.139 with SMTP id vg11mr17638191pab.118.1448010214015; Fri, 20 Nov 2015 01:03:34 -0800 (PST) Received: from E107787-LIN (gcc1-power7.osuosl.org. [140.211.15.137]) by smtp.gmail.com with ESMTPSA id b6sm15462394pbu.57.2015.11.20.01.03.31 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Fri, 20 Nov 2015 01:03:33 -0800 (PST) From: Yao Qi To: toemoss garcia Cc: gdb@sourceware.org Subject: Re: ARM BE8 support is broken References: Date: Fri, 20 Nov 2015 09:03:00 -0000 In-Reply-To: (toemoss garcia's message of "Thu, 19 Nov 2015 12:12:28 -0600") Message-ID: <86twohyrdr.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-11/txt/msg00031.txt.bz2 toemoss garcia writes: Hi, > There has been *some* support added for BE8 in GDB, but as far as > I can tell, all the patches do is treat everything as BE and > manually swap instructions to LE (see [2] for the patch > submission). This only seems to effect doing a ``load`` or when > reading a memory address as an instruction. There doesn't seem to > be any actual support for correctly reading/writing memory based > on the region of memory space. IOW, the only thing you can do > reliably for BE8 is load a program to the core (this seems to > always work correctly for BE8 images). It is known that there are some bugs in GDB for ARM BE8. > > Is there anything in the works/any interest in getting this kind > of support added? Last year, Victor Kamensky from linaro posted some patches for ARM BE8, and some patches were committed. However, looks he stopped working on this. This is the only effort related to ARM BE8 which I am aware of. > > Does anybody have experience using BE8 with GDB? How did > you "solve" this? No, I don't have experience using BE8, all my arm boards are little endian. If you want to fix them, patches are welcome. You can also post your problems here, and people are happy to help you. --=20 Yao (=E9=BD=90=E5=B0=A7)