Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debuging boot setup? #697

Open
thknx opened this issue Dec 7, 2019 · 0 comments
Open

Debuging boot setup? #697

thknx opened this issue Dec 7, 2019 · 0 comments

Comments

@thknx
Copy link

@thknx thknx commented Dec 7, 2019

(I am not sure is this right place to ask, if isn't please excuse me)

Why we can see start_kernel symbol on GDB but not arch/boot/x86/main.c:main ? I mean I want to debug kernel's early boot setup but when I try to insert any hardware breakpoint to boot codes, gdb cannot see symbols except from kernel codes.

$	qemu-system-x86_64 \
		-kernel $LINUX_SOURCE/arch/x86_64/boot/bzImage \
		-append "console=ttyS0 nokaslr earlycon earlyprintk" \
		-initrd $LINUX_SYSROOT/ramdisk.img \
		-m 1024 \
		--enable-kvm \
		-cpu host \
		-s -S &

$ gdb vmlinux
> target remote :1234
> hbreak start_main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.