How many packages are there in the debuginfod server

Asked by Q

Hi, I am intrested in using gdb to analyze some stripped files of apt packages, and I currently use debuginfod to do the work to get debug symbol.
I am wondering if there is a way to get a list of .debug files that are stored in the debuginfod server.

Best wishes

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu elfutils Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Bernard Stafford (bernard010) said (last edit ):
#1

The only way I know of is Terminal:
cd debuginfod
cat symbols (file) May need root privileges.

Not listed in the docs.
https://ubuntu.com/server/docs/service-debuginfod
https://ubuntu.com/server/docs/service-debuginfod-faq

Revision history for this message
Bernard Stafford (bernard010) said :
#2
Revision history for this message
Q (fr3vl) said :
#3

But I just follow the command on https://ubuntu.com/server/docs/service-debuginfod
and just write `export DEBUGINFOD_URLS="https://debuginfod.ubuntu.com"` and `set debuginfod enabled on` into the corresponding file.
I am confused about your suggestion, since I can not find the folder :
```
cd debuginfod
cat symbols (file)
```

Revision history for this message
Bernard Stafford (bernard010) said (last edit ):
#4

I was not able to find a list of debug symbols.
You my be able to:
cd /debuginfod
ls
look for debug symbols folder
cat the folder

Built-in debug symbol packages (*-dbg) xserver-xorg-core-dbg
Non-built-in debug symbol packages (*-dbgsym)
libprotobuf-c1-dbg
libprotobuf-c1-dbgsym

Revision history for this message
Manfred Hampl (m-hampl) said :
#5

There seems to be some misunderstanding.

My interpretation of the debugging processes is the following:

In the past the debug packages had to be downloaded manually from the http://ddebs.ubuntu.com/ server and they are still there.
To make access easier, now there is a debuginfod service to be running on your local machine that cares for download.

I am not using that service, so I do not know where the debug packages are stored locally, I just see from the source that an SQLite3 database is involved.

So the question is - which "debuginfod server" are you talking of?

Revision history for this message
Q (fr3vl) said :
#6

Yes, I agree with your interpretation of the two ways of debugging. And I know there are ddeb packages which contains the corresponding .debug files.
For some reason I have to try to use the "debuginfod" service, because I may have to do the process in other Linux distros which they dont have the separated debug packages.
I am actually using the "https://debuginfod.ubuntu.com" as "debuginfod server"described in "https://ubuntu.com/server/docs/service-dbuginfod".

Revision history for this message
Q (fr3vl) said :
#7

Yes, I agree with your interpretation of the two ways of debugging. And I know there are ddeb packages which contains the corresponding .debug files. For some reason I have to try to use the "debuginfod" service, because I may have to do the process in other Linux distros which they dont have the separated debug packages. I am actually using the "https://debuginfod.ubuntu.com" as "debuginfod server"described in "https://ubuntu.com/server/docs/service-dbuginfod".

Revision history for this message
Manfred Hampl (m-hampl) said :
#8

correct link is https://ubuntu.com/server/docs/service-debuginfod ("e" missing)

The only thing I know is that a link like https://debuginfod.ubuntu.com/buildid/69389d485a9793dbe873f0ea2c93e02efaa9aa3d/debuginfo is working and downloads an ELF file with debug information.

Revision history for this message
Manfred Hampl (m-hampl) said :
#9

Further search indicates, that the cached data are stored in the directory $HOME/.cache/debuginfod_client (or $XDG_CACHE_HOME/debuginfod_client)

What is now your question?

The debuginfod service is meant to download the debug packages at the moment when you need them. What do you expect by downloading everything what's available but not necessarily needed on your system?

Can you help with this problem?

Provide an answer of your own, or ask Q for more information if necessary.

To post a message you must log in.