]> git.ipfire.org Git - thirdparty/elfutils.git/commit
debuginfod: factor out common code for responding from an archive
authorOmar Sandoval <osandov@fb.com>
Tue, 23 Jul 2024 22:35:39 +0000 (15:35 -0700)
committerAaron Merey <amerey@redhat.com>
Wed, 24 Jul 2024 22:13:40 +0000 (18:13 -0400)
commit484b79bb4a693d46c9653c16b2fc8d2c5ea006d1
treee819951abc8f1a0342b91f98e9c3f9e8484489b7
parent74686e47cf3137020fe07143b22ec2dc2dd01b7f
debuginfod: factor out common code for responding from an archive

handle_buildid_r_match has two very similar branches where it optionally
extracts a section and then creates a microhttpd response.  In
preparation for adding a third one, factor it out into a function.

Signed-off-by: Omar Sandoval <osandov@fb.com>
debuginfod/debuginfod.cxx