From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-65-14.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: DebugBreak() in Ada Date: Tue, 25 Apr 2023 18:20:20 +0100 Organization: A noiseless patient Spider Message-ID: References: <74eb5c78-2212-48d8-beae-40b2b3ea6e69n@googlegroups.com> MIME-Version: 1.0 Content-Type: text/plain Injection-Info: dont-email.me; posting-host="1143267c6d309f8a5ee546d2f09da72a"; logging-data="1018935"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18xzXPfmOt+LichI2btpfCk4bmVelmEFyA=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (darwin) Cancel-Lock: sha1:lOyLB0ficCNkpNFSa+yGhnrme+g= sha1:RifFbTZVK2IztESjjFTIz497ERY= Xref: news.eternal-september.org comp.lang.ada:65140 List-Id: Petter writes: > I used some way to cause a DebugBreak() (programmatically causeng a > break command in gdb) some 10 years ago. Now I can't find it. Perhaps > one could raise int3? But I can't find how to either. I just googled debugbreak and the third hit was this: https://github.com/scottt/debugbreak It'd need some work, but at least on macOS/x86_64 GCC & clang[++] both give a SIGTRAP.