[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 4/8] gdb: Prevent wrapping when writing to .segments.tmp

From: Glenn Washburn
Subject: [PATCH 4/8] gdb: Prevent wrapping when writing to .segments.tmp
Date: Sun, 13 Feb 2022 21:42:41 -0600

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 to misbehave. So
disable line wrapping.

Signed-off-by: Glenn Washburn <>
 grub-core/ | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/grub-core/ b/grub-core/
index 3a0593610..dd1e86bf2 100644
--- a/grub-core/
+++ b/grub-core/
@@ -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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]