[Top][All Lists]

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

[PATCH 3/8] gdb: Do not lazy load module symbols

From: Glenn Washburn
Subject: [PATCH 3/8] gdb: Do not lazy load module symbols
Date: Sun, 13 Feb 2022 21:42:40 -0600

When loading module symbols, tell GDB to load them all right away. GDB by
default will lazy load symbols as needed in the background. However, this
process will output to GDB's stdout some messages. This fixes a bug where
output from the loading process gets printed to the .segments.tmp file
causing to write a bad .loadsym.gdb that GDB chokes on.

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

diff --git a/grub-core/ b/grub-core/
index 78aa1e64e..c74eedf4a 100644
--- a/grub-core/
+++ b/grub-core/
@@ -11,7 +11,7 @@ use strict;
 while (<>) {
        my ($name, %sections) = split;
-       print "add-symbol-file $name.module";
+       print "add-symbol-file -readnow $name.module";
        open (READELF, "readelf -S $name.mod |") or die;
        while (<READELF>) {

reply via email to

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