]> git.ipfire.org Git - thirdparty/grub.git/commit
gdb: Add functions to make loading from dynamically positioned targets easier
authorGlenn Washburn <development@efficientek.com>
Mon, 27 Feb 2023 21:15:35 +0000 (15:15 -0600)
committerDaniel Kiper <daniel.kiper@oracle.com>
Tue, 14 Mar 2023 15:07:54 +0000 (16:07 +0100)
commit869ece917d98dd5770ae9a19fbe9ab00d25aeb13
tree488f21987587344babd2b32825109047bdacfe6d
parent2f643b0560fbfbdf0c57427a7335aac5ada1201b
gdb: Add functions to make loading from dynamically positioned targets easier

Many targets, such as EFI, load GRUB at addresses that are determined at
runtime. So the load addresses in kernel.exec will almost certainly be
wrong. Given the address of the start of the text segment, these
functions will tell GDB to load the symbols at the proper locations. It
is left up to the user to determine how to get the text address of the
loaded GRUB image.

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