Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I want to trace a running multi-threaded process's library calls. As of 5 November 2012, there's only one way to get ltrace to fully support tracing multi-threaded processes: you must check out and compile an ltrace 0.7.0 prerelease. So I've decided to use latrace instead. But, looking at the latrace documentation, I didn't see an option to specify a PID to attach to. Which brings me to my question:

Is there any way to attach latrace to an already-running process?

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

It's impossible to attach latrace to a running process. The article "Using latrace" in the MeeGo 1.2 developer documentation makes it clear:

You must restart the process with latrace for the tracing to work.

Someone should send a feature request to the latrace mailing list.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.