[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v4 13/15] gdb: Add extra early initialization symbols for i386-pc
From: |
Glenn Washburn |
Subject: |
[PATCH v4 13/15] gdb: Add extra early initialization symbols for i386-pc |
Date: |
Thu, 15 Dec 2022 23:29:36 -0600 |
Add symbols for boot.image, disk.image, and lzma_decompress.image if the
target is i386-pc.
Signed-off-by: Glenn Washburn <development@efficientek.com>
---
grub-core/gdb_grub.in | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/grub-core/gdb_grub.in b/grub-core/gdb_grub.in
index 3b3cea1a4d..a9c9d00430 100644
--- a/grub-core/gdb_grub.in
+++ b/grub-core/gdb_grub.in
@@ -181,12 +181,18 @@ set confirm off
# fail.
set $platform_efi = $_streq("@platform@", "efi")
+set $target = "@target_cpu@-@platform@"
if ! $runonce
if $platform_efi
# Only load the executable file, not the symbols
exec-file kernel.exec
else
+ if $_streq($target, "i386-pc")
+ add-symbol-file boot.image
+ add-symbol-file diskboot.image
+ add-symbol-file lzma_decompress.image
+ end
file kernel.exec
run_on_start
runtime_load_module
--
2.34.1
- Re: [PATCH v4 08/15] gdb: If enabled, print line used to load EFI kernel symbols when using gdb_grub script, (continued)
[PATCH v4 09/15] gdb: Conditionally run GDB script logic for dynamically or statically positioned GRUB, Glenn Washburn, 2022/12/16
[PATCH v4 10/15] gdb: Only connect to remote target once when first sourced, Glenn Washburn, 2022/12/16
[PATCH v4 12/15] gdb: Allow running user-defined commands at GRUB start, Glenn Washburn, 2022/12/16
[PATCH v4 13/15] gdb: Add extra early initialization symbols for i386-pc,
Glenn Washburn <=
[PATCH v4 14/15] gdb: Add ability to turn on shell tracing for gdb helper script, Glenn Washburn, 2022/12/16
[PATCH v4 11/15] gdb: Allow user defined "onload_<modname>" command to be run when module is loaded, Glenn Washburn, 2022/12/16
[PATCH v4 15/15] docs: Add debugging chapter to development documentation, Glenn Washburn, 2022/12/16