diff options
author | Dmitry V. Levin <ldv@altlinux.org> | 2014-06-13 18:20:08 +0400 |
---|---|---|
committer | Dmitry V. Levin <ldv@altlinux.org> | 2014-06-13 18:20:08 +0400 |
commit | 2222b928c65b1259f27625d6e50627865fb75336 (patch) | |
tree | 811ff7949b7136a131efe02b91376d7759bd0428 /unwind.c | |
parent | 52840ede0c72d90b9dad3dc829ef4b4909d51ab6 (diff) | |
download | strace-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.c | 12 |
1 files changed, 0 insertions, 12 deletions
@@ -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 |