From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13654 invoked by alias); 15 Aug 2018 20:09:02 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 13638 invoked by uid 89); 15 Aug 2018 20:09:01 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=H*r:sk:gdb@sou X-HELO: mail-wr1-f50.google.com Received: from mail-wr1-f50.google.com (HELO mail-wr1-f50.google.com) (209.85.221.50) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 15 Aug 2018 20:09:00 +0000 Received: by mail-wr1-f50.google.com with SMTP id h10-v6so2119076wre.6 for ; Wed, 15 Aug 2018 13:08:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=undo-io.20150623.gappssmtp.com; s=20150623; h=date:from:to:subject:message-id:mime-version:content-disposition :user-agent; bh=k6IrWSL+eCh5nEfAC6oxbsSh6tCf61HCi6eYt0Mr9BI=; b=e+iIx06Z1tBpR9rno8n/lMgA55uRkneLonRScuPyGK4jjJYs8oPJ9MxiPuFWYWCX+m efXtltt32wOrPOzdKrZlGq40sqaFRf/324oYHdXKJTbySVHY1y290iVwIufE3/Bn8L2T 4MdX3Z1JElOnMyWVsUBWZyyEZWhsy8GYa3B762qrEmGD61OOApcDBdpOuBoYNRRpBXwA Ledk7OeNJmbmMw8OY6bBmHwugiN7sBMeWS4RAHT2fhGIbdvPDskmIot+p3+r9pVN+7w9 4ZqGy5bZsk3f2lVgvK1gcllvxdJOnp/U9JJbh6dyHgMLhABwlJflfov2kD+98HbGA4Y/ 2MGA== Return-Path: Received: from undo-autkin ([109.159.206.110]) by smtp.gmail.com with ESMTPSA id o14-v6sm6110006wmd.35.2018.08.15.13.08.56 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 15 Aug 2018 13:08:56 -0700 (PDT) Date: Wed, 15 Aug 2018 20:09:00 -0000 From: Andrey Utkin To: gdb@sourceware.org Subject: gdb.execute(to_string=True) doesn't capture signal notice anymore Message-ID: <20180815200855.GA24829@undo-autkin> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.9.4 (2018-02-28) X-IsSubscribed: yes X-SW-Source: 2018-08/txt/msg00031.txt.bz2 Hi, We have some code which uses the fact of GDB 7.7 behaviour that if you execute python code like s = gdb.execute("run", to_string=True) and, say, debuggee generates SIGTRAP, then result `s` includes the string "Program received signal SIGTRAP, Trace/breakpoint trap." What we see is that since 7.12.1 or earlier, and until now, this is no longer the case - this message is not captured but is only printed to terminal. Before I dig into "fixing it", I want to know maintainers opinion - is the current behaviour exactly what you like, or it's an unintended regression and you'd prefer to preserve the old way?