Friday, May 10, 2024
 Popular · Latest · Hot · Upcoming
30
rated 0 times [  30] [ 0]  / answers: 1 / hits: 14278  / 2 Years ago, sat, june 25, 2022, 4:55:51

The default Ubuntu kernel -generic package doesn't seem to have symbols in it.



I'm trying to avoid compile a kernel with debug info manually.



Does Ubuntu provide a package with kernel debug symbols?


More From » kernel

 Answers
5

  1. First create a ddebs.list using:





    echo "deb http://ddebs.ubuntu.com $(lsb_release -cs) main restricted universe multiverse" | sudo tee /etc/apt/sources.list.d/ddebs.list

  2. Then add the GPG key for ddebs.ubuntu.com:



    wget -O - http://ddebs.ubuntu.com/dbgsym-release-key.asc | sudo apt-key add -

  3. Then run:



    sudo apt-get update

  4. Then install the symbols package using:



    sudo apt-get install linux-image-`uname -r`-dbgsym


    This is rather huge (>680MB), so prepare for a wait while you download it.




I use the Linux kernel debug symbols for tools like systemtap on the kernel.


[#35120] Sunday, June 26, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
aslity

Total Points: 336
Total Questions: 133
Total Answers: 98

Location: Zimbabwe
Member since Thu, Jul 21, 2022
2 Years ago
aslity questions
Sat, Apr 22, 23, 23:22, 1 Year ago
Wed, Oct 27, 21, 06:19, 3 Years ago
Sun, Oct 3, 21, 05:33, 3 Years ago
Fri, Jul 1, 22, 17:16, 2 Years ago
;