gdb & pthreads in Alpha linux 2.0.36

gdb & pthreads in Alpha linux 2.0.36

Post by Larry Williamso » Wed, 07 Jul 1999 04:00:00



Someone here is working on an application that runs on an Alpha Linux
2.0.36 machine.  The code is written in C++ (egcs-1.1.1).

It appears gdb v4.18 does not support debugging pthread'd apps.

Does anyone know of any effort to add pthread support to the Alpha
port of gdb ?  Is there an alternative de* that could be used in
this environment?

 
 
 

gdb & pthreads in Alpha linux 2.0.36

Post by Stan Sheb » Thu, 08 Jul 1999 04:00:00



> Someone here is working on an application that runs on an Alpha Linux
> 2.0.36 machine.  The code is written in C++ (egcs-1.1.1).

> It appears gdb v4.18 does not support debugging pthread'd apps.

That's true.  There are patches for x86 Linux, but I don't know if
they'll work on Alpha.

Quote:> Does anyone know of any effort to add pthread support to the Alpha
> port of gdb ?

Yes, Cygnus is working on this, as part of our deal with API; see
http://www.cygnus.com/news/alpha.html for more bits.  The press
release doesn't mention thread support explicitly, but it's on the
work agenda nevertheless.

                                                        Stan Shebs
                                                        Cygnus Solutions


 
 
 

1. HELP! GDB & pthread support

Hi there.
I'm 3.0-RELEASE user.
I made some test programs which uses pthread library.
It worked very well.
After getting successful results, I tried to use GDB to get detailed
thread specific information.
But I could not see created threads in GDB.
The GDB command 'info threads' just print nothing as if it do not have
any threads.
No thread related commands work.

GDB in 3.0-RELEASE does not support threads?
Or is there any other ways to let GDB know threads?

Another question, when I link pthread application with '-lc_r' option ,
linker complains like this.
gcc -o mytest  a.o b.o c.o -lc_r

/usr/lib/libc.so: warning: this program uses gets(), which is unsafe.
/usr/lib/libc.so: WARNING!  setkey(3) not present in the system!
/usr/lib/libc.so: WARNING!  des_setkey(3) not present in the system!
/usr/lib/libc.so: WARNING!  encrypt(3) not present in the system!
/usr/lib/libc.so: WARNING!  des_cipher(3) not present in the system!
/usr/lib/libc.so: warning: this program uses f_prealloc(), which is
stupid.

When I use '-pthread' option instead of '-lc_r', the linker says
nothing.
gcc -pthread -o mytest a.o b.o c.o

Is there any fundamental difference between '-lc_r' and '-pthread'
option?

Thanks.


2. Looking for help with ATI Mach32 GUP XF86Config

3. pthreads & gdb: zombie threads?

4. paging and swapping in linux

5. Q: PCMCIA support (network, modem & SCSI) under Linux 2.0.36 or 2.2.3???

6. analyze log

7. SCSI Timouts & Linux 2.0.36

8. FreeBSD and Compaq Array Controller 5302/64

9. Debian Linux 2.0.36 & USR Courier-I Modem

10. Problem with: Apache/2.0.36 (Unix) mod_ssl/2.0.36 OpenSSL/0.9.6d

11. 2.0.36 vs 2.0.36-0.x

12. QIC-36 tape drive with an Emulex QIC-36-> SCSI board

13. GDB support for pthreads under Linux?