You are not logged in.

#1 2024-05-21 15:38:49

RocketDev
Member
Registered: 2023-10-04
Posts: 5

Considering adding more source code in debuginfod server

First of all, I want to thank the maintainer of debuginfod server. As a CTFer, sometimes I have to dig into glibc to inspect what's going on. To my surprise, I can pull source code of glibc just by debuginfod functionality built-in gdb easily. Comparing to Ubuntu, which only provides debuginfo, Arch Linux brings me great convenience. That truly helps when I'm stuck. With source code aside, I can debug libc just like a normal program. Thanks a lot!

However, when I check out cpp programs, I can't pull source code of libstdc++ just by gdb. It seems that there is no source code available:

std::basic_ostream<char, std::char_traits<char> >::operator<< (this=0x555555558040 <std::cout@GLIBCXX_3.4>, __n=5)                                                     
    at /usr/src/debug/gcc/gcc-build/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/ostream.tcc:110                                                                      
Downloading source file /usr/src/debug/gcc/gcc-build/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/ostream.tcc                                                         
warning: 110    /usr/src/debug/gcc/gcc-build/x86_64-pc-linux-gnu/libstdc++-v3/include/bits/ostream.tcc: No such file or directory

I would appreciate it if the source code can be added into the debuginfod server so that I can get it easily. smile

Offline

#2 2024-05-21 20:56:16

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,488
Website

Re: Considering adding more source code in debuginfod server

Noone relevant will see this on the forums.  File a bug report.

Online

#3 2024-05-22 16:04:39

RocketDev
Member
Registered: 2023-10-04
Posts: 5

Re: Considering adding more source code in debuginfod server

Oh, well it seems that I have to acquire an account from Arch Linux SSO to open an issue on GitLab. I think I've found the maintainer of this part. Eh, this job is about debug package, so I should contact the maintainer of gcc-libs right?

Offline

#4 2024-05-22 23:05:17

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,488
Website

Re: Considering adding more source code in debuginfod server

This is an infrastructure issue - the source files are in the gcc-libs-debug package, but your output seems to show that they are not hosted on the debuginfod server.

Online

#5 2024-05-23 16:40:16

RocketDev
Member
Registered: 2023-10-04
Posts: 5

Re: Considering adding more source code in debuginfod server

Allan wrote:

This is an infrastructure issue - the source files are in the gcc-libs-debug package, but your output seems to show that they are not hosted on the debuginfod server.

You're right. I just checked out my libstdc++ and found that debuginfo is built-in. So it's just because the debug package is not generated and be hosted in the debuginfod server. What should I do?

Offline

Board footer

Powered by FluxBB