From 40abfada65f15c9abecc394918da28a6d79d7099 Mon Sep 17 00:00:00 2001 From: Milian Wolff Date: Mon, 19 May 2014 16:23:10 +0200 Subject: [PATCH] Remove uuid code, not required for my usecase afaik. --- libbacktrace/btrace.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/libbacktrace/btrace.cpp b/libbacktrace/btrace.cpp index 8721de3..b4265a5 100644 --- a/libbacktrace/btrace.cpp +++ b/libbacktrace/btrace.cpp @@ -68,8 +68,6 @@ struct btrace_module_info uint32_t address_size; struct backtrace_state *backtrace_state; const char *filename; - int uuid_len; - uint8_t uuid[20]; int is_exe; }; @@ -162,10 +160,6 @@ bool module_info_init_state(btrace_module_info *module_info) if (!module_info->backtrace_state) { module_info->backtrace_state = backtrace_create_state(module_info->filename, 0, backtrace_initialize_error_callback, nullptr); - if (module_info->backtrace_state) { - elf_get_uuid(module_info->backtrace_state, module_info->filename, - module_info->uuid, &module_info->uuid_len); - } } return module_info->backtrace_state; @@ -217,8 +211,6 @@ int dlopen_notify_callback(struct dl_phdr_info *info, size_t /*size*/, void */*d module_info.filename = filename; module_info.is_exe = is_exe; module_info.backtrace_state = nullptr; - module_info.uuid_len = 0; - memset(module_info.uuid, 0, sizeof(module_info.uuid)); auto it = std::lower_bound(module_infos.begin(), module_infos.end(), module_info); if (it == module_infos.end() || *it != module_info) { -- 2.7.4