On Fri, 7 Jan 2011 21:53:39 +0100 Leif Middelschulte <leif.middelschu...@gmail.com> wrote:
> Hey, > > maybe it's worth noting that gdb itself is capable of intercepting > syscalls. Thus a gdb script that includes the used conditions could be > sufficient. > > http://sourceware.org/gdb/onlinedocs/gdb/Set-Catchpoints.html > > BR, > > Leif Middelschulte > > > > 2011/1/7 Enlightenment SVN <no-re...@enlightenment.org>: > > Log: > > new directory for useful debugging scripts/code/etc > > fd_catcher.c is a close() wrapper which can be used to detect certain fds > > being closed when used with LD_PRELOAD it was used to catch the epoll_fd > > bug (ticket #637), so I figured it would probably be useful again to someone > > > > > > Author: discomfitor > > Date: 2011-01-07 10:51:42 -0800 (Fri, 07 Jan 2011) > > New Revision: 55983 > > Trac: http://trac.enlightenment.org/e/changeset/55983 > > > > Added: > > trunk/DEBUG/ trunk/DEBUG/fd_catcher.c > > > > if you can create a gdb script that can catch the close() of a specific fd from a variable in a stack frame I'd like to see it for other debugging uses I have :) -- Mike Blumenkrantz Zentific: NULL pointer dereferences now 50% off! ------------------------------------------------------------------------------ Gaining the trust of online customers is vital for the success of any company that requires sensitive data to be transmitted over the Web. Learn how to best implement a security strategy that keeps consumers' information secure and instills the confidence they need to proceed with transactions. http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel