This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA/Ada(v2) 1/3] Add command to list Ada exceptions


>>>>> "Joel" == Joel Brobecker <brobecker@adacore.com> writes:

Joel> This patch adds a new command "info exceptions" whose purpose is to
Joel> provide the list of exceptions currently defined in the inferior.
Joel> The usage is:

Joel>     (gdb) info exceptions [REGEXP]

Hi Joel.

The new test fails for me like this:

    (gdb) info exceptions
    All defined Ada exceptions:
    const.aint_global_e: 0x608120
    (gdb) FAIL: gdb.ada/info_exc.exp: info exceptions

The test case expects there to be more exceptions:

    gdb_test "info exceptions" \
        [multi_line "All defined Ada exceptions:" \
                    "constraint_error: $hex" \
                    "program_error: $hex" \
                    "storage_error: $hex" \
                    "tasking_error: $hex" \
                    "const.aint_global_e: $hex"]

Any ideas why this may happen?

I'm on Fedora 18 using the system gnat.
I have the libgnat debuginfo installed:

barimba. rpm -qil gcc-debuginfo | grep libgnat
/usr/lib/debug/usr/lib/gcc/x86_64-redhat-linux/4.7.2/adalib/libgnat-4.7.so.debug
/usr/lib/debug/usr/lib/gcc/x86_64-redhat-linux/4.7.2/adalib/libgnat.so.debug
/usr/lib/debug/usr/lib64/libgnat-4.7.so.debug

Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]