From patchwork Thu Jul 11 22:29:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Lance Taylor X-Patchwork-Id: 1959581 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=golang-org.20230601.gappssmtp.com header.i=@golang-org.20230601.gappssmtp.com header.a=rsa-sha256 header.s=20230601 header.b=HOVkiLyG; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WKqDV2cXNz1xqx for ; Fri, 12 Jul 2024 08:30:18 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 78B483836E84 for ; Thu, 11 Jul 2024 22:30:16 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-yb1-xb32.google.com (mail-yb1-xb32.google.com [IPv6:2607:f8b0:4864:20::b32]) by sourceware.org (Postfix) with ESMTPS id 110503858410 for ; Thu, 11 Jul 2024 22:29:54 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 110503858410 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=golang.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=golang.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 110503858410 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::b32 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1720736997; cv=none; b=uFLuUmRr8qqvyZdqbN7QuFwdtMy6RzD+H0l/6OzEAahaIL3RSRwaH1vBk+8kXTr6Q2fpNRZNq6Pi4fhY0uT+E/uhQNFuCknOVnws9Q/7PPKCNvUIY646SrpsP1vEz9Jg15YJ+77sKwtW/nHau5gfEr1vObFbCTYwL14XzxqNTgM= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1720736997; c=relaxed/simple; bh=40fgzaYoImXIiaC0weocdGRZP6sTXl4wdmfLAguMJTE=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=UfL44LtVgLexI2uqF2sBRop/KXtIFwumnHbgEhP3aft4sPcUyxWHqCdVjJWOnlzJFaqEHgBK6Cj7qz4TIwE6o/f6HHKlfmEg0qhag3OWjrAJurGJbncs9P/t/gEV/mNhWegzcH6EhFuSeW3J01T4CG1um+jv7/fxL8Nda04AUCs= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-yb1-xb32.google.com with SMTP id 3f1490d57ef6-e03a9f7c6a6so1387881276.3 for ; Thu, 11 Jul 2024 15:29:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=golang-org.20230601.gappssmtp.com; s=20230601; t=1720736993; x=1721341793; darn=gcc.gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=XxPO4RolmeCPlnmPX8NJF0MA71KVktmtwhMwDRN3RAE=; b=HOVkiLyG3dnu1cjfIJdUK4AWECXhfKxrAtVGD0wx/gq/+tUfZtoA3KPx//OtL7fAIQ Udeo3Xj+7mS2ECWOEd9li7aMGB2wiTRdKmR4YgrPCvSBhRFJ/4FYvgl0W9EQpYJWo/ne 2vfWwniIpGSpvqPfTmmmUIPIqKxndSUI58n3HR/fmuPo/qGWZ3Zkx1v/tJYnIYGFcKxb heJ4NKAQgMNNnW1nT5n3DSgRHFZomQzqVOs2FqTgC+RhbpZMGF3BIrNq4OmeRU9KwBUb CBkG2U+M7Rp2voTtrmIvJbkn6RrXRPBsdGE0/aznYwFOAyBhDysV+xMNFSZftFTAzHb4 g1Mw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720736993; x=1721341793; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=XxPO4RolmeCPlnmPX8NJF0MA71KVktmtwhMwDRN3RAE=; b=slUj6DeubsEvNfzpbtKJAGHQ+IS08r2auwvYMIdq4IyJx/HPikomlzBpGu3HTU/i/K waHru7lxvpbs3pB6mb2VtcDaMO2d+a/aM5L3VX3+Tt9GiQwQRccE9PWliacMZi8Ygjpg xkqWJI7ZhPSwwJa6wqvJ6jw+MQN195bLFMZ4N4bp57QCAmx6ZzZ3KhgcrjA/Cu1DTvwS YqS06jG3OzkqlE7orcB2rS/14T5YdKs5cd2l0z3yInpgb5HfGs63FidiftZTvnIZohlg e3mUi91e9HFOga79Gkpytl2KfpBPBLCuvJYEP3pasrmBsCmIwf3mIsn3IjG53wH7B83S N65Q== X-Gm-Message-State: AOJu0Yx0u421KQwebH9lyezgSVggZII6XcouU4wvTCApMTbazWwrjwQA pJ4X8xw24NzgP1khAgW63kUYSG6w+0V3vliO6ps7kS0V4nVdl8cucNoPCAVZT3y74bnOcCNYges 9GpoJQfWos11djDVkR/jnfYTjCXtFuPcWeP2gOY3YMUnXaA02x9o= X-Google-Smtp-Source: AGHT+IGkHofwbmNM2YEoTdxHrPhRXozhwBEll27wVWp2zV+VZHkkI6MoyqqF06iAHKlS7CbVxmxQOv1Zrko1fLn2ywA= X-Received: by 2002:a25:5384:0:b0:dfa:4ce2:3311 with SMTP id 3f1490d57ef6-e041b09b851mr11172353276.39.1720736993626; Thu, 11 Jul 2024 15:29:53 -0700 (PDT) MIME-Version: 1.0 From: Ian Lance Taylor Date: Thu, 11 Jul 2024 15:29:41 -0700 Message-ID: Subject: libbacktrace patch committed: Remove trailing whitespace To: gcc-patches X-Spam-Status: No, score=-8.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, 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 X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org This minor libbacktrace patch removes trailing whitespace. Ran libbacktrace tests. Committed to mainline. Ian * dwarf.c: Remove trailing whitespace. * macho.c: Likewise. 3f660179d6a0ebcd83d6a546f48a163d1a685f72 diff --git a/libbacktrace/dwarf.c b/libbacktrace/dwarf.c index ed0672964c2..cc36a0a2990 100644 --- a/libbacktrace/dwarf.c +++ b/libbacktrace/dwarf.c @@ -1705,7 +1705,7 @@ add_ranges_from_ranges ( base = (uintptr_t) high; else { - if (!add_range (state, rdata, + if (!add_range (state, rdata, (uintptr_t) low + base + base_address, (uintptr_t) high + base + base_address, error_callback, data, vec)) @@ -1904,7 +1904,7 @@ add_ranges (struct backtrace_state *state, const struct dwarf_sections *dwarf_sections, uintptr_t base_address, int is_bigendian, struct unit *u, uintptr_t base, const struct pcrange *pcrange, - int (*add_range) (struct backtrace_state *state, void *rdata, + int (*add_range) (struct backtrace_state *state, void *rdata, uintptr_t lowpc, uintptr_t highpc, backtrace_error_callback error_callback, void *data, void *vec), diff --git a/libbacktrace/macho.c b/libbacktrace/macho.c index b4856346ccc..42f24721e6a 100644 --- a/libbacktrace/macho.c +++ b/libbacktrace/macho.c @@ -674,7 +674,6 @@ macho_add_symtab (struct backtrace_state *state, int descriptor, struct macho_syminfo_data *p; p = backtrace_atomic_load_pointer (pp); - if (p == NULL) break;