Systems and methods are provided for instrumenting compiled software to
include diagnostic information such that an origin of a call to one or
more routines may be more easily identified. For example, a system is
provided which unassembles or uncompiles software into a more readily
identifiable instructional form, which is then searched to identify
various calls to various routines of interest. Portions of the identified
calls are then modified with diagnostic information that will identify
the call. This diagnostic information and the call are then recorded so
that the call may be subsequently traced back to its origin when, for
example, an error occurs.