From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id 5EF183858C83 for ; Mon, 19 Dec 2022 13:53:47 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 5EF183858C83 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1671458027; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=x8mSJlJGB87ufKXdRc8W4qGCnnquFz5xBv7Wc0KsXco=; b=ShGiyWTeyRKaKwnS/TEeYOvL5nFqFdhii/hJ6qW9giDTYGJb5Xv2X3lKmmLa8aW1VcHs7S WSXdwez7Oa69BKB+m7svntKPeLNDYKDNmEI1jv911PVq3UyxMp9xcsRV2+aVv6t3MwPz9u Vcdueuso5wzqjdiDvy/bZaFoVoMQTMY= Received: from mail-ed1-f72.google.com (mail-ed1-f72.google.com [209.85.208.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-83-ljLu4moDPmGLSfn2Hzc1OQ-1; Mon, 19 Dec 2022 08:53:45 -0500 X-MC-Unique: ljLu4moDPmGLSfn2Hzc1OQ-1 Received: by mail-ed1-f72.google.com with SMTP id w15-20020a05640234cf00b0046d32d7b153so6537547edc.0 for ; Mon, 19 Dec 2022 05:53:45 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=x8mSJlJGB87ufKXdRc8W4qGCnnquFz5xBv7Wc0KsXco=; b=hxf5KAgr0z6GwRY2/sVjBmw09vnMHVTquPa/rUmR5gJsHmI0pLYjaClQ2QuhfFZrs5 JDDSySnF6KoWtl7x9a7haVFXbGbFccj1aCOg1PfIjWJ9l6NhLQ1xMKxCF4vedfReyeKz afxl9QTTR93eOURTqfLGooIdkjKOnvhZC3zRl+wo4OwN0TnUQbguzuGd6mMTMqYU82TY t+uoAf0mHCzqjSKkRHsujH9QtB2YIkcEnE8SJ6Eow2xkJf7jtVNb6H4sQA524WSUu1zU 5mH2yu3C+6nqEJDMMbAUjQ7XeZ2mkRkGHMa7HdyjdkWgp4t/jXTO+rBzco7zVPzsafqK rqBg== X-Gm-Message-State: ANoB5plm10jHFNA1SqEtkfXJ07o4hIF4vsn914YS7FhTYPFmCHUknQi9 JpFR8gXIgKuJ9iQIY2/JuYJCheteW91TrrBP87XWQfDrtakXIGViaoFBxHMGO/UCZE1dLgpPMkR 9qydzEcrmaruId6aZ0xArP1RNVa4hKZ9G9Ux6wpt2F4ypgfbZccuOShFkbZVWrFs2of40 X-Received: by 2002:a17:906:bce4:b0:7c0:c36d:f5df with SMTP id op4-20020a170906bce400b007c0c36df5dfmr54596226ejb.70.1671458024179; Mon, 19 Dec 2022 05:53:44 -0800 (PST) X-Google-Smtp-Source: AA0mqf4VbUBIBz49hDb2LflUYGkpNYwwJ1CuupESvW+gTIB8HazZQXBF56bbMbx60KqglfbquHS95A== X-Received: by 2002:a17:906:bce4:b0:7c0:c36d:f5df with SMTP id op4-20020a170906bce400b007c0c36df5dfmr54596209ejb.70.1671458023947; Mon, 19 Dec 2022 05:53:43 -0800 (PST) Received: from ulissedini.. ([81.56.11.23]) by smtp.gmail.com with ESMTPSA id t21-20020a056402021500b00463bc1ddc76sm4377476edv.28.2022.12.19.05.53.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Dec 2022 05:53:43 -0800 (PST) From: Maurizio Papini To: binutils@sourceware.org Cc: Maurizio Papini Subject: [PATCH 0/2] addr2line: new option -n to add a newline at the end Date: Mon, 19 Dec 2022 14:53:01 +0100 Message-Id: <20221219135303.116222-1-mpapini@redhat.com> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII"; x-default=true X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: This series adds a new option to addr2line (-n) to append a newline after the last informative one. This new option is helpful for using a running addr2line process and performing queries, in particular when the option -i is requested: the additional empty line can be used to mark the end of the inlined functions lists so that an application can get the output without defining a timeout. The first patch adds the new option while the second one adds the relative test. Let me know what you think. Maurizio Maurizio Papini (2): addr2line: new option -n to add a newline at the end addr2line: test to check -n option binutils/addr2line.c | 11 +++++++++-- binutils/doc/binutils.texi | 5 +++++ binutils/testsuite/binutils-all/addr2line.exp | 10 ++++++++++ 3 files changed, 24 insertions(+), 2 deletions(-) -- 2.38.1