Bug 1215917

Summary: gdb does not download executables from debuginfod server
Product: [openSUSE] openSUSE Distribution Reporter: Josef Cejka <jcejka>
Component: DevelopmentAssignee: Tom de Vries <tdevries>
Status: NEW --- QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: tdevries
Version: Leap 15.5   
Target Milestone: ---   
Hardware: Other   
OS: openSUSE Leap 15.5   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Josef Cejka 2023-10-03 16:16:30 UTC
gdb-12.1 on Leap 15.4/15.5 support downloading debuginfo/debugsource artefacts from debuginfod server but it's unable to download executables and shared libraries.

This makes hard to debug core files on different machines where the binaries are not available.

The issue was already fixed in upstream (released in gdb-13.1):

https://sourceware.org/bugzilla/show_bug.cgi?id=27570

PR gdb/27570: missing support for debuginfod in core_target::build_file_mappings
https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=b91f93a02c9c32e55073c0f18b330a6a9c5cfa34

gdb: Add soname to build-id mapping for core files
https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=39f53acb410c3e303fb25ff823de57eb316515ca

Can be these two patches applied on gdb from Leap15.4 / 15.5?
Comment 1 Tom de Vries 2023-10-03 16:21:20 UTC
Both patches are present in 13.2.

A 13.2 update is coming (the usual fall update), which should take care of this.