<feed xmlns='http://www.w3.org/2005/Atom'>
<title>notmuch/debugger.c, branch 0.21_rc1</title>
<subtitle>thread-based email index, search, and tagging</subtitle>
<id>https://git.notmuchmail.org/git/notmuch/atom?h=0.21_rc1</id>
<link rel='self' href='https://git.notmuchmail.org/git/notmuch/atom?h=0.21_rc1'/>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/'/>
<updated>2009-11-22T04:36:36Z</updated>
<entry>
<title>notmuch-new: Only install SIGALRM if not running under gdb</title>
<updated>2009-11-22T04:36:36Z</updated>
<author>
<name>Chris Wilson</name>
<email>chris@chris-wilson.co.uk</email>
</author>
<published>2009-11-22T00:44:31Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=986f6c98244610da6bba88d0c92895b9758973ee'/>
<id>urn:sha1:986f6c98244610da6bba88d0c92895b9758973ee</id>
<content type='text'>
I felt sorry for Carl trying to step through an exception from xapian
and suffering from the SIGALARMs..

We can detect if the user launched notmuch under a debugger by either
checking our cmdline for the presence of the gdb string or querying if
valgrind is controlling our process. For the latter we need to add a
compile time check for the valgrind development library, and so add the
initial support to build Makefile.config from configure.

Signed-off-by: Chris Wilson &lt;chris@chris-wilson.co.uk&gt;
Reviewed-by: Carl Worth &lt;cworth@cworth.org&gt;
[ickle: And do not install the timer when under the debugger]
</content>
</entry>
</feed>
