debug-info: Compile as C++
authorErica Bugden <ebugden@efficios.com>
Wed, 21 Aug 2024 17:53:12 +0000 (13:53 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Mon, 11 Nov 2024 18:37:53 +0000 (13:37 -0500)
commit78ac3a7dcde59c85dfe6835e71eb7a10d78c1e82
treea83341814fbc689aca6504f367f1eae4ddb27c7e
parent0e82e6bc5f164e78bc83d3f042fbe21cb09838e5
debug-info: Compile as C++

Justifications
==============

Leave `crc32.h` and `crc32.c` as C code: The file is code
external to the project and it is typical to never modify these files.
However, when compiling alonside C++ code we must explicitly specify
that it is C code so that the compiler knows to refer to function
names with the non-mangled symbol name. Specifying that `crc32.h` is C
in the file was less intrusive compared to translating the whole file
to C++.

Change-Id: I5e8823ceca994c035de6ebba5df22b2c3d11a02b
Signed-off-by: Erica Bugden <ebugden@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/13225
Reviewed-by: Simon Marchi <simon.marchi@efficios.com>
45 files changed:
src/Makefile.am
src/fd-cache/fd-cache.c [deleted file]
src/fd-cache/fd-cache.cpp [new file with mode: 0644]
src/fd-cache/fd-cache.h [deleted file]
src/fd-cache/fd-cache.hpp [new file with mode: 0644]
src/plugins/lttng-utils/debug-info/bin-info.c [deleted file]
src/plugins/lttng-utils/debug-info/bin-info.cpp [new file with mode: 0644]
src/plugins/lttng-utils/debug-info/bin-info.h [deleted file]
src/plugins/lttng-utils/debug-info/bin-info.hpp [new file with mode: 0644]
src/plugins/lttng-utils/debug-info/crc32.h
src/plugins/lttng-utils/debug-info/debug-info.c [deleted file]
src/plugins/lttng-utils/debug-info/debug-info.cpp [new file with mode: 0644]
src/plugins/lttng-utils/debug-info/debug-info.h [deleted file]
src/plugins/lttng-utils/debug-info/debug-info.hpp [new file with mode: 0644]
src/plugins/lttng-utils/debug-info/dwarf.c [deleted file]
src/plugins/lttng-utils/debug-info/dwarf.cpp [new file with mode: 0644]
src/plugins/lttng-utils/debug-info/dwarf.h [deleted file]
src/plugins/lttng-utils/debug-info/dwarf.hpp [new file with mode: 0644]
src/plugins/lttng-utils/debug-info/trace-ir-data-copy.c [deleted file]
src/plugins/lttng-utils/debug-info/trace-ir-data-copy.cpp [new file with mode: 0644]
src/plugins/lttng-utils/debug-info/trace-ir-data-copy.h [deleted file]
src/plugins/lttng-utils/debug-info/trace-ir-data-copy.hpp [new file with mode: 0644]
src/plugins/lttng-utils/debug-info/trace-ir-mapping.c [deleted file]
src/plugins/lttng-utils/debug-info/trace-ir-mapping.cpp [new file with mode: 0644]
src/plugins/lttng-utils/debug-info/trace-ir-mapping.h [deleted file]
src/plugins/lttng-utils/debug-info/trace-ir-mapping.hpp [new file with mode: 0644]
src/plugins/lttng-utils/debug-info/trace-ir-metadata-copy.c [deleted file]
src/plugins/lttng-utils/debug-info/trace-ir-metadata-copy.cpp [new file with mode: 0644]
src/plugins/lttng-utils/debug-info/trace-ir-metadata-copy.h [deleted file]
src/plugins/lttng-utils/debug-info/trace-ir-metadata-copy.hpp [new file with mode: 0644]
src/plugins/lttng-utils/debug-info/trace-ir-metadata-field-class-copy.c [deleted file]
src/plugins/lttng-utils/debug-info/trace-ir-metadata-field-class-copy.cpp [new file with mode: 0644]
src/plugins/lttng-utils/debug-info/trace-ir-metadata-field-class-copy.h [deleted file]
src/plugins/lttng-utils/debug-info/trace-ir-metadata-field-class-copy.hpp [new file with mode: 0644]
src/plugins/lttng-utils/debug-info/utils.c [deleted file]
src/plugins/lttng-utils/debug-info/utils.cpp [new file with mode: 0644]
src/plugins/lttng-utils/debug-info/utils.h [deleted file]
src/plugins/lttng-utils/debug-info/utils.hpp [new file with mode: 0644]
src/plugins/lttng-utils/plugin.c [deleted file]
src/plugins/lttng-utils/plugin.cpp [new file with mode: 0644]
tests/plugins/flt.lttng-utils.debug-info/Makefile.am
tests/plugins/flt.lttng-utils.debug-info/test-bin-info.c [deleted file]
tests/plugins/flt.lttng-utils.debug-info/test-bin-info.cpp [new file with mode: 0644]
tests/plugins/flt.lttng-utils.debug-info/test-dwarf.c [deleted file]
tests/plugins/flt.lttng-utils.debug-info/test-dwarf.cpp [new file with mode: 0644]
This page took 0.027426 seconds and 4 git commands to generate.