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:
Arnaldo Carvalho de Melo 2009-04-19 13:48:51 -03:00
parent e148f93418
commit f84bf73d54
4 changed files with 1566 additions and 1535 deletions

View File

@ -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})

1538
dwarves.c

File diff suppressed because it is too large Load Diff

View File

@ -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;

1554
dwarves_fprintf.c Normal file

File diff suppressed because it is too large Load Diff