<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Hi,<br><br>Thank you for your reply.<br><br>I took source and patch from the below link:<br><br><a href="http://repository.maemo.org/pool/fremantle/free/l/ltrace/" target="_blank">http://repository.maemo.org/pool/fremantle/free/l/ltrace/</a><br><br>I have gone through the patch and i have found the following observations:<br><br>* Here the support for multithreaded applications has been given by&nbsp; controlling the order in which the events are processed.<br><br>* The main issue in this approach is that, it is necessary to restore the&nbsp; original instruction whenever the threads trap on other thread’s&nbsp; breakpoints. But this is not happening here.<br><br>* So workaround is made for is by disabling the library call tracing&nbsp; using “-L” option.<br><br>* A good fix for this situation would require heavy changes to ltrace&nbsp; process
 model.<br><br>So by disabling the "-L" option they are disabling the display of library calls, which degrades the functionality of ltrace.<br><br>So is there any workaround for this patch to overcome these problems and have a permanent solution?<br><br>Since it has been mentioned in the patch that, a good fix for this situation would require heavy changes for ltrace process model. So i thought of parallely going through the strace code to get an idea how to handle threads and implement the same for ltrace. <br><br>Is this a good idea? Please give your inputs on this.<br><br>Thanks &amp; Regards,<br>Manoj<br><br>--- On <b>Mon, 1/11/10, Anderson Lizardo <i>&lt;anderson.lizardo@gmail.com&gt;</i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Anderson Lizardo &lt;anderson.lizardo@gmail.com&gt;<br>Subject: Re: [Ltrace-devel] multi-thread support for ltrace<br>To: "Manoj Kora"
 &lt;koramanoj@yahoo.com&gt;<br>Cc: ltrace-devel@lists.alioth.debian.org<br>Date: Monday, January 11, 2010, 3:50 PM<br><br><div class="plainMail">Hi,<br><br>On Mon, Jan 11, 2010 at 5:45 AM, Manoj Kora &lt;<a ymailto="mailto:koramanoj@yahoo.com" href="/mc/compose?to=koramanoj@yahoo.com">koramanoj@yahoo.com</a>&gt; wrote:<br>&gt; So now i am trying to add the multi-threaded support for ltrace, but not able to find a proper approach for this, for example<br>&gt;<br>&gt; 1) Is there a workaround for the existing code?<br><br>For Maemo (Linux based OS running on Nokia tablets), there was some<br>work to implement multi-thread support:<br><br><a href="http://repository.maemo.org/pool/fremantle/free/l/ltrace/" target="_blank">http://repository.maemo.org/pool/fremantle/free/l/ltrace/</a><br><br>It has been a long time since I checked the code, but if you are on a<br>Debian based system, download and unpack the sources with:<br><br>dget -u <a
 href="http://repository.maemo.org/pool/fremantle/free/l/ltrace/ltrace_0.5+svn20070904-0.1maemo1.dsc" target="_blank">http://repository.maemo.org/pool/fremantle/free/l/ltrace/ltrace_0.5+svn20070904-0.1maemo1.dsc</a><br><br>If you are not on Debian, you need to unpack the .orig.tar.gz and<br>manually apply the .diff.gz patch on it.<br><br>After this, you should find various patches on the debian/patches<br>directory, some of them related to thread support.<br><br>Hope that helps,<br>--<br>Anderson Lizardo<br>Instituto Nokia de Tecnologia (INdT)<br>Manaus - Brazil<br><br></div></blockquote></td></tr></table><br>