Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

If it has syntax, it isn't user friendly.


devel / comp.lang.forth / Creating on-the fly debug info for gdb?

SubjectAuthor
* Creating on-the fly debug info for gdb?Ron AARON
+- Re: Creating on-the fly debug info for gdb?Ron AARON
`* Re: Creating on-the fly debug info for gdb?Lars Brinkhoff
 `- Re: Creating on-the fly debug info for gdb?Ron AARON

1
Creating on-the fly debug info for gdb?

<sanate$m39$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=13649&group=comp.lang.forth#13649

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: clf...@8th-dev.com (Ron AARON)
Newsgroups: comp.lang.forth
Subject: Creating on-the fly debug info for gdb?
Date: Sun, 20 Jun 2021 15:05:02 +0300
Organization: A noiseless patient Spider
Lines: 11
Message-ID: <sanate$m39$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 20 Jun 2021 12:05:02 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="ee3800714260a7a50cc6780dde56d745";
logging-data="22633"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/gmgeohX8YGwJoAdwcATSQ"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.11.0
Cancel-Lock: sha1:6YXYZFPOaQ0XPpxsyzfSgpWU6Nc=
Content-Language: en-US
X-Mozilla-News-Host: snews://news.eternal-september.org:563
 by: Ron AARON - Sun, 20 Jun 2021 12:05 UTC

I wonder if any of you have tried to create debug information
on-the-fly, for gdb?

There's some sort of JIT interface to gdb, but it requires creating an
entire ELF binary in memory.

I was hoping to be able to simply produce sufficient information for
e.g. "bt" to show useful information.

Thanks in advance,
Ron

Re: Creating on-the fly debug info for gdb?

<sanb28$m39$2@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=13650&group=comp.lang.forth#13650

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: clf...@8th-dev.com (Ron AARON)
Newsgroups: comp.lang.forth
Subject: Re: Creating on-the fly debug info for gdb?
Date: Sun, 20 Jun 2021 15:07:36 +0300
Organization: A noiseless patient Spider
Lines: 13
Message-ID: <sanb28$m39$2@dont-email.me>
References: <sanate$m39$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 20 Jun 2021 12:07:36 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="ee3800714260a7a50cc6780dde56d745";
logging-data="22633"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/3KhyQs4gmgeUBg+/l9QwI"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.11.0
Cancel-Lock: sha1:15z3NLcZjKvQmxDeCcOqYyoM1PU=
In-Reply-To: <sanate$m39$1@dont-email.me>
Content-Language: en-US
 by: Ron AARON - Sun, 20 Jun 2021 12:07 UTC

On 20/06/2021 15:05, Ron AARON wrote:
> I wonder if any of you have tried to create debug information
> on-the-fly, for gdb?
>
> There's some sort of JIT interface to gdb, but it requires creating an
> entire ELF binary in memory.
>
> I was hoping to be able to simply produce sufficient information for
> e.g. "bt" to show useful information.

To clarify: I mean creating appropriate debug information while
compiling a Forth program.

Re: Creating on-the fly debug info for gdb?

<7wr1grjy68.fsf@junk.nocrew.org>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=13714&group=comp.lang.forth#13714

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!aioe.org!news.uzoreto.com!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail
From: lars.s...@nocrew.org (Lars Brinkhoff)
Newsgroups: comp.lang.forth
Subject: Re: Creating on-the fly debug info for gdb?
Organization: nocrew
References: <sanate$m39$1@dont-email.me>
Date: Thu, 24 Jun 2021 11:32:15 +0000
Message-ID: <7wr1grjy68.fsf@junk.nocrew.org>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)
Cancel-Lock: sha1:CzKHI4i255pyf1wnKQEU3ZoW+rg=
MIME-Version: 1.0
Content-Type: text/plain
Lines: 7
NNTP-Posting-Host: 24b0a76d.news.sunsite.dk
X-Trace: 1624534335 news.sunsite.dk 700 lars@junk.nocrew.org/51.15.56.219:38474
X-Complaints-To: staff@sunsite.dk
 by: Lars Brinkhoff - Thu, 24 Jun 2021 11:32 UTC

Ron AARON <clf@8th-dev.com> writes:
> I wonder if any of you have tried to create debug information
> on-the-fly, for gdb?

When I asked around a few years ago, there was nothing. So I made my
own command to add symbols at run time. I think I submitted a patch to
the GDB maintainers, but there was no response.

Re: Creating on-the fly debug info for gdb?

<sb1sb5$9lo$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=13715&group=comp.lang.forth#13715

  copy link   Newsgroups: comp.lang.forth
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: clf...@8th-dev.com (Ron AARON)
Newsgroups: comp.lang.forth
Subject: Re: Creating on-the fly debug info for gdb?
Date: Thu, 24 Jun 2021 15:03:48 +0300
Organization: A noiseless patient Spider
Lines: 15
Message-ID: <sb1sb5$9lo$1@dont-email.me>
References: <sanate$m39$1@dont-email.me> <7wr1grjy68.fsf@junk.nocrew.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 24 Jun 2021 12:03:49 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="4f44d52bf2da01577aec001a62f1d2e7";
logging-data="9912"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX186zp/tJpNm+yRsjmEYHDio"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.11.0
Cancel-Lock: sha1:s1+eWpLbUZEDVOxgomhalm1Tx+0=
In-Reply-To: <7wr1grjy68.fsf@junk.nocrew.org>
Content-Language: en-US
 by: Ron AARON - Thu, 24 Jun 2021 12:03 UTC

On 24/06/2021 14:32, Lars Brinkhoff wrote:
> Ron AARON <clf@8th-dev.com> writes:
>> I wonder if any of you have tried to create debug information
>> on-the-fly, for gdb?
>
> When I asked around a few years ago, there was nothing. So I made my
> own command to add symbols at run time. I think I submitted a patch to
> the GDB maintainers, but there was no response.

That would really be useful.

What I ended up doing is overriding ":" so that it prints the name of
the word and its xt address, so the first part of the listing contains
my words' addresses. At least they're in order, so finding the correct
one from the backtrace isn't too onerous.


devel / comp.lang.forth / Creating on-the fly debug info for gdb?

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor