Reopening as several people expressed interest after all, with a new version of the changes that only pass the additional information around, without changing the debug traces.
This should also be more or less ABI compatible, using a new struct in place of the current function name string pointer, and checking the first char -assuming function names were never empty- to decide whether the passed pointer is a string or a new context info struct.