Version: 0.3.0
* Preliminary autoconf support
* Switched to getopt()
* New option: -C (demangle C++ names)
* New options: --help, --version
* Display "format" (printf-like) argument types
* Updated manual page
* New option: -e
diff --git a/proc.c b/proc.c
index 3369127..5920e51 100644
--- a/proc.c
+++ b/proc.c
@@ -25,6 +25,25 @@
proc->next = NULL;
if (opt_L && filename) {
proc->list_of_symbols = read_elf(filename);
+ if (opt_e) {
+ struct library_symbol ** tmp1 = &(proc->list_of_symbols);
+ while(*tmp1) {
+ struct opt_e_t * tmp2 = opt_e;
+ int keep = !opt_e_enable;
+
+ while(tmp2) {
+ if (!strcmp((*tmp1)->name, tmp2->name)) {
+ keep = opt_e_enable;
+ }
+ tmp2 = tmp2->next;
+ }
+ if (!keep) {
+ *tmp1 = (*tmp1)->next;
+ } else {
+ tmp1 = &((*tmp1)->next);
+ }
+ }
+ }
} else {
proc->list_of_symbols = NULL;
}