Missing do_cleanups in ada_make_symbol_completion_list.
authorJoel Brobecker <brobecker@gnat.com>
Thu, 16 May 2013 07:02:43 +0000 (07:02 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Thu, 16 May 2013 07:02:43 +0000 (07:02 +0000)
commitb8fea896feba38994f3889cfcae047730b78eba4
treea277eaa702488a790b54ad2b9f58588f39c67e35
parentd5c48113b656f1f2bd67d64a44d2b6c8cc50e8d9
Missing do_cleanups in ada_make_symbol_completion_list.

This results in an internal-warning when trying the completion
when in Ada mode:

    (gdb) b simple<TAB>
    /[...]/cleanups.c:265: internal-warning: restore_my_cleanups has found a stale cleanup
    A problem internal to GDB has been detected,
    further debugging may prove unreliable.
    Quit this debugging session? (y or n)

gdb/ChangeLog:

        * ada-lang.c (ada_make_symbol_completion_list): Make sure
        all cleanups are done before returning from this function.

gdb/testsuite/ChangeLog:

        * gdb.ada/complete.exp: Add test verifying completion using
        the "tab" key.
gdb/ChangeLog
gdb/ada-lang.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.ada/complete.exp