From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mark Kettenis Newsgroups: gmane.comp.gdb.patches,gmane.lisp.guile.user Subject: Re: [PATCH] Improved ^c support for gdb/guile Date: Mon, 17 Feb 2014 10:27:42 +0100 (CET) Message-ID: <201402170927.s1H9RgXf020012@glazunov.sibelius.xs4all.nl> References: NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1392629269 15399 80.91.229.3 (17 Feb 2014 09:27:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 17 Feb 2014 09:27:49 +0000 (UTC) Cc: gdb-patches@sourceware.org, guile-user@gnu.org, ludo@gnu.org To: xdje42@gmail.com Original-X-From: gdb-patches-return-110431-gdb-gdb-patches=m.gmane.org@sourceware.org Mon Feb 17 10:27:57 2014 Return-path: Envelope-to: gdb-gdb-patches@plane.gmane.org Original-Received: from server1.sourceware.org ([209.132.180.131] helo=sourceware.org) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WFKUV-0006my-Lv for gdb-gdb-patches@plane.gmane.org; Mon, 17 Feb 2014 10:27:56 +0100 DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:message-id:from:to:cc:in-reply-to:subject :references; q=dns; s=default; b=OtfsPldgaudvNnbLEnRInYqB6ibPDTI WlarVJbCUAfO2Fmr//6phmL0kZ3mvOShUU+sPzlmKI+1E8KqSCHdgC9IOpvfAplv b4Bz+QQT9JbfimvUd1lpyDnRfXcyqgWGZYJc+DDeopNxJcCfQYoMHnzj7HZKlDdc GAmZVTlT41KQ= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:message-id:from:to:cc:in-reply-to:subject :references; s=default; bh=NDNfbU26vDTVRZdWD4qsoAs/Ipo=; b=ywPqJ Z+6dHf3hoknafaCCrOUpcYR/6w2BYdjytdIYl++vS+oS1/SZlJravWiGP4heCkwC eHewcgDFOhzCrKhWO32dZQGA4j2MWxOg0LFY6wiU/iDlinKw8aDh9O/aSatlKKLy x3zlCF5t5JDfrY82euSVpYtUC1y2uABZxkfm5o= Original-Received: (qmail 18159 invoked by alias); 17 Feb 2014 09:27:53 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Original-Sender: gdb-patches-owner@sourceware.org Original-Received: (qmail 18150 invoked by uid 89); 17 Feb 2014 09:27:52 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: glazunov.sibelius.xs4all.nl Original-Received: from sibelius.xs4all.nl (HELO glazunov.sibelius.xs4all.nl) (83.163.83.176) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Mon, 17 Feb 2014 09:27:51 +0000 Original-Received: from glazunov.sibelius.xs4all.nl (kettenis@localhost [127.0.0.1]) by glazunov.sibelius.xs4all.nl (8.14.5/8.14.3) with ESMTP id s1H9RgP5021335; Mon, 17 Feb 2014 10:27:42 +0100 (CET) Original-Received: (from kettenis@localhost) by glazunov.sibelius.xs4all.nl (8.14.5/8.14.3/Submit) id s1H9RgXf020012; Mon, 17 Feb 2014 10:27:42 +0100 (CET) In-reply-to: (message from Doug Evans on Mon, 17 Feb 2014 02:39:25 -0500) Xref: news.gmane.org gmane.comp.gdb.patches:95433 gmane.lisp.guile.user:11068 Archived-At: > From: Doug Evans > Date: Mon, 17 Feb 2014 02:39:25 -0500 > > Hi. > > Here's my modest contribution to the Guile anniversary potluck. > > The patch to selftest-support.exp could be done differently, > I've tried to keep it simple. The problem is that gdb with guile > will get SIGPWR from time to time when Guile's GC kicks in, > and we need this to not alter test behaviour. The patch just > tells the parent gdb to ignore SIGPWR, which is simple enough > without loss of coverage. A good question is what other signals > Guile GC might use. SIGPWR? Doesn't exist on *BSD. Guess it uses some other random signal there? Didn't realize Guile used threads. I guess that's safe if the interpreter makes sure it never calls into GDB code concurrently. But it does make debugging GDB harder. And I hope this is not an excuse for other people to start using threads in other bits of GDB.