]> git.ipfire.org Git - thirdparty/grub.git/commit
gdb: Prevent wrapping when writing to .segments.tmp
authorGlenn Washburn <development@efficientek.com>
Tue, 21 Feb 2023 18:28:47 +0000 (12:28 -0600)
committerDaniel Kiper <daniel.kiper@oracle.com>
Tue, 28 Feb 2023 12:41:57 +0000 (13:41 +0100)
commit4c080a1328efa94e4cac2865131dd5085b5ef4f4
treea3cd54793599445d42f9f05cbad36f75887e2310
parenta0b86f1807964010d159208bebb65509cf1b5ae9
gdb: Prevent wrapping when writing to .segments.tmp

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 by using GDB's "with" command so
that its guaranteed to return the width to the previous value upon
command completion.

Also disable command tracing when dumping the module sections because that
output will go to .segments.tmp and thus cause gmodule.pl to misbehave.

Signed-off-by: Glenn Washburn <development@efficientek.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/gdb_grub.in