summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorHousam Alamour <[email protected]>2023-09-07 14:29:19 -0400
committerAaron Merey <[email protected]>2023-10-24 15:50:30 -0400
commitcb4f0e0fffbcdb124bd1b82f558095a9c7aa64b1 (patch)
tree11caa8f08c83b5c25a581f80f9df9e47ac5f885c /lib
parentb770e1c4def3532c7b59c4d2e4cd3cee26d4548b (diff)
PR 30000: debuginfod-find should have a source-list verb
* seclines.cxx: Introduce new tool that compiles a list of source files associated with a specified dwarf/elf file. This compilation relies on searching the dwarf debug information, which can be automatically retrieved via debuginfod using libdwfl functions when required. The target file can encompass various types, such as an executable, a coredump, a running process, or the currently executing kernel. The source file names are rendered as unique entries and then displayed on the standard output. * run-srcfiles-self.sh: New test-case for tool. https://sourceware.org/bugzilla/show_bug.cgi?id=30000 Signed-off-by: Housam Alamour <[email protected]>
Diffstat (limited to 'lib')
-rw-r--r--lib/printversion.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/printversion.h b/lib/printversion.h
index 4154b328..6811aa5b 100644
--- a/lib/printversion.h
+++ b/lib/printversion.h
@@ -32,6 +32,9 @@
#include <argp.h>
#include <stdio.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
/* Defined in version.c. Common ARGP_PROGRAM_VERSION_HOOK_DEF. */
void print_version (FILE *stream, struct argp_state *state);
@@ -49,4 +52,8 @@ extern const char *const apba__;
#define ARGP_PROGRAM_BUG_ADDRESS_DEF \
const char *const apba__ __asm ("argp_program_bug_address")
+#ifdef __cplusplus
+}
+#endif
+
#endif // PRINTVERSION_H