Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1nJSHV-0007kY-8D for mharc-grub-devel@gnu.org; Sun, 13 Feb 2022 22:44:05 -0500 Received: from eggs.gnu.org ([209.51.188.92]:57718) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nJSHU-0007iW-11 for grub-devel@gnu.org; Sun, 13 Feb 2022 22:44:04 -0500 Received: from [2607:f8b0:4864:20::f29] (port=35411 helo=mail-qv1-xf29.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nJSHS-0005Zh-4h for grub-devel@gnu.org; Sun, 13 Feb 2022 22:44:03 -0500 Received: by mail-qv1-xf29.google.com with SMTP id d7so13830989qvk.2 for ; Sun, 13 Feb 2022 19:44:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=efficientek-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=GKVIxH7GrkzPsR+9RlNWonEHk4n/Kc4xrpBmLf4cOto=; b=ErzSnJz/2XSpygsO+qXW7S9N+CLYstbObifxIaVokUDr7Gj+dfJQ+S9UTgm7+DV+Ue sHrfj8phW7s8Z5KB9ZJeQWhNrWAE5Cq8oAeZs0LBE2AKMpgJ8Dmv50WOib2CJgH1cc00 /ywRkM1rdKn/IzIGzcgOJhVb9tzFkRqWzNpCZsZgvVQiTPaRfltYdR8RBEYVCTvrM2h4 5p8JK/sHGyE+PgP6ShE9tmphtuCNhuCw6XLJoK1xroEeLg29V3sFVZ7zqPL01VZggeEn pKVH4Ue8CC0K79wc5okIQwV0j7c6NrT5I0pIpeBoIQPA+EyIXZ+JWYL9g/I5qaHGDS6N l2rg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=GKVIxH7GrkzPsR+9RlNWonEHk4n/Kc4xrpBmLf4cOto=; b=ftLHmG3tK2KHhMG0bgz9P7sbF/22m2JUHv9qBu5HJez+6dj1HykoCck0cRMjv9tQ3e XhW1cqEhiooftocQOH8zfZCPRIBKTn98/SKEHXadEV94JFANhvAnB4x8/KO5mM4Pf7Me QOq2tO8hQaicJwGahcqumwV+CuIzbsgx1KfSWagMBdjFgDT6KGqF/00u1TV8L7LcBeWq wjre5XfilsQ/ubbU9wBAujLSeRU36MAvpk4XG01YS4BW5y2vAzfb594QCrlcsigjUKFm m0ubfAI7CaZbG+I36FwiU84ILpfafZh/MVd20O6Iiuled4RZr2mvtubaQ84C1aNkNxHv tbAw== X-Gm-Message-State: AOAM530e5U9RVviAfM7ga3T4Zo8pXzlOBN6VPmORxhFQHShh0VYMEa9x KTELuD6KJ2v8moaPzYdoUXNhPQ== X-Google-Smtp-Source: ABdhPJxh7mTTv0z2w6cjNtset5yoRcIrpnK8xH2Et6SVuwCBG9+Bla10ZWKkN0OxwT8UxJgdkR2PbA== X-Received: by 2002:a0c:b243:: with SMTP id k3mr8235877qve.56.1644810240362; Sun, 13 Feb 2022 19:44:00 -0800 (PST) Received: from localhost.localdomain (garza.riseup.net. [198.252.153.109]) by smtp.gmail.com with ESMTPSA id z19sm17755800qtj.77.2022.02.13.19.43.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 13 Feb 2022 19:43:59 -0800 (PST) From: Glenn Washburn To: Daniel Kiper , grub-devel@gnu.org Cc: Peter Jones , Robbie Harwood , Glenn Washburn Subject: [PATCH 4/8] gdb: Prevent wrapping when writing to .segments.tmp Date: Sun, 13 Feb 2022 21:42:41 -0600 Message-Id: X-Mailer: git-send-email 2.27.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::f29 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::f29; envelope-from=development@efficientek.com; helo=mail-qv1-xf29.google.com X-Spam_score_int: -2 X-Spam_score: -0.3 X-Spam_bar: / X-Spam_report: (-0.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, PDS_HP_HELO_NORDNS=0.785, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Feb 2022 03:44:04 -0000 GDB logging is redirected to write .segments.tmp, which means that GDB will wrap lines longer than what it thinks is the screen width (typically 80 characters). When wrapping does occur it causes gmodule.pl to misbehave. So disable line wrapping. Signed-off-by: Glenn Washburn --- grub-core/gdb_grub.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/grub-core/gdb_grub.in b/grub-core/gdb_grub.in index 3a0593610..dd1e86bf2 100644 --- a/grub-core/gdb_grub.in +++ b/grub-core/gdb_grub.in @@ -13,6 +13,10 @@ define dump_module_sections set $mod = $arg0 + # Set unlimited width so that lines don't get wrapped writing + # to .segments.tmp + set width 0 + # FIXME: save logging status set logging file .segments.tmp set logging redirect on -- 2.27.0