[fpc-pascal] Logging caller info
Mark Morgan Lloyd
markMLl.fpc-pascal at telemetry.co.uk
Wed Jan 2 12:41:00 CET 2013
Is there a "civilised" (i.e. fairly portable and not to tricky to code)
way that a procedure can find what's called it at runtime, without
having to have gdb etc.?
The sort of scenario I'm looking at is "instrumenting" a database
connection object's GetHandle() function, so that an atomic semaphore
can log what's caused a critical section to be entered and an assertion
can report details on attempts to reenter?
--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk
[Opinions above are the author's, not those of his employers or colleagues]
More information about the fpc-pascal
mailing list