]> git.ipfire.org Git - thirdparty/grub.git/commit
gdb: If no modules have been loaded, do not try to load module symbols
authorGlenn Washburn <development@efficientek.com>
Tue, 21 Feb 2023 18:28:48 +0000 (12:28 -0600)
committerDaniel Kiper <daniel.kiper@oracle.com>
Tue, 28 Feb 2023 12:46:49 +0000 (13:46 +0100)
commitc152f3a44dca47acd7c1b4e32deee766ed615469
tree08b67dbea5e865a5ba715f6565bab01647ebfee3
parent4c080a1328efa94e4cac2865131dd5085b5ef4f4
gdb: If no modules have been loaded, do not try to load module symbols

This prevents load_all_modules from failing when called before any
modules have been loaded. Failures in GDB user-defined functions cause
any function which called them to also fail.

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