On Mon, Jul 31, 2017 at 03:18:21AM +0200, Eugene Syromiatnikov wrote: > The problem here is that these function implement the same non-trivial > logic as their C counterpart, thus, any change in the logic should be > made in two places, which is indeed error-prone.
I'd still disagree. The logic is mostly trivial; if the representation format changes (which is, I guess, unlikely), we would have to break the API anyway. And these functions implement searching in terms of the data we already provide to scripts. It also gives an opportunity to change the way the searching is done (e.g. using a Lua table) if linear search becomes too slow; the C side, on the other hand, only needs to do resolving on startup. ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Strace-devel mailing list Strace-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/strace-devel