Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Prediction is very difficult, especially of the future. -- Niels Bohr


devel / comp.lang.ada / Re: DebugBreak() in Ada

SubjectAuthor
* DebugBreak() in AdaPetter
+* Re: DebugBreak() in AdaNiklas Holsti
|+- Re: DebugBreak() in AdaPetter
|`- Re: DebugBreak() in AdaSimon Wright
`- Re: DebugBreak() in AdaSimon Wright

1
DebugBreak() in Ada

<74eb5c78-2212-48d8-beae-40b2b3ea6e69n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=9540&group=comp.lang.ada#9540

  copy link   Newsgroups: comp.lang.ada
X-Received: by 2002:ac8:7d94:0:b0:3ef:2d41:3e9e with SMTP id c20-20020ac87d94000000b003ef2d413e9emr6139369qtd.4.1682421531573;
Tue, 25 Apr 2023 04:18:51 -0700 (PDT)
X-Received: by 2002:a81:ad60:0:b0:54f:bb71:c7b3 with SMTP id
l32-20020a81ad60000000b0054fbb71c7b3mr7499840ywk.9.1682421531399; Tue, 25 Apr
2023 04:18:51 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.ada
Date: Tue, 25 Apr 2023 04:18:51 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=80.65.63.100; posting-account=ACEctQoAAAD3d42JSpp6_fpg88BhdFDo
NNTP-Posting-Host: 80.65.63.100
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <74eb5c78-2212-48d8-beae-40b2b3ea6e69n@googlegroups.com>
Subject: DebugBreak() in Ada
From: petter_fryklund@hotmail.com (Petter)
Injection-Date: Tue, 25 Apr 2023 11:18:51 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1173
 by: Petter - Tue, 25 Apr 2023 11:18 UTC

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

Re: DebugBreak() in Ada

<kapuceFoq8mU1@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=9541&group=comp.lang.ada#9541

  copy link   Newsgroups: comp.lang.ada
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!news.szaf.org!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: niklas.holsti@tidorum.invalid (Niklas Holsti)
Newsgroups: comp.lang.ada
Subject: Re: DebugBreak() in Ada
Date: Tue, 25 Apr 2023 15:11:57 +0300
Organization: Tidorum Ltd
Lines: 18
Message-ID: <kapuceFoq8mU1@mid.individual.net>
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>
 by: Niklas Holsti - Tue, 25 Apr 2023 12:11 UTC

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.

Re: DebugBreak() in Ada

<ea6088fb-6e1e-4d8b-9286-072a5944b38en@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=9542&group=comp.lang.ada#9542

  copy link   Newsgroups: comp.lang.ada
X-Received: by 2002:a05:620a:129a:b0:74d:fdca:a6c6 with SMTP id w26-20020a05620a129a00b0074dfdcaa6c6mr2939795qki.14.1682436082946;
Tue, 25 Apr 2023 08:21:22 -0700 (PDT)
X-Received: by 2002:a25:da89:0:b0:b99:efd5:2e05 with SMTP id
n131-20020a25da89000000b00b99efd52e05mr1651081ybf.8.1682436082525; Tue, 25
Apr 2023 08:21:22 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.ada
Date: Tue, 25 Apr 2023 08:21:22 -0700 (PDT)
In-Reply-To: <kapuceFoq8mU1@mid.individual.net>
Injection-Info: google-groups.googlegroups.com; posting-host=80.65.63.100; posting-account=ACEctQoAAAD3d42JSpp6_fpg88BhdFDo
NNTP-Posting-Host: 80.65.63.100
References: <74eb5c78-2212-48d8-beae-40b2b3ea6e69n@googlegroups.com> <kapuceFoq8mU1@mid.individual.net>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <ea6088fb-6e1e-4d8b-9286-072a5944b38en@googlegroups.com>
Subject: Re: DebugBreak() in Ada
From: petter_fryklund@hotmail.com (Petter)
Injection-Date: Tue, 25 Apr 2023 15:21:22 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2333
 by: Petter - Tue, 25 Apr 2023 15:21 UTC

tisdag 25 april 2023 kl. 14:12:02 UTC+2 skrev Niklas Holsti:
> 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.

Sorry, I thougth DebugBreak() was familiar. If you in other languages not used by me call DebugBreak() i cuases the debugger to stop a running execution. I'm thought we had a similar for Ada. But I can be mistaken

Re: DebugBreak() in Ada

<lycz3r98vf.fsf@pushface.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=9543&group=comp.lang.ada#9543

  copy link   Newsgroups: comp.lang.ada
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: simon@pushface.org (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
Lines: 11
Message-ID: <lycz3r98vf.fsf@pushface.org>
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=
 by: Simon Wright - Tue, 25 Apr 2023 17:20 UTC

Petter <petter_fryklund@hotmail.com> 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.

Re: DebugBreak() in Ada

<ly5y9j98ro.fsf@pushface.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=9544&group=comp.lang.ada#9544

  copy link   Newsgroups: comp.lang.ada
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: simon@pushface.org (Simon Wright)
Newsgroups: comp.lang.ada
Subject: Re: DebugBreak() in Ada
Date: Tue, 25 Apr 2023 18:22:35 +0100
Organization: A noiseless patient Spider
Lines: 9
Message-ID: <ly5y9j98ro.fsf@pushface.org>
References: <74eb5c78-2212-48d8-beae-40b2b3ea6e69n@googlegroups.com>
<kapuceFoq8mU1@mid.individual.net>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: dont-email.me; posting-host="1143267c6d309f8a5ee546d2f09da72a";
logging-data="1018990"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX192ADlYOOx55D9Cpq5j+XFtyJifeCRK1Mo="
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (darwin)
Cancel-Lock: sha1:n4kPKOAMwOzICLzDjqaf1n/aBxI=
sha1:p70L7JBi1t3JvWDi1gXWn1XqIJs=
 by: Simon Wright - Tue, 25 Apr 2023 17:22 UTC

Niklas Holsti <niklas.holsti@tidorum.invalid> writes:

> 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.

Great idea!

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor