see JclCreateStackList function in jclDebug unit...
Note that for successfull working, the executable must have some debug
information... (like map file, td32 debug symbols or ..)
But so, the question is not related to OTA, but Object pascal (or Delphi
as they like to call it now) <g>