Debugger for graphical, multi-threaded app

Debugger for graphical, multi-threaded app

Post by Kevin Brow » Mon, 25 Dec 2000 14:58:23



Is there a good de* for an X app that uses opengl through IRIS
Performer and is also multi-threaded.  GDB seems to *on the thread
library I use (pthread), and also complains a lot because the program
uses dynamic linking.  I would like something similar to Visual Studio
6.0 on windows, something that can do breakpoints, stack traces, and
print outs of certain variables.  Every de* I've run across seems
to use gdb, and gdb just doesn't like my program.  I'm using Mandrake
7.1.

If anyone can point me to a good de* (gdb based or otherwise, I can
always take out the threads for debugging), I would appreciate it very
much.

Thanks,

Kevin

 
 
 

Debugger for graphical, multi-threaded app

Post by James Cowni » Sat, 30 Dec 2000 22:35:54



> Is there a good de* for an X app that uses opengl through IRIS
> Performer and is also multi-threaded.  GDB seems to *on the thread
> library I use (pthread), and also complains a lot because the program
> uses dynamic linking.  I would like something similar to Visual Studio
> 6.0 on windows, something that can do breakpoints, stack traces, and
> print outs of certain variables.  Every de* I've run across seems
> to use gdb, and gdb just doesn't like my program.  I'm using Mandrake
> 7.1.

> If anyone can point me to a good de* (gdb based or otherwise, I can
> always take out the threads for debugging), I would appreciate it very
> much.

> Thanks,

> Kevin


Give our product TotalView a go. It supports dynamically loaded libraries
and threads. We verify on Red Hat, but it should all work on Mandrake.

It's a commercial product, so if you want to continue to use it you'll
need to buy a license, but you can download the full product and get a demo
license from our WWW site below so you get to try it first.

It is completely unrelated to gdb...

-- Jim


Etnus, LLC.     +44 117 9071438
http://www.veryComputer.com/

 
 
 

Debugger for graphical, multi-threaded app

Post by Jonathan Jefferie » Thu, 04 Jan 2001 07:20:37


How much? There doesn't seem to be any pricing guides on
your website.
J.


> Give our product TotalView a go. It supports dynamically loaded libraries
> and threads. We verify on Red Hat, but it should all work on Mandrake.

> It's a commercial product, so if you want to continue to use it you'll
> need to buy a license, but you can download the full product and get a demo
> license from our WWW site below so you get to try it first.

--
================================================================
Jonathan Jefferies
Senior Software Engineer
ARM, Incorporated
Walnut Creek Design Center     Tel: 925-94409690 Ext. 13
1981 North Broadway, Suite 245 Fax: 925-944-9612

================================================================
 
 
 

Debugger for graphical, multi-threaded app

Post by Ming Ka » Fri, 05 Jan 2001 07:26:08


Hi,

I am having trouble debugging my pthread-based program in GDB as well. But
everywhere I looked it seems that GDB 5 is supposed to be LinuxThread-aware
but whenever I do 'info threads' I get no response.

I compiled with -ggdb -DREENTRANT

So am I doing something wrong or is this what you mean, Kevin, by "it chokes
on the thread library you use," that they don't work with each other?

Ming Kao



> > Is there a good de* for an X app that uses opengl through IRIS
> > Performer and is also multi-threaded.  GDB seems to *on the thread
> > library I use (pthread), and also complains a lot because the program
> > uses dynamic linking.  I would like something similar to Visual Studio
> > 6.0 on windows, something that can do breakpoints, stack traces, and
> > print outs of certain variables.  Every de* I've run across seems
> > to use gdb, and gdb just doesn't like my program.  I'm using Mandrake
> > 7.1.

> > If anyone can point me to a good de* (gdb based or otherwise, I can
> > always take out the threads for debugging), I would appreciate it very
> > much.

> > Thanks,

> > Kevin

> Give our product TotalView a go. It supports dynamically loaded libraries
> and threads. We verify on Red Hat, but it should all work on Mandrake.

> It's a commercial product, so if you want to continue to use it you'll
> need to buy a license, but you can download the full product and get a
demo
> license from our WWW site below so you get to try it first.

> It is completely unrelated to gdb...

> -- Jim


