Re: [Opalvoip-user] How to detect which thread is locking a PSafeObject
Brought to you by:
csoutheren,
rjongbloed
From: Derek S. <de...@in...> - 2010-04-23 02:16:02
|
Hi, No offense taken. A quick review of the literature reports "Archer" whose goal is to improve gdb. For a list of their goals, http://sourceware.org/ml/archer/2008-q3/msg00001.html The above list could be viewed as a report of the faults in gdb. Clearly, gdb is not perfect, and so Robert has some good reasons for preferring MSVC. ====== The autoexp.dat file you have for windows does make the msvc experience much easier. Is there someone who can provide a script for use in gdb - that will simplify the reporting on variables? Such scripts would go into the SVN - along with instructions to benefit all. Thanks in advance for any help/tips here. Derek. On Fri, 23 Apr 2010, Robert Jongbloed wrote: > At the risk of offending GNU die hards, gdb sucks pretty badly. At least > compared to VS. The VS debugger is the single biggest reason I use Windows > as my prime development platform, then port to *nix. > > If you can figure out how to get gdb to display the contents of containers > (E.g. PList), that would be fantastic. > > Robert Jongbloed > OPAL/OpenH323/PTLib Architect and Co-founder. > > >> -----Original Message----- >> From: Stefano Sabatini [mailto:ssa...@re...] >> Sent: Thursday, 22 April 2010 7:55 PM >> To: opalvoip-user Mailing List >> Subject: Re: [Opalvoip-user] How to detect which thread is locking a >> PSafeObject >> >> On Thursday 2010-04-22 19:05:37 +1000, Robert Jongbloed wrote: >>> First, merge the file .....\ptlib\include\ptlib\msos\AUTOEXP.DAT into > the >>> once for DevStudio, sorry, can never remember where it is exactly. >>> >>> Then you can expand the PSafePtr, currentObject, PSafeObject, safeInUse, >>> m_nestedThreads >>> >>> This is a list of all threads that are either waiting or own the mutex. >> >> Using gdb and debug symbols here, well I can already see all these >> symbols, so I suppose m_nestedThreads is meant to contain the list of >> accessing threads right? >> >> Time to play with the scripting interface of gdb, that should make >> possible to get a meaningful representation of the list. >> >> Thanks, best regards. >> >> > ---------------------------------------------------------------------------- > - >> - >> _______________________________________________ >> Opalvoip-user mailing list >> Opa...@li... >> https://lists.sourceforge.net/lists/listinfo/opalvoip-user > > > ------------------------------------------------------------------------------ > _______________________________________________ > Opalvoip-user mailing list > Opa...@li... > https://lists.sourceforge.net/lists/listinfo/opalvoip-user > > -- Derek Smithies Ph.D. IndraNet Technologies Ltd. ph +64 3 365 6485 Web: http://www.indranet-technologies.com/ "How did you make it work??" "Oh, the usual, get everything right". |