[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Show source code from .debug_info section (Was Re: [PATCH] Add inspectio
From: |
Nala Ginrut |
Subject: |
Show source code from .debug_info section (Was Re: [PATCH] Add inspection command "source (, src)" which shows Scheme code of loaded module) |
Date: |
Tue, 23 Apr 2013 15:26:33 +0800 |
On Mon, 2013-04-01 at 21:12 +0200, Andy Wingo wrote:
> On Sat 30 Mar 2013 22:17, Mark H Weaver <address@hidden> writes:
>
> > I'd be glad to see something like this in Guile core. This code is a
> > great demonstration, but it has some problems.
>
> It would be nice to reify the original source as a compressed string in
> the debug section of the ELF file. One day...
>
> Andy
I've checked out our latest wip-rtl and found .debug_info is on the TODO
list. So I think the better solution to show source code is to take
advantage of this.
But this feature depends on our future RTL, so my previous patch could
be useful for the 'older' guile2 user, since our REPL is well
extensible, that ',src' could be a plugin for that.
Thanks!