This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] guile: Remove (gdb init) module, and include 'init.scm'.
- From: Doug Evans <xdje42 at gmail dot com>
- To: ludo at gnu dot org (Ludovic CourtÃs)
- Cc: gdb-patches at sourceware dot org
- Date: Sat, 12 Jul 2014 07:54:58 -0700
- Subject: Re: [PATCH] guile: Remove (gdb init) module, and include 'init.scm'.
- Authentication-results: sourceware.org; auth=none
- References: <87tx7fl1ch dot fsf at gnu dot org> <m34myn6vkg dot fsf at sspiff dot org> <87k37ikb2x dot fsf at gnu dot org>
ludo@gnu.org (Ludovic CourtÃs) writes:
> Hi, Doug,
>
> Doug Evans <xdje42@gmail.com> skribis:
>
>> ludo@gnu.org (Ludovic CourtÃs) writes:
>>
>>> This patch is a prerequisite for the following (compiling Scheme
>>> files). It removes the (gdb init), which had a top-level circular
>>> dependency with (gdb), thereby preventing compilation.
>>>
>>> Thanks,
>>> Ludoâ.
>>>
>>> gdb/
>>> 2014-06-20 Ludovic CourtÃs <ludo@gnu.org>
>>>
>>> * guile/guile.c: (gdbscm_init_module_name): Change to "gdb".
>>> * guile/lib/gdb.scm: Remove 'use-modules' form and include
>>> gdb/init.scm. Change 're-export' to 'export'. Export
>>> '*pretty-printers*' and '%assert-type'.
>>> * guile/lib/gdb/init.scm: Remove 'define-module' form.
>>> (%exception-print-style): Remove.
>>> * guile/lib/gdb/boot.scm: Change (gdb init) to (gdb).
>>> * guile/lib/gdb/experimental.scm: Remove use of (gdb init).
>>> * guile/lib/gdb/types.scm: Likewise.
>>> * guile/lib/gdb/printing.scm: Add '%assert-type', 'SCM_ARG1', and
>>> '*pretty-printers*' to the selection.
>>
>> Hi.
>>
>> IWBN to not export %assert-type.
>> I was also thinking IWBN to not export *pretty-printers* and instead
>> export a function that returns the value. WDYT?
>
> I agree, but that was needed for gdb/printing.scm.
Ah.
Can we put it in (gdb utils) or some such?
> That said, we may be able to access them from there using â@@â. Perhaps
> thatâd be preferable. I can try that if you want. WDYT?
>
>> btw, is (include ...) documented anywhere?
>
> Yes (info "(guile) Local Inclusion").
Thanks.
It's too bad manual entries don't include the parens.
grepping for "(include" didn't find it, and I gave up looking through
the results of grepping "include". :-)