dkogan / ltrace

GNU General Public License v2.0
47 stars 17 forks source link

question about options filter for "-e" #12

Closed NanFeng009 closed 2 years ago

NanFeng009 commented 2 years ago

based on code comment, only the filter starts with '-' there will be an implicitly rule @. but from code both '+' and '-" will have an implicitly rule '@, am right? is comment wrong or code wrong? for me i think this implicitly rule don't make sense. '-' or '+' can just decorate firstly rule. for example "-malloc@libc.so' means exclude malloc on libc.so while "+malloc@libc.so" means include malloc on libc.so. why need this impilictly rule? parse_filter(struct filter filt, char expr, int operators) { /* Filter is a chain of sym@lib rules separated by '-' or '+'.

dkogan commented 2 years ago

This is just a fork. I don't maintain this project. I don't think anybody does.