From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26788 invoked by alias); 5 Jan 2010 07:07:41 -0000 Received: (qmail 26775 invoked by uid 22791); 5 Jan 2010 07:07:40 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail-pw0-f49.google.com (HELO mail-pw0-f49.google.com) (209.85.160.49) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 05 Jan 2010 07:07:34 +0000 Received: by pwj12 with SMTP id 12so11484547pwj.8 for ; Mon, 04 Jan 2010 23:07:33 -0800 (PST) MIME-Version: 1.0 Received: by 10.143.154.14 with SMTP id g14mr1814584wfo.266.1262675253376; Mon, 04 Jan 2010 23:07:33 -0800 (PST) In-Reply-To: <20091221182227.GA20678@caradoc.them.org> References: <4B2CFE2C.3040105@vmware.com> <20091221040617.GA26974@caradoc.them.org> <4B2FB8CE.7020001@vmware.com> <20091221182227.GA20678@caradoc.them.org> From: Hui Zhu Date: Tue, 05 Jan 2010 07:07:00 -0000 Message-ID: Subject: Re: Is this a bug? "target remote" doesn't follow "set architecture" To: Michael Snyder , gdb@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes 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 X-SW-Source: 2010-01/txt/msg00040.txt.bz2 Hi, I tried with "--enable-targets=3Dall --enable-64-bits-bfd". But my gdb still cannot read the x8664 file. For example: head config.log This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by configure, which was generated by GNU Autoconf 2.64. Invocation command line was $ ../src/configure --disable-sid --disable-rda --disable-binutils --disable-gas --disable-ld --disable-gprof --enable-targets=3Dall --enable-64-bits-bfd ## --------- ## ## Platform. ## teawater@pek-hzhu:~/gdb/cvs/bgdball$ file vmlinux vmlinux: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, not stripped teawater@pek-hzhu:~/gdb/cvs/bgdball$ gdb/gdb vmlinux This GDB was configured as "i686-pc-linux-gnu". For bug reporting instructions, please see: ... "/home/teawater/gdb/cvs/bgdball/vmlinux": not in executable format: File format not recognized (gdb) quit teawater@pek-hzhu:~/gdb/cvs/bgdball$ file arm arm: ELF 32-bit LSB executable, ARM, version 1 (SYSV), statically linked, not stripped teawater@pek-hzhu:~/gdb/cvs/bgdball$ gdb/gdb arm GNU gdb (GDB) 7.0.50.20100105-cvs Copyright (C) 2010 Free Software Foundation, Inc. For bug reporting instructions, please see: ... "/home/teawater/gdb/cvs/bgdball/arm": not in executable format: File format is ambiguous head bfd/config.log This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by configure, which was generated by GNU Autoconf 2.64. Invocation command line was $ /home/teawater/gdb/cvs/src/bfd/configure --cache-file=3D./config.cache --with-system-zlib --disable-sid --disable-rda --disable-binutils --disable-gas --disable-ld --disable-gprof --enable-targets=3Dall --enable-64-bits-bfd --program-transform-name=3Ds,y,y, --disable-option-checking --build=3Di686-pc-linux-gnu --host=3Di686-pc-linux-gnu --target=3Di686-pc-linux-gnu --srcdir=3D../../src/bfd build_alias=3Di686-pc-linux-gnu host_alias=3Di686-pc-linux-gnu target_alias=3Di686-pc-linux-gnu CC=3Dgcc CFLAGS=3D-g -O2 LDFLAGS=3D --no-create --no-recursion Looks --enable-targets=3Dall didn't help anything. :( Hui On Tue, Dec 22, 2009 at 02:22, Daniel Jacobowitz wrote: > On Mon, Dec 21, 2009 at 10:05:02AM -0800, Michael Snyder wrote: >> Daniel Jacobowitz wrote: >> >On Sat, Dec 19, 2009 at 08:24:12AM -0800, Michael Snyder wrote: >> >>I built a gdb with target=3Di686-linux. =A0I also want to use it >> >>for remote debugging. >> > >> >Did you configure GDB such that the x86-64 support was built too? >> >It isn't by default. >> >> Configure.tgt seems to suggest that it is. > > =A0 =A0 =A0 =A0if test "x$enable_64_bit_bfd" =3D "xyes"; then > =A0 =A0 =A0 =A0 =A0 =A0# Target: GNU/Linux x86-64 > =A0 =A0 =A0 =A0 =A0 =A0gdb_target_obs=3D"amd64-tdep.o amd64-linux-tdep.o > =A0 =A0 =A0 =A0 =A0 =A0${gdb_target_obs}" > =A0 =A0 =A0 =A0fi > > Is --enable-64-bit-bfd set? > >> And "set archi" offers it as a choice. > > That's the BFD architecture list, GDB doesn't have its own. > > > -- > Daniel Jacobowitz > CodeSourcery >