[Overview][Types][Procedures and functions][Index] Reference for unit 'LazTracer' (#lazutils)

RaiseGDBException

Raises an exception in the GDB debugger.

Declaration

Source position: laztracer.pas line 29

procedure RaiseGDBException(

  const Msg: string

);

Arguments

Msg

  

Value for the message in the exception.

Description

RaiseGDBException is a procedure used to raise an exception in the GDB debugger. Normally, GDB does not catch FPC Exception objects. This procedure raises a standard "Division By Zero" exception, which IS caught by GDB. This allows a program to be stopped in the debugger without extra GDB configuration.

Remark: For the Amiga platform, Division by Zero errors are not catchable. The program will simply crash.

Msg contains the value used as the message in the exception.