Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2013-01

Logging caller info

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Mark Morgan Lloyd

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]