This is the mail archive of the gdb@sources.redhat.com 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: How to debug a 64bits application?


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."


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