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

Symbol not defined when using gdb to debug the kernel. #329

Open
pppkkkuuu opened this issue Oct 31, 2022 · 5 comments
Open

Symbol not defined when using gdb to debug the kernel. #329

pppkkkuuu opened this issue Oct 31, 2022 · 5 comments

Comments

@pppkkkuuu
Copy link

pppkkkuuu commented Oct 31, 2022

I boot the kernel successfully by running make boot, and I run make gdb to connect to the VM. But when I want to set a break point, e.g., break sys_access, break sys_dup2. It says that:
image

When I launched the gdb, it say my gdb is configured for x86_64-linux-gnu, and here is the output when I run show configuration in gdb. I doubt may be I should change the target of my gdb to x86 instead?
image

@juteman
Copy link

juteman commented Nov 7, 2022

I have same problem. Did you find a solution to the problem?

@pppkkkuuu
Copy link
Author

Not yet.

@juteman
Copy link

juteman commented Nov 8, 2022

Not yet.

Branch so_2020 work well for me. But it base kernel 4.19.

@dbaluta
Copy link
Member

dbaluta commented Nov 9, 2022

sorry guys, i'm traveling. will get a chance to look into this next weekend.

@Karim0x1
Copy link

I checked the symbols defined inside the vmlinux file and all the syscalls are preceded by __ia32_, so sys_access becomes __ia32_sys_access.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants