forked from Imagelibrary/binutils-gdb
This implements the DAP setExceptionBreakpoints request for Ada. This is a somewhat minimal implementation, in that "exceptionOptions" are not implemented (or advertised) -- I wasn't completely sure how this feature is supposed to work. I haven't added C++ exception handling here, but it's easy to do if needed. This patch relies on the new MI command execution support to do its work.
45 lines
1.1 KiB
Ada
45 lines
1.1 KiB
Ada
-- Copyright 2023 Free Software Foundation, Inc.
|
|
--
|
|
-- This program is free software; you can redistribute it and/or modify
|
|
-- it under the terms of the GNU General Public License as published by
|
|
-- the Free Software Foundation; either version 3 of the License, or
|
|
-- (at your option) any later version.
|
|
--
|
|
-- This program is distributed in the hope that it will be useful,
|
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
-- GNU General Public License for more details.
|
|
--
|
|
-- You should have received a copy of the GNU General Public License
|
|
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
with Pck; use Pck;
|
|
|
|
procedure Prog is
|
|
begin
|
|
|
|
begin
|
|
raise Program_Error;
|
|
exception
|
|
when others =>
|
|
null;
|
|
end;
|
|
|
|
begin
|
|
Global_Var := 23;
|
|
raise Program_Error;
|
|
exception
|
|
when others =>
|
|
null;
|
|
end;
|
|
|
|
begin
|
|
pragma Assert (False);
|
|
null;
|
|
exception
|
|
when others =>
|
|
null;
|
|
end;
|
|
|
|
end Prog;
|