summaryrefslogtreecommitdiffstats
path: root/GNU_efi_HelloWorld/gdb_procedure
diff options
context:
space:
mode:
authorRegina König2022-09-07 23:24:55 +0200
committerRegina König2022-09-07 23:24:55 +0200
commit09e1b4fb40878ef29b8ca36b93172fcd89c70883 (patch)
treef731cd63f8a6511d1b1bbad6ed4eb01111e77995 /GNU_efi_HelloWorld/gdb_procedure
parenthiuhi (diff)
parentRename dir and experiment with cmdline options (diff)
downloadmemtest86-09e1b4fb40878ef29b8ca36b93172fcd89c70883.tar.gz
memtest86-09e1b4fb40878ef29b8ca36b93172fcd89c70883.tar.xz
memtest86-09e1b4fb40878ef29b8ca36b93172fcd89c70883.zip
Merge branch 'master' of git.openslx.org:openslx-ng/memtest86HEADmaster
Diffstat (limited to 'GNU_efi_HelloWorld/gdb_procedure')
-rw-r--r--GNU_efi_HelloWorld/gdb_procedure24
1 files changed, 24 insertions, 0 deletions
diff --git a/GNU_efi_HelloWorld/gdb_procedure b/GNU_efi_HelloWorld/gdb_procedure
new file mode 100644
index 0000000..2ee853f
--- /dev/null
+++ b/GNU_efi_HelloWorld/gdb_procedure
@@ -0,0 +1,24 @@
+../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
+(gdb) info b
+
+(gdb) target remote localhost:1234
+(gdb) c
+
+(gdb) layout asm
+(gdb) layout src