dwarves: Move the fprintf code to a new source file.
$ wc -l dwarves.c dwarves_fprintf.c 1468 dwarves.c 1554 dwarves_fprintf.c 3022 total $ Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
parent
e148f93418
commit
f84bf73d54
|
@ -32,8 +32,9 @@ find_package(ZLIB REQUIRED)
|
|||
|
||||
_set_fancy(LIB_INSTALL_DIR "${EXEC_INSTALL_PREFIX}${CMAKE_INSTALL_PREFIX}/${__LIB}" "libdir")
|
||||
|
||||
set(dwarves_LIB_SRCS dwarves.c gobuffer strings ctf_encoder.c ctf_loader.c
|
||||
libctf.c dwarf_loader.c dutil.c elf_symtab.c)
|
||||
set(dwarves_LIB_SRCS dwarves.c dwarves_fprintf.c gobuffer strings
|
||||
ctf_encoder.c ctf_loader.c libctf.c dwarf_loader.c
|
||||
dutil.c elf_symtab.c)
|
||||
add_library(dwarves SHARED ${dwarves_LIB_SRCS})
|
||||
set_target_properties(dwarves PROPERTIES VERSION 1.0.0 SOVERSION 1)
|
||||
target_link_libraries(dwarves ${DWARF_LIBRARIES} ${ZLIB_LIBRARIES})
|
||||
|
|
|
@ -420,6 +420,10 @@ size_t tag__size(const struct tag *self, const struct cu *cu);
|
|||
size_t tag__nr_cachelines(const struct tag *self, const struct cu *cu);
|
||||
struct tag *tag__follow_typedef(const struct tag *tag, const struct cu *cu);
|
||||
|
||||
size_t __tag__id_not_found_fprintf(FILE *fp, uint16_t id, const char *fn);
|
||||
#define tag__id_not_found_fprintf(fp, id) \
|
||||
__tag__id_not_found_fprintf(fp, id, __func__)
|
||||
|
||||
struct ptr_to_member_type {
|
||||
struct tag tag;
|
||||
Dwarf_Off containing_type;
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue