From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) by sourceware.org (Postfix) with ESMTPS id 066D2384403E for ; Thu, 9 Jul 2020 16:11:15 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 066D2384403E Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=undo.io Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=etesta@undo.io Received: by mail-wr1-x434.google.com with SMTP id r12so2956198wrj.13 for ; Thu, 09 Jul 2020 09:11:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=undo-io.20150623.gappssmtp.com; s=20150623; h=to:from:subject:message-id:date:user-agent:mime-version :content-language; bh=zR5f4cpGp3AH/VN8mfLFsvvtY3sGA3gcH3Jd3995qE0=; b=0oFfCOVKcrCN7Xpg16ORHtDA7RCzYVXAUjn5J6t7XmQ1TXl/bWN7PpfQWKVYM0aZrN fFWFmXRp53HLjkFnANYXmWSGkQ/E+QIDs1o93RhVEoa1vLl/Zwu/a9hDJSw4lh4wMZtH yS/b1WwHt4kCSYP+D6Yh48fmvCSEDFhAmxtHc0hOlVuHNAgLIEZ+FWooWmLlNuPs4W0x B/3qqEUBneNfJNv/061b7mY/fMbF8Mdrqz9LTehj34P0iVlGkUE6oe3mw2hzEny0hjfx g07vXp26lWryG2CVnzCQwOU+vPAkr7pp/tIfBJ/lWq5fS6qyYVpqJ7JKDYntpcyk658o q5ig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-language; bh=zR5f4cpGp3AH/VN8mfLFsvvtY3sGA3gcH3Jd3995qE0=; b=fVbBTSJWDafV5r79qVixJV6UnuNy81KqUy1j5Laq1pgTvpMJnTdaEcpuHpoSM7opl1 X8J4r9sJhvMjzxgYNbj2qfdtT38Liz6Is/3/OJql4OcyMQRN9VOVlDLuM5K7u3RGUEe9 X+a6rgjU5RGdYQv3OZ4N2DBDDrWPDRrb6ndT8em4u2PZ7xXq8uIjnBLZq8MTSJLx6E8V OwlFKbDQ6mrHeNu07tvRXf+Jk+Q+ZryiLxrYeyN9V6DUM/OIUrWP6T7IUaH8x7bQCRvk hp3y9LF2kZJO/pTJfS54ynE3WIIb3zU3Yz/GMgGThQukwye0tgQPce8flNjlaeAHnz0G kfDA== X-Gm-Message-State: AOAM531RUxLQxUXLQxTJiyGjh8zaxWarDrhdrNhsV6BH4UPCAskSTte6 ffAzI/Ae3PJ2Aqtp7sUXgagDVLXOwztMtxG0FSpqauc+0ZSAyBjZgukYt/B9YJLF+RsSN4DlMTm 08mYrNzjhd9KxZUcG02aL9O/9k+r0FQB739DJwWEj3Yp9rzvF41vX3vo= X-Google-Smtp-Source: ABdhPJzY5QbS76JKIiBWKPU9JlgH+5QLjz9zXwL5gr5T6UT0KrE8mku0WgxcGmXmaFXeW41c7eM8Xg== X-Received: by 2002:a5d:4b44:: with SMTP id w4mr64694882wrs.275.1594311073776; Thu, 09 Jul 2020 09:11:13 -0700 (PDT) Received: from [192.168.86.155] ([176.254.42.197]) by smtp.gmail.com with ESMTPSA id k14sm6094074wrn.76.2020.07.09.09.11.12 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 09 Jul 2020 09:11:13 -0700 (PDT) To: gdb@sourceware.org From: Emiliano Testa Subject: set logging redirect on doesn't work from within python Message-ID: <3d4cf093-0da2-7bd1-a890-fc1e7b9747c4@undo.io> Date: Thu, 9 Jul 2020 17:11:11 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 Content-Language: en-US X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, HTML_MESSAGE, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Jul 2020 16:11:16 -0000 The following doesn't seem to work: python gdb.execute('set logging off') gdb.execute('set logging redirect on') gdb.execute('set logging on') gdb.execute('next') gdb.execute('set logging off') end I would expect the "next" to be completely silent and "gdb.txt" to contain the output... it doesn't work. define set logging off set logging redirect on set logging on next set logging off end works as expected. Is this a bug? (tried both on GDB-8.1 and GDB-9.2) Many thanks Emiliano -- Emiliano Testa | Software Engineer | Direct: (+44)7512468305 | etesta@undo.io Undo | Accelerate software defect resolution by eliminating the guesswork in failure diagnosis CI Best Practice: Go Green, Stay Green