Skip to contentSkip to conversation

Debugging with thread(s)

DISCUSSION Claude Robitaille 3 participants 3 messages Dec 8, 1999 2 messages not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

Hi,

I could not find Lu's directory on VA's ftp site. However, I found 4.18-10 on rufus. The change log says that gdb is now thread safe.

I donwloaded the SRPMS but it contains 3 ...tar.bz2 files. I do not know what compression format is bz2. I tried gunzip and unzip but it did not worked. Anybody knows what format it is?

Claude

PS Once I have compiled it, what is the best way to propagate this new version? And how?

Quoted 14 lines · Kevin_Hendricks

Hi,

I use gdb to debug native threads all of the time for the jdk. You have to get a version of gdb that actually has thread support and you have to have a version of gdb that understands the real time signals (since they are used by both the JDK and linuxthreads).

The best way to get a real working gdb is to go the H.J.Lu's ftp site at VA Research (I don't remember the url right off hand but I am sure you can find it if you look) and grab his latest linux specific SRPM for gdb (it is a 4.17.X) and rebuild it under PPC.

This will allow you to work with real time signals and debug linuxthreads code.

Quoted 10 lines

Kevin

--
Kevin B. Hendricks
Associate Professor of Operations and Information Technology Richard Ivey School of Business, University of Western Ontario London, Ontario N6A-3K7 CANADA [email protected], (519) 661-3874, fax: 519-661-3959

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

#2 lore raw
Quoted 5 lines · Claude Robitaille

Hi,

I could not find Lu's directory on VA's ftp site. However, I found 4.18-10 on rufus. The change log says that gdb is now thread safe.

Is anything wrong with Franz Sirl's gdb-4.18-4c in his directory at dev.linuxppc.org?

--
Martin

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

#4 lore raw
In reply to a message not in the archive
Quoted 10 lines · Tony Mantler
Quoted 5 lines · Claude Robitaille

I donwloaded the SRPMS but it contains 3 ...tar.bz2 files. I do not know what compression format is bz2. I tried gunzip and unzip but it did not worked. Anybody knows what format it is?

From <http://sourceware.cygnus.com/bzip2/>:

[...snip...]
What is bzip2?

Quoted 8 lines

bzip2 is a freely available, patent free (see below), high-quality data compressor. It typically compresses files to within 10% to 15% of the best available techniques, whilst being around twice as fast at compression and six times faster at decompression.
[...snip...]

I actually found it to be a bit slower than gzip on my 68k boxes, but it probably optimizes better on PPC or x86.

The text is referring to "the best available techniques", not gzip. bzip2 is signifficantly slower than gzip on all platforms I've tried it on.

//Marcus

Signature · 3 lines
Signature under construction, please come back later.

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