Re: UPS Solaris x86 support ?

Callum Gibson <[email protected]> Wed, 17 Nov 2004 09:30:36 +1100
Newsgroups gmane.comp.debugging.ups.user
Message-ID <[email protected]>
On 16 Nov 06:39, Ashish Borkar wrote:
}         2. Can UPS be used for debugging multithreaded applications?
}if Yes how?

Sort of (my experience is on Solaris 2.6 and FreeBSD 4.8).
You can put breakpoints in code as usual. Generally, if you have control in
a particular thread (via a breakpoint) you can step through it. Occasionally
you get strange behaviour (when single stepping) such as execution diverting
into a different thread unexpectedly. If this happens you can just set a
breakpoint further down where you want to be and that seems always to work.

Under Solaris, at least, there is a good API provided for control of
threads/lwps when debugging, which is utilised by adb (libkvm) but ups
doesn't use that. It's also OS-specific. I don't know if the same facility
is provided in any other OS, such as the FreeBSD 5.X series, for example.

-- 
Callum Gibson          [email protected]          61 438 266 463 (M)
Rates & ICT IT, Deutsche Bank, Australia [/]  61 2 9258 1620 (W)
### The opinions in this message are mine and not Deutsche's ###