From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12472 invoked by alias); 11 Sep 2007 20:12:50 -0000 Received: (qmail 12462 invoked by uid 22791); 11 Sep 2007 20:12:50 -0000 X-Spam-Check-By: sourceware.org Received: from elcamino.pasemi.com (HELO elcamino.pasemi.com) (67.155.108.98) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 11 Sep 2007 20:12:46 +0000 Date: Tue, 11 Sep 2007 20:31:00 -0000 From: Robert Gries To: Thiago Jung Bauermann Cc: gdb@sourceware.org, Lou Falek , Robert Gries , Olof Johansson , Peter Bannon , Puneet Kumar Message-ID: <1487295349.28571189541563660.JavaMail.root@postoffice> In-Reply-To: <1189540861.10254.65.camel@localhost.localdomain> Subject: Re: Does gdb-6.6 support -m64 apps? MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit 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: 2007-09/txt/msg00109.txt.bz2 The new release just works, no -m64 needed: gries@orion-059:/proj/ext3/users/gries/math/gmpbench-0.1$ /proj/ext3/users/gries/math/gdb-6.6.50.20070911/gdb/gdb test_rsa GNU gdb 6.6.50.20070911 Copyright (C) 2007 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "powerpc64-unknown-linux-gnu"... Using host libthread_db library "/lib/libthread_db.so.1". (gdb) r Starting program: /proj/ext3/users/gries/math/gmpbench-0.1/test_rsa warning: Breakpoint address adjusted from 0x100b2bf8 to 0x10064b6c. size of n 66 00aa36abce88acfdff55523c7fc4523f90efa00df3774a259f2e62b4c5d99cb5adb300a0285e5301930e0c70fb6876939ce616ce624a11e0086d341ebcaca0a1f500 pq abefeafff53ff53fef0f77adfebcd9fff3a2df393efffffbe7ee6bf0ef5feeaf50 Program received signal SIGABRT, Aborted. 0x1004584c0000d032 in ?? () (gdb) where #0 0x1004584c0000d032 in ?? () #1 0x10016e6800000000 in ?? () Backtrace stopped: previous frame inner to this frame (corrupt stack?) (gdb) ----- Original Message ----- From: "Thiago Jung Bauermann" To: "Robert Gries" Cc: gdb@sourceware.org, "Lou Falek" Sent: Tuesday, September 11, 2007 1:01:01 PM (GMT-0800) America/Los_Angeles Subject: Re: Does gdb-6.6 support -m64 apps? On Tue, 2007-09-11 at 12:06 -0700, Robert Gries wrote: > gries@orion-059:/proj/ext3/users/gries/math/gmpbench-0.1$ /proj/ext3/users/gries/math/gdb-6.6/gdb/gdb rsa > GNU gdb 6.6 > Copyright (C) 2006 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 "powerpc64-unknown-linux-gnu"... > Using host libthread_db library "/lib/libthread_db.so.1". > (gdb) r 128 > Starting program: /proj/ext3/users/gries/math/gmpbench-0.1/rsa 128 > warning: Breakpoint address adjusted from 0x100ab998 to 0x10000180. > > Program received signal SIGTRAP, Trace/breakpoint trap. > 0x100001800002d032 in ?? () To debug 64 bit programs, your GDB should be compiled with -m64 as well. Is this the case? -- []'s Thiago Jung Bauermann Software Engineer IBM Linux Technology Center