This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] record_latest_value: Call release_value_or_incref instead of release_value
- From: Doug Evans <xdje42 at gmail dot com>
- To: Joel Brobecker <brobecker at adacore dot com>
- Cc: Ludovic Courtès <ludo at gnu dot org>, "gdb-patches at sourceware dot org" <gdb-patches at sourceware dot org>
- Date: Mon, 3 Mar 2014 08:20:22 -0800
- Subject: Re: [PATCH] record_latest_value: Call release_value_or_incref instead of release_value
- Authentication-results: sourceware.org; auth=none
- References: <m3zjl7u8ik dot fsf at sspiff dot org> <87wqgbsktg dot fsf at gnu dot org> <20140303132336 dot GC4893 at adacore dot com>
On Mon, Mar 3, 2014 at 5:23 AM, Joel Brobecker <brobecker@adacore.com> wrote:
>> --8<---------------cut here---------------start------------->8---
>> (gdb) guile (use-modules (gdb))
>
> Following the example of Python, shouldn't this be implicit?
>
>> (gdb) guile (history-append! (make-value 42))
We had a discussion of this on the #guile irc channel, and I couldn't
find anyone who thought it should be implicit.
Plus we also had a discussion of whether the symbols should have a
builtin prefix, e.g., to avoid collisions like the one with symbol?
that ludo mentions.
E.g., gdb:symbol? instead of symbol?
I couldn't find anyone who advocated for a builtin prefix, and Guile
provides the ability to add one when importing:
(use-modules ((gdb) #:renamer (symbol-prefix-proc 'gdb:)))