summaryrefslogtreecommitdiff
path: root/unwind.c
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@altlinux.org>2014-06-13 18:20:08 +0400
committerDmitry V. Levin <ldv@altlinux.org>2014-06-13 18:20:08 +0400
commit2222b928c65b1259f27625d6e50627865fb75336 (patch)
tree811ff7949b7136a131efe02b91376d7759bd0428 /unwind.c
parent52840ede0c72d90b9dad3dc829ef4b4909d51ab6 (diff)
downloadstrace-2222b928c65b1259f27625d6e50627865fb75336.tar.gz
unwind: remove unused field from mmap_cache_t
* unwind.c (mmap_cache_t): Remove "deleted" field. (build_mmap_cache): Remove initialization of "deleted" field.
Diffstat (limited to 'unwind.c')
-rw-r--r--unwind.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/unwind.c b/unwind.c
index c4a262cd7..85ba8fbe5 100644
--- a/unwind.c
+++ b/unwind.c
@@ -58,7 +58,6 @@ struct mmap_cache_t {
unsigned long end_addr;
unsigned long mmap_offset;
char *binary_filename;
- bool deleted;
};
/*
@@ -146,10 +145,6 @@ build_mmap_cache(struct tcb* tcp)
struct mmap_cache_t *cache_head;
FILE *fp;
- const char *deleted = " (deleted)";
- size_t blen;
- size_t dlen;
-
unw_flush_cache (libunwind_as, 0, 0);
sprintf(filename, "/proc/%d/maps", tcp->pid);
@@ -188,13 +183,6 @@ build_mmap_cache(struct tcb* tcp)
cur_entry->mmap_offset = mmap_offset;
cur_entry->binary_filename = strdup(binary_path);
- dlen = strlen(deleted);
- blen = strlen(binary_path);
- if (blen >= dlen && strcmp(binary_path + blen - dlen, deleted) == 0)
- cur_entry->deleted = true;
- else
- cur_entry->deleted = false;
-
/*
* sanity check to make sure that we're storing
* non-overlapping regions in ascending order