gbacktrace.inc 898 B

12345678910111213141516171819202122232425262728
  1. {$ifndef __G_BACKTRACE_H__}
  2. {$define __G_BACKTRACE_H__}
  3. //{$include gtypes.inc}
  4. { Fatal error handlers.
  5. g_on_error_query() will prompt the user to either
  6. [E]xit, [H]alt, [P]roceed or show [S]tack trace.
  7. g_on_error_stack_trace() invokes gdb, which attaches to the current
  8. process and shows a stack trace.
  9. These function may cause different actions on non-unix platforms.
  10. The prg_name arg is required by gdb to find the executable, if it is
  11. passed as NULL, g_on_error_query() will try g_get_prgname().
  12. }
  13. procedure g_on_error_query (prg_name:Pgchar);cdecl;external gliblib name 'g_on_error_query';
  14. procedure g_on_error_stack_trace(prg_name:Pgchar);cdecl;external gliblib name 'g_on_error_stack_trace';
  15. { Hacker macro to place breakpoints for elected machines.
  16. Actual use is strongly discouraged of course ;)
  17. }
  18. {* Not implemented *}
  19. {$endif} { __G_BACKTRACE_H__ }