From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8923 invoked by alias); 17 May 2003 18:34:00 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 8892 invoked from network); 17 May 2003 18:33:59 -0000 Received: from unknown (HELO Cantor.suse.de) (213.95.15.193) by sources.redhat.com with SMTP; 17 May 2003 18:33:59 -0000 Received: from Hermes.suse.de (Hermes.suse.de [213.95.15.136]) by Cantor.suse.de (Postfix) with ESMTP id D76AE14834; Sat, 17 May 2003 20:33:58 +0200 (MEST) Received: from aj by arthur.inka.de with local (Exim 4.12) id 19H6VI-00048D-00; Sat, 17 May 2003 20:33:56 +0200 To: "Mark M. Kettenis" Cc: gdb-patches@sources.redhat.com, Michal Ludvig Subject: Re: [PATCH/i386newframe] amd64newframe From: Andreas Jaeger Date: Sat, 17 May 2003 18:34:00 -0000 Message-ID: User-Agent: Gnus/5.1003 (Gnus v5.10.3) XEmacs/21.4 (Portable Code, linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2003-05/txt/msg00313.txt.bz2 Mark, building the kettenis-newframe-branch on x86-64 I get: make[1]: *** No rule to make target `inux-proc.o', needed by `libgdb.a'. Stop. make[1]: Leaving directory `/usr/src/aj/gdb-test/build/gdb' make: *** [all-gdb] Error 2 Note the following: ./config/i386/x86-64linux.mh: proc-service.o thread-db.o lin-lwp.o inux-proc.o gcore.o After fixing this problem, gdb build fine but running it I got: byrd:/usr/src/aj/gdb-test/build/gdb:[0]$ ./gdb ~/tmp/a.out A handler for the OS ABI "GNU/Linux" is not built into this configuration of GDB. Attempting to continue with the default i386 settingsGNU gdb 2003-05-04-cvs Copyright 2003 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "x86_64-unknown-linux-gnu"... Setting up the environment for debugging gdb. .gdbinit:5: Error in sourced command file: Function "internal_error" not defined. (gdb) b main Breakpoint 1 at 0x40040c: file b.c, line 4. (gdb) r Starting program: /suse/aj/tmp/a.out Breakpoint 1, main () at b.c:4 4 lg1[1] = 1; (gdb) n warning: Unmapped DWARF Register #16 encountered warning: Unmapped DWARF Register #16 encountered 5 lg2[1] = 1; (gdb) warning: Unmapped DWARF Register #16 encountered 6 return 0; (gdb) warning: Unmapped DWARF Register #16 encountered 7 } And this also: $ ./gdb /bin/ls A handler for the OS ABI "GNU/Linux" is not built into this configuration of GDB. Attempting to continue with the default i386 settingsGNU gdb 2003-05-04-cvs Copyright 2003 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "x86_64-unknown-linux-gnu"... (no debugging symbols found)... Setting up the environment for debugging gdb. .gdbinit:5: Error in sourced command file: Function "internal_error" not defined. (gdb) b main Function "main" not defined. (gdb) r Starting program: /bin/ls (no debugging symbols found)...[New Thread 16384 (LWP 4561)] ../../src/gdb/arch-utils.c:443: internal-error: generic_register_size: Assertion `regnum >= 0 && regnum < NUM_REGS + NUM_PSEUDO_REGS' failed. A problem internal to GDB has been detected. Further debugging may prove unreliable. I don't have time to go into details here but hope that Michal can. Andreas -- Andreas Jaeger SuSE Labs aj@suse.de private aj@arthur.inka.de http://www.suse.de/~aj