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

Loading kernel symbols does not work #163

Open
ishitatsuyuki opened this issue Apr 30, 2024 · 1 comment
Open

Loading kernel symbols does not work #163

ishitatsuyuki opened this issue Apr 30, 2024 · 1 comment

Comments

@ishitatsuyuki
Copy link
Contributor

Kernel image entries will have a name of [kernel.kallsyms] and a debug path of /usr/lib/debug/boot/vmlinux-{linux_version} (ref). However, this is ignored by get_candidate_paths_for_debug_file, as it only tries to open the file directly if it's named like a PDB.

I first thought of treating kallsyms like PDB, so that the debug file is consulted directly (and if I do a local modification like this, kernel symbol loads). But on second thought, I'm not sure why the debug file is not consulted directly in all cases? Would that break something?

@mstange
Copy link
Owner

mstange commented Apr 30, 2024

Oh, good point, that seems like an oversight. Yes, always trying the debug path in get_candidate_paths_for_debug_file should work, as long as it's done towards the end, e.g. just before trying the regular path. And then the path can be tried only if it's different from the debug path.

So yeah, the only thing we want to avoid is to check the debug path before other sources that have a higher likelihood of containing debug symbols.

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

2 participants