Skip to contentSkip to conversation

GDB/GDBSERVER and remote Thread Debugging

DISCUSSION Steffen Rumler 4 participants 6 messages Jun 6, 2002 – Jun 21, 2002

lore
Share & tools
lore
#0 lore raw

Hello,

I'm looking for a stable GDB/GDBSERVER extension suitable for (remote) Debugging multiple threads.

It should also possible to attach already running threads.

Actually I'm working with the GDB 5.0, but I have problems with it. Sometimes breakpoints are not hit, sometimes all threads seem to be hanging in the debugging case only.

Is there a stable extension for the GDB/GDBSERVER providing thread debugging ?

Thank you for help

Steffen Rumler

--

--------------------------------------------------------------

Steffen Rumler
ICN ON PNE SB 4
Siemens AG

Hofmannstr. 51                 Email: [email protected]
D-81359 Munich                 Phone: +49 89 722-44061
Germany                        Fax  : +49 89 722-36703

--------------------------------------------------------------

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

#1 lore raw

You will need to be working with GDB version 5.2 or newer to do thread debugging.

--Mark

Quoted 25 lines · Steffen Rumler

Hello,

I'm looking for a stable GDB/GDBSERVER extension suitable for (remote) Debugging multiple threads.

It should also possible to attach already running threads.

Actually I'm working with the GDB 5.0, but I have problems with it. Sometimes breakpoints are not hit, sometimes all threads seem to be hanging in the debugging case only.

Is there a stable extension for the GDB/GDBSERVER providing thread debugging ?

Thank you for help

Steffen Rumler

--

--------------------------------------------------------------

Quoted 9 lines

Steffen Rumler
ICN ON PNE SB 4
Siemens AG

Hofmannstr. 51                 Email: [email protected]
D-81359 Munich                 Phone: +49 89 722-44061
Germany                        Fax  : +49 89 722-36703

--------------------------------------------------------------

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

#2 lore raw

Will this give thread debugging with GDBSERVER as well or does it still have to be native GDB?

Quoted 11 lines

-----Original Message-----
From: [email protected] [mailto:[email protected]]On Behalf Of Mark Hatle
Sent: Thursday, June 06, 2002 8:15 AM
To: Steffen Rumler
Cc: [email protected]
Subject: Re: GDB/GDBSERVER and remote Thread Debugging

Quoted 41 lines

You will need to be working with GDB version 5.2 or newer to do thread debugging.

--Mark

Quoted 34 lines · Steffen Rumler

Hello,

I'm looking for a stable GDB/GDBSERVER extension suitable for (remote) Debugging multiple threads.

It should also possible to attach already running threads.

Actually I'm working with the GDB 5.0, but I have problems with it. Sometimes breakpoints are not hit, sometimes all threads seem to be hanging in the debugging case only.

Is there a stable extension for the GDB/GDBSERVER providing thread debugging ?

Thank you for help

Steffen Rumler

--

--------------------------------------------------------------

Steffen Rumler
ICN ON PNE SB 4
Siemens AG

Hofmannstr. 51                 Email: [email protected]
D-81359 Munich                 Phone: +49 89 722-44061
Germany                        Fax  : +49 89 722-36703

--------------------------------------------------------------

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

#3 lore raw

Probably not the answer you want, but MontaVista's GDB 5.2 version allows remote thread debugging. (We are in the process of releasing GDB 5.2 as an update right now. I don't know for sure when it will be released.) I don't know if the upstream (GNU version) supports that for PPC or not. I know it does not for SH, MIPS, and ARM.

--Mark

Quoted 15 lines · Rick Hunnicutt

Will this give thread debugging with GDBSERVER as well or does it still have to be native GDB?

Quoted 12 lines

You will need to be working with GDB version 5.2 or newer to do thread debugging.

--Mark

Quoted 6 lines

I'm looking for a stable GDB/GDBSERVER extension
suitable for (remote) Debugging multiple threads.

It should also possible to attach already running
threads.

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

#4 lore raw

Sorry, I was incorrect. Remote thread debugging has not yet been pulled in by the upstream GDB. We have it internally, but it's not in GDB 5.2. (Mind you GDB 5.2 does have good local thread debugging.)

--Mark

Quoted 7 lines · Mark Hatle

Probably not the answer you want, but MontaVista's GDB 5.2 version allows remote thread debugging. (We are in the process of releasing GDB 5.2 as an update right now. I don't know for sure when it will be released.) I don't know if the upstream (GNU version) supports that for PPC or not. I know it does not for SH, MIPS, and ARM.

Quoted 19 lines

--Mark

Quoted 15 lines · Rick Hunnicutt

Will this give thread debugging with GDBSERVER as well or does it still have to be native GDB?

Quoted 12 lines

You will need to be working with GDB version 5.2 or newer to do thread debugging.

--Mark

Quoted 6 lines

I'm looking for a stable GDB/GDBSERVER extension
suitable for (remote) Debugging multiple threads.

It should also possible to attach already running
threads.

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

#5 lore raw
In reply to Mark Hatle

Hello,

Have a look here :
http://www.kegel.com/linux/gdbserver.html

Regards,

Lionel

--

_________________________________________________________

|                               |                         |
| Lionel TAILLURAT              | ECRIN SYSTEMS           |
| Development & Support Service | Rue du pre-de-l'Horme   |
|                               | B.P 15                  |
| Tel :(33) 4 76 92 20 02       | 38921 CROLLES CEDEX     |
| Fax :(33) 4 76 08 03 18       | FRANCE                  |
|                               | http://www.ecrin.com    |
|_______________________________|_________________________|
|                                                         |
|Email: [email protected]                        |
|Email: [email protected]                                 |
|_________________________________________________________|
Quoted 11 lines

-----Message d'origine-----
De : [email protected] [mailto:[email protected]]De la part de Mark Hatle
Envoye : jeudi 6 juin 2002 17:15
A : Steffen Rumler
Cc : [email protected]
Objet : Re: GDB/GDBSERVER and remote Thread Debugging

Quoted 41 lines

You will need to be working with GDB version 5.2 or newer to do thread debugging.

--Mark

Quoted 34 lines · Steffen Rumler

Hello,

I'm looking for a stable GDB/GDBSERVER extension suitable for (remote) Debugging multiple threads.

It should also possible to attach already running threads.

Actually I'm working with the GDB 5.0, but I have problems with it. Sometimes breakpoints are not hit, sometimes all threads seem to be hanging in the debugging case only.

Is there a stable extension for the GDB/GDBSERVER providing thread debugging ?

Thank you for help

Steffen Rumler

--

--------------------------------------------------------------

Steffen Rumler
ICN ON PNE SB 4
Siemens AG

Hofmannstr. 51                 Email: [email protected]
D-81359 Munich                 Phone: +49 89 722-44061
Germany                        Fax  : +49 89 722-36703

--------------------------------------------------------------

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/