From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 58872 invoked by alias); 26 Nov 2019 20:25:00 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 58862 invoked by uid 89); 26 Nov 2019 20:24:59 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_PASS autolearn=ham version=3.3.1 spammy= X-HELO: us-smtp-1.mimecast.com Received: from us-smtp-delivery-1.mimecast.com (HELO us-smtp-1.mimecast.com) (205.139.110.120) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 26 Nov 2019 20:24:59 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1574799897; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=tX18j7C4OOeqBQfZx7r3TlLY4U9hz6rXloYHKbe0isg=; b=dgYcGbUIdbkFtF3oTLXEVHbaGxe8gLxJEG0NVvPUJpKKN7tQCVQnQPZIVt8/aNlmwCi8hn vhMk19csRm5TqmX8rQ9sZA8+z5J3CFRSWr4ADXsJ8Jhkaao+Da8/M7bwlLihQL39rn9cVm /DModQjcZJt1oensGnFVYY03zHuxM0c= Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-14-RJbrIAqaN5-uDbIspEll_A-1; Tue, 26 Nov 2019 15:24:54 -0500 Received: by mail-wr1-f69.google.com with SMTP id u12so966381wrt.15 for ; Tue, 26 Nov 2019 12:24:54 -0800 (PST) Return-Path: Received: from ?IPv6:2001:8a0:f913:f700:56ee:75ff:fe8d:232b? ([2001:8a0:f913:f700:56ee:75ff:fe8d:232b]) by smtp.gmail.com with ESMTPSA id s8sm16127213wrt.57.2019.11.26.12.24.51 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 26 Nov 2019 12:24:52 -0800 (PST) Subject: Re: [PATCH] gdb: Use puts_unfiltered instead of printf_unfiltered To: Iain Buclaw , "gdb-patches@sourceware.org" References: From: Pedro Alves Message-ID: Date: Tue, 26 Nov 2019 20:25:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-SW-Source: 2019-11/txt/msg00924.txt.bz2 On 11/26/19 12:49 PM, Iain Buclaw wrote: > The significance of this is that printf_unfiltered writes messages to wrap_buffer, whereas puts_unfiltered pushes them immediately to stdout, resulting in "post-" messages being printed out of order. It sounds quite surprising that two _unfiltered functions could behave differently like that. That sounds like a bug that should be fixed, instead of worked around by having to recall to use printf vs puts. Thanks, Pedro Alves