This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Does gdb-6.6 support -m64 apps?


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 <http://gnu.org/licenses/gpl.html>
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" <bauerman@br.ibm.com>
To: "Robert Gries" <gries@pasemi.com>
Cc: gdb@sourceware.org, "Lou Falek" <falek@pasemi.com>
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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]