🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gdb.bug
Article #2354

Re: Can't debug multithreaded apps on mips-sgi-irix-6.5

#2354
From: Andrew Cagney
Date: Thu, 04 Apr 2002 14:49
60 lines
3304 bytes
So that people know about this problem, can I suggest creating a 
change-request describing it.  See:

http://sources.redhat.com/gdb/bugs/

As David suggests, someone adding support for this would be great as 
well.  If you're interested and don't have an FSF assignment (or don't 
know what one is) let me know.

Andrew



> Richard Tollerton <tollert@meru.rnet.missouri.edu> writes:
> 
>>Environment: SGI Octane (MIPS R10K 64-bit mode) running IRIX 6.5; gcc
>>3.0.4 with gcc 2.95.3 tested previously. SGI development tools include the
>>MIPSPro 7.3 toolchain. gdb version is 5.1.1 with 5.0 used previously.
>>
>>Description: Any multithreaded app cannot be debugged with gdb; it hangs
>>on application startup. I've tested this with my code (~7000-line Qt C++
>>app), somebody else's GLUT app, and this one-liner test case that doesn't 
>>even use threads:



> Unfortunately, gdb does not yet support IRIX pthreads.
> Even if gdb did not hang the  result would not be useful.
> 
> There is a special shared library, libspypt.so, to interact
> with IRIX pthreads and we've not documented the interface 
> nor shipped the headers.  Oops.
> It's unfortunately not like any existing pthreads interface.
> Partly because IRIX pthreads are all *within* one process
> as of IRIX6.5 -- very different than say Linux.
> ptrace is useless for this and /proc required considerable
> extension.
> 
> The problem is we just did not get around to shipping or documenting
> anything on this (libspypt.so is shipped, but
> not the headers needed to compile code to interact
> with libspypt.so). 
> This is  not 'secret'.
> We've provided the headers (and some documentation) to
> some people, but that does not yet directly help gdb.
> 
> Yes, I'm somewhat embarrassed by this, but
> I have not had time to be any help.
> 
> Anyone wishing to volunteer on this will need help
> from us and should contact me.
> 
> Sorry. At this time your only choices are
> a) try ddd or some other gui that 'hides' the dbx-ness
>    of dbx on IRIX
>    (to the extent such do, I _still_ have not tried ddd)
> b) use dbx or Workshop on IRIX.
> 
> Again, sorry. Not what you wanted to hear.
> davea@sgi.com
Technical Details
Message-ID: <3CAC67EB.1040308@cygnus.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!sunqbc.risq.qc.ca!newsfeed.mathworks.com!news.mathworks.com!uunet!nyc.uu.net!ash.uu.net!spool0901.news.uu.net!wendy-fate.uu.net!bug-gdb
References: <200203182009.MAA49916@quasar.engr.sgi.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f5053,394854d1d37aff1
X-Google-Attributes: gidf5053,public
X-Google-ArrivalTime: 2002-04-04 06:49:20 PST
x-uunet-gateway: mr0.ash.ops.us.uu.net from bug-gdb to gnu.gdb.bug; Thu, 4 Apr 2002 14:49:18 GMT
Message-ID: <3CAC67EB.1040308@cygnus.com>
Date: Thu, 04 Apr 2002 09:49:15 -0500
From: ac131313@cygnus.com (Andrew Cagney)
User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:0.9.9) Gecko/20020328
X-Accept-Language: en-us, en
MIME-Version: 1.0
Subject: Re: Can't debug multithreaded apps on mips-sgi-irix-6.5
References: <200203182009.MAA49916@quasar.engr.sgi.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Approved: bug-gdb-request@mail.gnu.org
Newsgroups: gnu.gdb.bug
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!sunqbc.risq.qc.ca!newsfeed.mathworks.com!news.mathworks.com!uunet!nyc.uu.net!ash.uu.net!spool0901.news.uu.net!wendy-fate.uu.net!bug-gdb
Sender: bug-gdb-request@mail.gnu.org
Lines: 62