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=-3.2 required=3.0 tests=BAYES_00,NICE_REPLY_A, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 Path: eternal-september.org!news.eternal-september.org!news.szaf.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Niklas Holsti Newsgroups: comp.lang.ada Subject: Re: DebugBreak() in Ada Date: Tue, 25 Apr 2023 15:11:57 +0300 Organization: Tidorum Ltd Message-ID: References: <74eb5c78-2212-48d8-beae-40b2b3ea6e69n@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net KNA1wES/3kNnLp50RUlfQwYAR8p/QfCS4TgEsCRFySg8V14/YZ Cancel-Lock: sha1:sxmlYkQ7GIsSCMCwgV1zET84OeU= User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Content-Language: en-US In-Reply-To: <74eb5c78-2212-48d8-beae-40b2b3ea6e69n@googlegroups.com> Xref: news.eternal-september.org comp.lang.ada:65138 List-Id: On 2023-04-25 14:18, Petter wrote: > 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. Regards, > Petter What do you mean by "causing a break command in gdb"? Do you intend to run the program under gdb, and want to be able to insert something -- perhaps a call DebugBreak -- in the Ada source to always cause a break into gdb control at the point of that call, without having to set gdb breakpoints at every call? It is not a fully automatic method, but you could write a null Ada procedure DebugBreak and set a breakpoint in that procedure, manually from gdb, before starting the program. Then every call to DebugBreak will break, and you can look one level down in the call chain to see the state at the point of call.