[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#562766: gdb does not support 'break exception'



Package: gnat-4.4
Version: 4.4.2-4

I'm debugging Ada code compiled with gnat-4.4. gdb supports Ada:

(gdb) show lang
The current source language is "auto; currently ada".

However, it does not suppor the 'break exception' command:

(gdb) break exception
"exception" is not a function

'catch exception' does not work for Ada:

(gdb) catch exception
Cannot insert catchpoints in this configuration.

The 'break exception' command is documented in the gnat-4.3-doc info
manual:

    File: gnat_ugn-4.3.info,  Node: Ada Exceptions,  Next: Ada Tasks,  Prev: Using the Next Command in a Function,  Up: Running and Debugging Ada Programs
    *Note (gnat_ugn-4.3)Top:: > *Note Running and Debugging Ada Programs:: > Ada Exceptions

    26.7 Breaking on Ada Exceptions
    ===============================

    You can set breakpoints that trip when your program raises selected
    exceptions.

    `break exception'
         Set a breakpoint that trips whenever (any task in the) program
         raises any exception.

The gnat-4.4-doc package is not yet available.

'break exception' is supported in the gdb included in the GNAT GPL and
Pro distributions.

-- 
-- Stephe



Reply to: