Commit 34d82f35 authored by Petr Machata's avatar Petr Machata Committed by Petr Machata

Revert "added debugging functions to dump the protolib, symbols"

This reverts commit 1a0806372c8f493de733c9158b68c4a2a0d307a6.
The commit causes build failures.
parent 9f34a405
......@@ -671,31 +671,3 @@ library_with_key_cb(struct process *proc, struct library *lib, void *keyp)
{
return lib->key == *(arch_addr_t *)keyp ? CBS_STOP : CBS_CONT;
}
static enum callback_status
library_dump_aliases_cb(const char **name, void *data)
{
(void)data;
fprintf(stderr, "%s ", *name);
return CBS_CONT;
}
static enum callback_status
library_dump_cb(uint64_t *addr, struct vect **aliases, void *data)
{
(void)data;
VECT_EACH_CST(*aliases, const char*, NULL,
library_dump_aliases_cb, NULL);
fprintf(stderr, "\n");
return CBS_CONT;
}
void
library_dump_symbols(const struct library *lib)
{
fprintf(stderr, "symbol dump start for soname '%s' ===\n", lib->soname);
DICT_EACH(&lib->exported_names.addrs, uint64_t, struct vect*, NULL,
library_dump_cb, NULL);
fprintf(stderr, "symbol dump end =========\n");
}
......@@ -291,9 +291,4 @@ const char** library_exported_names_each_alias(
int library_exported_names_contains(struct library_exported_names *names,
const char *queryname);
/* Debugging function to dump all known library symbols (and their aliases) to
* stderr */
void library_dump_symbols(const struct library *lib);
#endif /* LIBRARY_H */
......@@ -195,19 +195,6 @@ is_or_imports(struct protolib **plibp, void *data)
return CBS_CONT;
}
static
enum callback_status dump_prototypes_cb(void *key, void *value, void *data)
{
fprintf(stderr, " Have prototype '%s'\n", *(char**)key);
return CBS_CONT;
}
void protolib_dump_prototypes(const struct protolib *plib)
{
fprintf(stderr, "protolib dump start =========\n");
dict_each(&plib->prototypes, NULL, dump_prototypes_cb, NULL);
fprintf(stderr, "protolib dump end =========\n");
}
int
protolib_add_import(struct protolib *plib, struct protolib *import)
{
......
......@@ -230,9 +230,6 @@ int protolib_cache_protolib(struct protolib_cache *cache,
const char *filename, int own_filename,
struct protolib *plib);
/* Debugging function to dump all known prototypes to stderr */
void protolib_dump_prototypes(const struct protolib *plib);
/* Single global prototype cache.
*
* XXX Eventually each ABI should have its own cache. The idea is
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment