This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: How to debug a 64bits application?
- From: Andreas Schwab <schwab at suse dot de>
- To: Miroslav Novy <mnovy at ales dot cz>
- Cc: gdb at sources dot redhat dot com
- Date: Thu, 06 Feb 2003 16:58:52 +0100
- Subject: Re: How to debug a 64bits application?
- References: <3E42841B.3090602@ales.cz>
Miroslav Novy <mnovy@ales.cz> writes:
|> I used gcc 3.2.1 (downloaded as a package from Sun freeware) with parameter -m64 (generated
|> code for 64-bit environment) on OS Solaris 2.8 on UltraSPARC-IIe cpu (SunBlade 150) and I can't
|> debug it.
|>
|> Example:
|>
|> #include <stdio.h>
|>
|> int main (int argc, char *argv[])
|> {
|> printf ("program: %s\n", argv[0]);
|>
|> return 1;
|> }
|>
|> bash-2.03$ gcc -g -m64 -Wall foo.c -o foo
|>
|> bash-2.03$ ./foo
|> program: ./foo
|>
|> bash-2.03$ gdb foo
|> GNU gdb 5.0
Your gdb is too old. Please upgrade.
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."