> Etnus, LLC.     +44 117 9071438
> http://www.veryComputer.com/

 
 
 

Debugger for graphical, multi-threaded app

Post by Kevin Brow » Sun, 07 Jan 2001 16:17:18


I haven't compiled my program using those options, but whenever I have pthreads
running in the program, gdb either hangs or stops on strange system messages
when something happens with the threads.  When I compile the programs so that
everything runs in a single thread, gdb has no complaints, even though the same
stuff that was done in the pthreads is now being done in the main execution
loop.  I'm sorry I couldn't be more specific about the errors gdb spits out, I
haven't been to work for a while to mess with it.  As for gdb working with
pthreads, I'm just gonna say that gdb and pthreads are mortal enemies and any
program should either use one or the other.  If someone could get a pthread-ed
program working with gdb, I would be glad to hear about it.

Kevin


> Hi,

> I am having trouble debugging my pthread-based program in GDB as well. But
> everywhere I looked it seems that GDB 5 is supposed to be LinuxThread-aware
> but whenever I do 'info threads' I get no response.

> I compiled with -ggdb -DREENTRANT

> So am I doing something wrong or is this what you mean, Kevin, by "it chokes
> on the thread library you use," that they don't work with each other?

> Ming Kao




> > > Is there a good de* for an X app that uses opengl through IRIS
> > > Performer and is also multi-threaded.  GDB seems to *on the thread
> > > library I use (pthread), and also complains a lot because the program
> > > uses dynamic linking.  I would like something similar to Visual Studio
> > > 6.0 on windows, something that can do breakpoints, stack traces, and
> > > print outs of certain variables.  Every de* I've run across seems
> > > to use gdb, and gdb just doesn't like my program.  I'm using Mandrake
> > > 7.1.

> > > If anyone can point me to a good de* (gdb based or otherwise, I can
> > > always take out the threads for debugging), I would appreciate it very
> > > much.

> > > Thanks,

> > > Kevin

> > Give our product TotalView a go. It supports dynamically loaded libraries
> > and threads. We verify on Red Hat, but it should all work on Mandrake.

> > It's a commercial product, so if you want to continue to use it you'll
> > need to buy a license, but you can download the full product and get a
> demo
> > license from our WWW site below so you get to try it first.

> > It is completely unrelated to gdb...

> > -- Jim


> > Etnus, LLC.     +44 117 9071438
> > http://www.veryComputer.com/

 
 
 

1. Linking multi-threaded app for single- and multi-processor

I believe I have a very straight-forward question.
I want to link a multi-threaded app under AIX 4.2
and be able to run this app under AIX 4.2 and 4.3,
on both single- and multi-processor boxes.

Currently I link this app the same way (using xlC) I did under
AIX 4.1 using BOS thread support and statically
linking the runtime libraries. It runs fine on
4.2 and 4.3 single-processor boxes.  It seems to
function properly on 4.3 multi-processor boxes too,
with one exception: dates produced by the program
are usually from January 1970.

I have tried to dynamically link the runtime libraries
(and still believe that's appropriate) but then most
of my clients aren't able to run the app at all.  The
message produced by AIX varies, but says something like:
   function such-and-such not found in csh (or ksh).
   Cannot load a module with a bad format.

So the questions are: is it possible to link a multi-threaded
app in such a way that it will run everywhere?

and

what's a sample link statement that would accomplish this?

Thanks for any help.

--

Mitch Meyer

       ("`-''-/").___..--''"`-._
        `6_ 6  )   `-.  (     ).`-.__.`)
        (_Y_.)'  ._   )  `._ `. ``-..-'
      _..`--'_..-_/  /--'_.' ,'
     (il),-''  (li),'  ((!.-'

2. open hardware standard?

3. AIX 4.1 Multi-threaded debugger

4. kernel 1.3.95, modules, and serial.o...

5. multi-threaded debuggers

6. Copying one floppy to another - same drive

7. HELP: Porting multi-threaded Sunos4.1.3 app. to Solaris

8. Kernel 2.4.16 Problem With Ftape 4.04a

9. profiling multi-threaded app on Sun

10. Opinions on this multi-threaded app

11. Semaphore/thread mutex in multi threaded app.

12. Problem with errno on Solaris 2.5 multi-threaded app

13. SIGALRM and multi-threaded app