Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2003-06

Catch exceptions in gdb

3 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Mattias Gaertner
to Micha Nelissen: How can I catch exceptions in gdb, such that it stops on the line that threw it? Micha.
Show quoted text 11 lines
On Thu, 26 Jun 2003, Micha Nelissen wrote: > Hi, > > How can I catch exceptions in gdb, such that it stops on the line that > threw it? You cannot. You must set a breakpoint on the FPC_RAISE function, and go 1 frame back up the stack to see where the exception is raised.

The IDE uses:

break FPC_RAISEEXCEPTION
break FPC_BREAK_ERROR

maybe this works under win32 too

Mattias

Reply by email

Michael Van Canneyt
to Micha Nelissen
Micha Nelissen wrote
Hi, How can I catch exceptions in gdb, such that it stops on the line that threw it?

You cannot. You must set a breakpoint on the FPC_RAISE function, and go 1 frame back up the stack to see where the exception is raised.

Michael.

Reply by email