Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* gdb under sparc64-sun-solaris2.9
@ 2003-10-20 14:52 e.karge
  2003-10-20 16:15 ` Joel Brobecker
  0 siblings, 1 reply; 3+ messages in thread
From: e.karge @ 2003-10-20 14:52 UTC (permalink / raw)
  To: gdb

hi everybody!

I've got a problem debuging programs which are using the 64-bit mode under
solaris 9.

I use gcc/g++ 3.3 on a clean solaris 9/sparc installation.

I build gdb-5.3 and gdb-6.0 with no special configure options.
It works well with 32-bit executables, but if I try to run a 64-bit
excuteable i get following messages:

  bash-2.05$ gdb 64bit.debug
  GNU gdb 5.3
  ...
  This GDB was configured as "sparc64-sun-solaris2.9"...
  (gdb) break main
  Breakpoint 1 at 0x100000850: file sizeof.c, line 48.

  (gdb) run
  Starting program: /export/shared/home/run/test/64bit.debug
  procfs: target_wait (wait_for_stop) line 3907, /proc/20752: Value too
large for defined data type.

  (gdb) continue
  Continuing.
  Warning:
  Cannot insert breakpoint 1.
  Error accessing memory address 0x100000850: I/O error.
  The same program may be running in another process.
  (gdb)


it's the same with gdb-6.0.
I would be grateful for any suggestions,
   Eric.


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

* Re: gdb under sparc64-sun-solaris2.9
  2003-10-20 14:52 gdb under sparc64-sun-solaris2.9 e.karge
@ 2003-10-20 16:15 ` Joel Brobecker
  2003-10-21 11:45   ` e.karge
  0 siblings, 1 reply; 3+ messages in thread
From: Joel Brobecker @ 2003-10-20 16:15 UTC (permalink / raw)
  To: e.karge; +Cc: gdb

> I build gdb-5.3 and gdb-6.0 with no special configure options.
> It works well with 32-bit executables, but if I try to run a 64-bit
> excuteable i get following messages:

I think you need to build it with -m64. GDB needs to be 64bits to be
able to debug 64bits executables.

-- 
Joel


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

* Re: gdb under sparc64-sun-solaris2.9
  2003-10-20 16:15 ` Joel Brobecker
@ 2003-10-21 11:45   ` e.karge
  0 siblings, 0 replies; 3+ messages in thread
From: e.karge @ 2003-10-21 11:45 UTC (permalink / raw)
  To: Joel Brobecker; +Cc: e.karge, gdb

>> I build gdb-5.3 and gdb-6.0 with no special configure options.
>> It works well with 32-bit executables, but if I try to run a 64-bit
>> excuteable i get following messages:
>
> I think you need to build it with -m64. GDB needs to be 64bits to be
> able to debug 64bits executables.
>
> --
> Joel

i build it with "make CFLAGS=-m64 CXX=-m64", works fine.
thanks a lot,
   Eric.


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

end of thread, other threads:[~2003-10-21 11:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-20 14:52 gdb under sparc64-sun-solaris2.9 e.karge
2003-10-20 16:15 ` Joel Brobecker
2003-10-21 11:45   ` e.karge

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