This is the mail archive of the 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]

How to debug a 64bits application?

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.


#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: up...

						Thank you very much for the help


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