Sign in Join
FPDoc Onlineexperiment

RaiseGDBException procedure

In unit LazTracer

Raises an exception in the GDB debugger.

Declaration

pascal
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.

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.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.