Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* How to debug a 64bits application?
@ 2003-02-06 14:50 Miroslav Novy
  2003-02-06 15:42 ` Kevin Buettner
  2003-02-06 15:58 ` Andreas Schwab
  0 siblings, 2 replies; 4+ messages in thread
From: Miroslav Novy @ 2003-02-06 14:50 UTC (permalink / raw)
  To: gdb

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
Copyright 2000 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 "sparc-sun-solaris2.8"...Dwarf Error: Cannot handle DW_FORM _strp in DWARF reader.
(gdb) r
Starting program: /Users/mnovy/work/Testy/compute2/foo
procfs:4036 -- process not stopped.
procfs: ...giving up...

						Thank you very much for the help

												Mira




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: How to debug a 64bits application?
  2003-02-06 14:50 How to debug a 64bits application? Miroslav Novy
@ 2003-02-06 15:42 ` Kevin Buettner
  2003-02-06 15:55   ` Christian Jönsson
  2003-02-06 15:58 ` Andreas Schwab
  1 sibling, 1 reply; 4+ messages in thread
From: Kevin Buettner @ 2003-02-06 15:42 UTC (permalink / raw)
  To: Miroslav Novy, gdb

On Feb 6,  3:49pm, Miroslav Novy wrote:

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

Are you using a gdb that was built using the -m64 switch?

Kevin


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: How to debug a 64bits application?
  2003-02-06 15:42 ` Kevin Buettner
@ 2003-02-06 15:55   ` Christian Jönsson
  0 siblings, 0 replies; 4+ messages in thread
From: Christian Jönsson @ 2003-02-06 15:55 UTC (permalink / raw)
  To: Kevin Buettner; +Cc: Miroslav Novy, gdb

On Thu, Feb 06, 2003 at 08:42:20AM -0700, Kevin Buettner wrote:
> On Feb 6,  3:49pm, Miroslav Novy wrote:
> 
> > 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.
> 
> Are you using a gdb that was built using the -m64 switch?

Prior to that, you might need for example ncurses built as 64 bit...

BTW, no-one to hint me on the sparc64-linux issue I have with building
gdb? See http://sources.redhat.com/ml/gdb/2003-02/msg00042.html

Cheers,

/ChJ


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: How to debug a 64bits application?
  2003-02-06 14:50 How to debug a 64bits application? Miroslav Novy
  2003-02-06 15:42 ` Kevin Buettner
@ 2003-02-06 15:58 ` Andreas Schwab
  1 sibling, 0 replies; 4+ messages in thread
From: Andreas Schwab @ 2003-02-06 15:58 UTC (permalink / raw)
  To: Miroslav Novy; +Cc: gdb

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-02-06 15:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-06 14:50 How to debug a 64bits application? Miroslav Novy
2003-02-06 15:42 ` Kevin Buettner
2003-02-06 15:55   ` Christian Jönsson
2003-02-06 15:58 ` Andreas Schwab

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox