aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/dev-replace.c
diff options
context:
space:
mode:
authorIlya Leoshkevich <[email protected]>2025-06-25 15:36:52 +0000
committerAlexander Gordeev <[email protected]>2025-07-10 12:42:10 +0000
commitb6d0427cfc699243fc1f82087b58f63d389321aa (patch)
tree1acec8ab9943b06640de925fd1e1475e357b0f6e /fs/btrfs/dev-replace.c
parents390/boot: Introduce jump_to_kernel() function (diff)
downloadkernel-b6d0427cfc699243fc1f82087b58f63d389321aa.tar.gz
kernel-b6d0427cfc699243fc1f82087b58f63d389321aa.zip
scripts/gdb/symbols: make lx-symbols skip the s390 decompressor
When one starts QEMU with the -S flag and attaches GDB, the kernel is not yet loaded, and the current instruction is an entry point to the decompressor. In case the intention is to debug the early kernel boot, and not the decompressor, e.g., put a breakpoint on some kernel function and see all the invocations, one has to skip the decompressor. There are many ways to do this, and so far people wrote private scripts or memorized certain command sequences. Make it work out of the box like this: $ gdb -ex 'target remote :6812' -ex 'source vmlinux-gdb.py' vmlinux Remote debugging using :6812 0x0000000000010000 in ?? () (gdb) lx-symbols loading vmlinux (gdb) x/i $pc => 0x3ffe0100000 <startup_continue>: lghi %r2,0 Implement this by reading the address of the jump_to_kernel() function from the lowcore, and step until DAT is turned on. Signed-off-by: Ilya Leoshkevich <[email protected]> Acked-by: Jan Kiszka <[email protected]> Tested-by: Alexander Gordeev <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexander Gordeev <[email protected]>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions