diff options
author | Regia König | 2022-08-22 10:55:43 +0200 |
---|---|---|
committer | Regia König | 2022-08-22 10:55:43 +0200 |
commit | e1b2285a8a6d65be75901cbf11375de42f30eb7a (patch) | |
tree | 7e49e1f3b57cbe07f7308775bc558fc8166461cf /GNU_efi_HelloWorld | |
parent | Save Makefile for Memtest86plus. Object files have debug symbols in this version (diff) | |
download | memtest86-e1b2285a8a6d65be75901cbf11375de42f30eb7a.tar.gz memtest86-e1b2285a8a6d65be75901cbf11375de42f30eb7a.tar.xz memtest86-e1b2285a8a6d65be75901cbf11375de42f30eb7a.zip |
Save commands to get a successfull execution with gdb
Diffstat (limited to 'GNU_efi_HelloWorld')
-rw-r--r-- | GNU_efi_HelloWorld/gdb_procedure | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/GNU_efi_HelloWorld/gdb_procedure b/GNU_efi_HelloWorld/gdb_procedure new file mode 100644 index 0000000..db39c70 --- /dev/null +++ b/GNU_efi_HelloWorld/gdb_procedure @@ -0,0 +1,18 @@ +../test_code: ./test.sh --- and run hello.efi +../test_code: cat debug.log | grep hello -A 5 + Loading driver at 0x0000657B000 EntryPoint=0x0000657E000 + +(gdb) file hda_contents/hello.efi +(gbb) info files + ... + Entry point: 0x3000 + 0x0000000000003000 - 0x0000000000008980 is .text + ... + 0x000000000000a000 - 0x000000000000bd00 is .data + .... +(gdb) file // unload file +(gdb) add-symbol-file ../GNU_efi_HelloWorld/hello.debug 0x657E000 -s .data 0x6585000 + +(gdb) b efi_main +(gdb) b *0x657e260 + |