From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32713 invoked by alias); 11 Aug 2015 16:50:49 -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 32703 invoked by uid 89); 11 Aug 2015 16:50:49 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.7 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-ig0-f176.google.com Received: from mail-ig0-f176.google.com (HELO mail-ig0-f176.google.com) (209.85.213.176) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Tue, 11 Aug 2015 16:50:48 +0000 Received: by igui7 with SMTP id i7so44323551igu.1 for ; Tue, 11 Aug 2015 09:50:46 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.50.50.69 with SMTP id a5mr7974468igo.68.1439311846640; Tue, 11 Aug 2015 09:50:46 -0700 (PDT) Received: by 10.36.248.6 with HTTP; Tue, 11 Aug 2015 09:50:46 -0700 (PDT) Date: Tue, 11 Aug 2015 16:50:00 -0000 Message-ID: Subject: gdb with powerpc From: Ran Shalit To: linuxppc-dev@lists.ozlabs.org, gdb Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2015-08/txt/msg00011.txt.bz2 Hello, I would like to ask if anyone tried remote debugging with gdb/gdbserver on powerpc. I've tried to cross-compile gdb for powerpc, but I get into troubles. I am using the following compiler: powerpc-buildroot-linux-gnu-gcc (Buildroot 2014.11) 4.8.3 I've downloaded several version, gdb version 6 and above all have same error as following: gcc -c -g -O2 -I. -I.././gdb -I.././gdb/config -DLOCALEDIR=3D"\"/home/tigran/gdb/share/locale\"" -DHAVE_CONFIG_H -I.././gdb/../include/opcode -I.././gdb/../readline/.. -I../bfd -I.././gdb/../bfd -I.././gdb/../include -I../intl -I.././gdb/../intl -DMI_OUT=3D1 -DTUI=3D1 -Wimplicit -Wreturn-type -Wcomment -Wtrigraphs -Wformat -Wparentheses -Wpointer-arith -Wformat-nonliteral -Wunused-label -Wunused-function -Wno-pointer-sign -Wuninitialized ppc-linux-nat.c ppc-linux-nat.c: In function =E2=80=98ppc_register_u_addr=E2=80=99: ppc-linux-nat.c:186:47: error: =E2=80=98PT_R0=E2=80=99 undeclared (first us= e in this function) u_addr =3D ((regno - tdep->ppc_gp0_regnum + PT_R0) * wordsize); Trying to compile older version 5.3 also fails in different way: gcc -c -g -O2 -DDEFAULT_INLINE=3DPSIM_INLINE_LOCALS -DWITH_HOST_BYTE_ORDER=3DLITTLE_ENDIAN -DWITH_SMP=3D5 -DHAVE_TERMIOS_STRUCTURE -DHAVE_TERMIOS_CLINE -DHAVE_DEVZERO -I. -I. -I./../../include -I../../bfd -I./../../bfd -I../../gdb -I./../../gdb -I./../../gdb/config -I./../../mmalloc -I../../intl -I./../../intl support.c In file included from cpu.h:25:0, from support.c:27: ./ppc-instructions: In function =E2=80=98convert_to_integer=E2=80=99: idecode_fields.h:105:31: error: label at end of compound statement #define LABEL(dest) XCONCAT4(label__,dest,__,MY_PREFIX) ^ As an alternative, Is anyone familiar with binary package with gdb/gdbserver for powerpc used with x86 host ? Best Regards, Ran