Unix Technical Forum

GDB Won't Break On Solaris 64 Executables

This is a discussion on GDB Won't Break On Solaris 64 Executables within the Sun Solaris Administration forums, part of the Solaris Operating System category; --> Gentle People: I am having trouble getting GDB breakpoints to work on Solaris 64 bit executables. Have any of ...


Go Back   Unix Technical Forum > Unix Operating Systems > Solaris Operating System > Sun Solaris Administration

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-16-2008, 08:07 AM
Thomas Dineen
 
Posts: n/a
Default GDB Won't Break On Solaris 64 Executables

Gentle People:

I am having trouble getting GDB breakpoints
to work on Solaris 64 bit executables.

Have any of you seen this problem? If yes
what was the work around?

Are there better debuggers for Solaris 64 bit
executables?

What debugger do the 64 bit developers use?

Also please note any Users Manuals for alternate
debuggers.

Your help will be greatly appreciated.

Thomas Dineen

# gdb test_hello_new64
GNU gdb 6.2.1
Copyright 2004 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"...(no debugging
symbols found)...
(gdb) b _start
Breakpoint 1 at 0x100000f20
(gdb) r
Starting program:
/export/home/tools/soft_dev/examples/test_hello/test/test_hello_new64
procfs:4265 -- process not stopped.
procfs: ...giving up...
(gdb)

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-16-2008, 08:07 AM
Michael Vilain
 
Posts: n/a
Default Re: GDB Won't Break On Solaris 64 Executables

In article <hcUod.3393$uV6.395@newsread3.news.pas.earthlink.n et>,
Thomas Dineen <tdineen@ix.netcom.com> wrote:

> Gentle People:
>
> I am having trouble getting GDB breakpoints
> to work on Solaris 64 bit executables.
>
> Have any of you seen this problem? If yes
> what was the work around?
>
> Are there better debuggers for Solaris 64 bit
> executables?
>
> What debugger do the 64 bit developers use?
>
> Also please note any Users Manuals for alternate
> debuggers.
>
> Your help will be greatly appreciated.
>
> Thomas Dineen
>
> # gdb test_hello_new64
> GNU gdb 6.2.1
> Copyright 2004 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"...(no debugging
> symbols found)...
> (gdb) b _start
> Breakpoint 1 at 0x100000f20
> (gdb) r
> Starting program:
> /export/home/tools/soft_dev/examples/test_hello/test/test_hello_new64
> procfs:4265 -- process not stopped.
> procfs: ...giving up...
> (gdb)


I thought this was one of the selling points for Sun's compilers and
tools. Back when gcc didn't do 64-bit very well (3.0 IIRC), Sun was the
only game in town for 64-bit compiles.

I take it you built gcc and gdb on a Ultra running a 64-bit kernel.
Isn't the error message "no debugging symbols found" from compiling
without "-g"? What happens if you build test_hello_new64 with -g?

--
DeeDee, don't press that button! DeeDee! NO! Dee...



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-16-2008, 08:07 AM
Alan Coopersmith
 
Posts: n/a
Default Re: GDB Won't Break On Solaris 64 Executables

Thomas Dineen <tdineen@ix.netcom.com> writes in comp.unix.solaris:
| Are there better debuggers for Solaris 64 bit
|executables?
|
| What debugger do the 64 bit developers use?

The 64-bit developers at Sun usually use the dbx debugger included with
the Sun Studio compilers, or the mdb debugger included with the OS.
(dbx is more like gdb - mdb takes a lot more work to learn and is more of
a forensic debugger than an interactive one, but is better suited for
kernel debugging. I normally use dbx unless there's an mdb plugin
module I need to use, simply because that's what I know best.)

| Also please note any Users Manuals for alternate
|debuggers.

Sun Studio 9 dbx: http://docs.sun.com/app/docs/doc/817-6692
Solaris 9 mdb: http://docs.sun.com/app/docs/doc/806-6545

--
__________________________________________________ ______________________
Alan Coopersmith * alanc@alum.calberkeley.org * Alan.Coopersmith@Sun.COM
http://www.csua.berkeley.edu/~alanc/ * http://blogs.sun.com/alanc/
Working for, but definitely not speaking for, Sun Microsystems, Inc.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 05:21 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com