Neil Jerram [Sun, 28 Jan 2007 09:35:18 +0000 (09:35 +0000)]
New upstream version.
Han-Wen Nienhuys [Thu, 25 Jan 2007 01:16:24 +0000 (01:16 +0000)]
*** empty log message ***
Han-Wen Nienhuys [Mon, 22 Jan 2007 16:00:23 +0000 (16:00 +0000)]
(s_scm_vector_move_right_x): complain about naming.
Han-Wen Nienhuys [Mon, 22 Jan 2007 15:57:22 +0000 (15:57 +0000)]
regularize comments.
Han-Wen Nienhuys [Mon, 22 Jan 2007 15:29:56 +0000 (15:29 +0000)]
* eval.c: remove superfluous ifndef DEVAL.
* eval.c: distangle. move duplicate code to eval.i.c and include
twice.
* backtrace.c, debug.c, debug.h, deprecation.c, eq.c, eval.c
eval.h, gsubr.c, init.c, macros.c, print.c, print.h, read.c,
read.h, stacks.c, symbols.c, throw.c: use private-options.h
Han-Wen Nienhuys [Mon, 22 Jan 2007 15:20:35 +0000 (15:20 +0000)]
* private-options.h: idem.
* eval.i.c: copyright nitpicking.
* eval.c: distangle. move duplicate code to eval.i.c and include
twice.
* eval.i.c: new file.
* backtrace.c, debug.c, debug.h, deprecation.c, eq.c, eval.c
eval.h, gsubr.c, init.c, macros.c, print.c, print.h, read.c,
read.h, stacks.c, symbols.c, throw.c: use private-options.h
* private-options.h: new file: contain hardcoded option
definitions.
Han-Wen Nienhuys [Mon, 22 Jan 2007 15:16:44 +0000 (15:16 +0000)]
* eval.c: distangle. move duplicate code to eval.i.c and include
twice.
* eval.i.c: new file.
* backtrace.c, debug.c, debug.h, deprecation.c, eq.c, eval.c
eval.h, gsubr.c, init.c, macros.c, print.c, print.h, read.c,
read.h, stacks.c, symbols.c, throw.c: use private-options.h
Han-Wen Nienhuys [Mon, 22 Jan 2007 15:14:40 +0000 (15:14 +0000)]
* backtrace.c, debug.c, debug.h, deprecation.c, eq.c, eval.c
eval.h, gsubr.c, init.c, macros.c, print.c, print.h, read.c,
read.h, stacks.c, symbols.c, throw.c: use private-options.h
* private-options.h: new file: contain hardcoded option
definitions.
Han-Wen Nienhuys [Mon, 22 Jan 2007 15:11:30 +0000 (15:11 +0000)]
add FSF header.
Han-Wen Nienhuys [Mon, 22 Jan 2007 15:10:40 +0000 (15:10 +0000)]
new file. Make using git easier.
Han-Wen Nienhuys [Fri, 19 Jan 2007 20:05:30 +0000 (20:05 +0000)]
idem.
Han-Wen Nienhuys [Fri, 19 Jan 2007 20:05:18 +0000 (20:05 +0000)]
* api-options.texi (Evaluator trap options): document
memoize-symbol-handler
* api-evaluation.texi (Evaluator Behaviour): link to the Evaluator
trap options node in trap-enable/trap-set! doco.
Han-Wen Nienhuys [Fri, 19 Jan 2007 20:05:05 +0000 (20:05 +0000)]
* debug.h (SCM_RESET_DEBUG_MODE): switch to debugging if
memoize-symbol is set.
* eval.h (SCM_MEMOIZE_HDLR): add macros for memoize symbol trap.
* eval.c (CEVAL): add memoize_symbol trap.
* read.c: idem.
* eval.c: terminate option lists with 0.
Han-Wen Nienhuys [Fri, 19 Jan 2007 19:35:36 +0000 (19:35 +0000)]
* options.c (scm_options_try): new function. This allows error
reporting before changing options in a critical section.
* options.c: remove n (for length) from scm_option_X
functions. Detect option list length by looking for NULL name.
Han-Wen Nienhuys [Fri, 19 Jan 2007 19:33:10 +0000 (19:33 +0000)]
* srcprop.c: use double cell for storing source-properties. Put
filename in the plist, and share between srcprops if possible.
Remove specialized storage.
* srcprop.h: remove macros without SCM_ prefix from
interface. Remove specialized storage/type definitions.
* eval.c: terminate option lists with 0.
Han-Wen Nienhuys [Fri, 19 Jan 2007 19:28:55 +0000 (19:28 +0000)]
terminate option list with NULL.
(scm_init_readline): fix CVS mess-up.
Han-Wen Nienhuys [Fri, 19 Jan 2007 19:26:36 +0000 (19:26 +0000)]
* readline.c: terminate option list with NULL.
* read.c: idem.
* print.c: idem.
* eval.c: terminate option lists with 0.
* options.c: remove n (for length) from scm_option_X
functions. Detect option list length by looking for NULL name.
Ludovic Courtès [Fri, 19 Jan 2007 08:53:33 +0000 (08:53 +0000)]
Changes from arch/CVS synchronization
Kevin Ryde [Thu, 18 Jan 2007 23:10:46 +0000 (23:10 +0000)]
*** empty log message ***
Kevin Ryde [Thu, 18 Jan 2007 23:10:13 +0000 (23:10 +0000)]
(exception:string-contains-nul): New exception pattern.
Han-Wen Nienhuys [Thu, 18 Jan 2007 12:34:24 +0000 (12:34 +0000)]
(scm_ithrow): more refined error message: print symbols
too.
Neil Jerram [Wed, 17 Jan 2007 13:38:17 +0000 (13:38 +0000)]
(gds-display-results): Add another binding for
gds-show-last-stack (RET).
(scheme-mode-map): And another: C-h S.
(scheme-mode-map): And an alternative C-h G binding for
gds-apropos, as we probably should not be using C-h C-g.
Kevin Ryde [Mon, 15 Jan 2007 23:49:04 +0000 (23:49 +0000)]
merge from 1.8
Kevin Ryde [Mon, 15 Jan 2007 23:42:46 +0000 (23:42 +0000)]
copyright year
Kevin Ryde [Mon, 15 Jan 2007 23:42:45 +0000 (23:42 +0000)]
merge from 1.8
Kevin Ryde [Mon, 15 Jan 2007 23:31:08 +0000 (23:31 +0000)]
*** empty log message ***
Kevin Ryde [Mon, 15 Jan 2007 23:22:36 +0000 (23:22 +0000)]
merge from 1.8
Kevin Ryde [Mon, 15 Jan 2007 23:07:49 +0000 (23:07 +0000)]
avoid tab/space difference from 1.8
Kevin Ryde [Mon, 15 Jan 2007 23:06:45 +0000 (23:06 +0000)]
merge from 1.8
Kevin Ryde [Mon, 15 Jan 2007 22:56:45 +0000 (22:56 +0000)]
*** empty log message ***
Kevin Ryde [Mon, 15 Jan 2007 22:54:26 +0000 (22:54 +0000)]
merge from 1.8
Han-Wen Nienhuys [Wed, 10 Jan 2007 11:42:04 +0000 (11:42 +0000)]
(scm_ithrow): print out key symbol and string arguments
when error happens inside a critical section, and document why.
Han-Wen Nienhuys [Sat, 6 Jan 2007 18:20:35 +0000 (18:20 +0000)]
(s_scm_read_hash_extend): document #f argument to
read-hash-extend.
Han-Wen Nienhuys [Wed, 3 Jan 2007 17:26:32 +0000 (17:26 +0000)]
(s_scm_gc_stats): return an entry for total-cells-allocated
too.
(gc_update_stats): update scm_gc_cells_allocated_acc too.
Han-Wen Nienhuys [Wed, 3 Jan 2007 17:23:15 +0000 (17:23 +0000)]
(Module): only try to run render-bugs if it exists.
Han-Wen Nienhuys [Sun, 24 Dec 2006 01:05:56 +0000 (01:05 +0000)]
("equal?"): add case for reduction of
rational numbers.
Han-Wen Nienhuys [Sat, 23 Dec 2006 20:35:32 +0000 (20:35 +0000)]
* numbers.c (scm_i_fraction_reduce): move logic into
scm_i_make_ratio(), so fractions are only read.
scm_i_fraction_reduce() modifies a fraction when reading it. A
race condition might lead to fractions being corrupted by reading
them concurrently.
* numbers.h: remove SCM_FRACTION_SET_NUMERATOR,
SCM_FRACTION_SET_DENOMINATOR, SCM_FRACTION_REDUCED_BIT,
SCM_FRACTION_REDUCED_SET, SCM_FRACTION_REDUCED_CLEAR,
SCM_FRACTION_REDUCED.
Ludovic Courtès [Tue, 12 Dec 2006 14:01:40 +0000 (14:01 +0000)]
Changes from arch/CVS synchronization
Ludovic Courtès [Wed, 29 Nov 2006 09:05:10 +0000 (09:05 +0000)]
Changes from arch/CVS synchronization
Ludovic Courtès [Sat, 18 Nov 2006 18:18:23 +0000 (18:18 +0000)]
Added missing files for `(ice-9 i18n)'.
Ludovic Courtès [Sat, 18 Nov 2006 18:14:55 +0000 (18:14 +0000)]
Changes from arch/CVS synchronization
Neil Jerram [Fri, 17 Nov 2006 15:53:17 +0000 (15:53 +0000)]
Note need for subscription to bug-guile@gnu.org.
Neil Jerram [Fri, 17 Nov 2006 15:52:51 +0000 (15:52 +0000)]
(scm_shell_usage): Note need for subscription to bug-guile@gnu.org.
Neil Jerram [Fri, 17 Nov 2006 15:52:23 +0000 (15:52 +0000)]
(Reporting Bugs): Note need for subscription to
bug-guile@gnu.org.
Neil Jerram [Fri, 17 Nov 2006 15:51:37 +0000 (15:51 +0000)]
* README: Note need for subscription to bug-guile@gnu.org.
* NEWS: Note need for subscription to bug-guile@gnu.org.
Neil Jerram [Mon, 13 Nov 2006 22:22:06 +0000 (22:22 +0000)]
(environment-module): Change eval-closure-module call
back to procedure-property lookup. (This completes the reversion
of the change made on 2005-06-10, which was only partially undone
by the change on 2005-08-01.)
Neil Jerram [Mon, 13 Nov 2006 22:21:36 +0000 (22:21 +0000)]
*** empty log message ***
Ludovic Courtès [Wed, 8 Nov 2006 09:34:35 +0000 (09:34 +0000)]
Changes from arch/CVS synchronization
Neil Jerram [Thu, 2 Nov 2006 21:10:37 +0000 (21:10 +0000)]
Remove environments.[ch] from the build.
Ludovic Courtès [Thu, 26 Oct 2006 07:20:59 +0000 (07:20 +0000)]
Changes from arch/CVS synchronization
Neil Jerram [Wed, 25 Oct 2006 22:37:24 +0000 (22:37 +0000)]
* configure.in: New check for uca lib (needed for IA64 on HP-UX).
* threads.c (SCM_MARK_BACKING_STORE): Use scm_ia64_ar_bsp() and
scm_ia64_register_backing_store_base() instead of Linux-specific
implementations.
* gc.h (scm_ia64_register_backing_store_base, scm_ia64_ar_bsp):
New declarations.
* gc.c (__libc_ia64_register_backing_store_base): Declaration
removed.
(scm_ia64_register_backing_store_base, scm_ia64_ar_bsp): New, with
implementations for Linux and HP-UX.
* coop-pthreads.c (SCM_MARK_BACKING_STORE): Use scm_ia64_ar_bsp()
and scm_ia64_register_backing_store_base() instead of
Linux-specific implementations.
* continuations.h (__libc_ia64_register_backing_store_base):
Declaration removed.
(scm_t_contregs): New "fresh" field.
* continuations.c (ia64_getcontext): Removed.
(scm_make_continuation): Use continuation fresh field instead of
interpreting getcontext return values (which isn't portable). Use
scm_ia64_ar_bsp() and scm_ia64_register_backing_store_base()
instead of Linux-specific implementations.
(copy_stack_and_call): Use scm_ia64_register_backing_store_base()
instead of Linux-specific implementation.
* _scm.h (__ia64__): Also detect __ia64.
Neil Jerram [Sat, 14 Oct 2006 16:34:16 +0000 (16:34 +0000)]
(gds-socket-type-alist): New.
(gds-run-debug-server): Use gds-server-socket-type and
gds-socket-type-alist instead of gds-server-port-or-path.
(gds-server-socket-type): New, replacing gds-server-port-or-path.
Neil Jerram [Thu, 12 Oct 2006 23:24:02 +0000 (23:24 +0000)]
* gds.el (gds-run-debug-server): Use variable
gds-server-port-or-path instead of hardcoded 8333.
(gds-server-port-or-path): New.
* gds-server.el (gds-start-server): Change port arg to
port-or-path, to support Unix domain sockets.
* gds-client.scm (connect-to-gds): Try to connect by Unix domain
socket if TCP connection fails.
* gds-server.scm (run-server): Update to support listening on a
Unix domain socket.
Neil Jerram [Tue, 10 Oct 2006 21:52:40 +0000 (21:52 +0000)]
(Setting and Managing Breakpoints): New text
about what happens when a breakpoint is created.
(Listing and Deleting Breakpoints, Moving and Losing Breakpoints):
New.
Kevin Ryde [Tue, 10 Oct 2006 00:11:22 +0000 (00:11 +0000)]
stray tab
Kevin Ryde [Mon, 9 Oct 2006 23:40:48 +0000 (23:40 +0000)]
merge from 1.8 branch
Kevin Ryde [Mon, 9 Oct 2006 23:27:59 +0000 (23:27 +0000)]
merge from 1.8 branch (removing this file)
Kevin Ryde [Mon, 9 Oct 2006 22:59:10 +0000 (22:59 +0000)]
merge from 1.8 branch
Kevin Ryde [Mon, 9 Oct 2006 22:47:06 +0000 (22:47 +0000)]
merge from 1.8 branch
Neil Jerram [Sun, 8 Oct 2006 08:24:00 +0000 (08:24 +0000)]
(GDS Getting Started): Editorial updates.
Neil Jerram [Sun, 8 Oct 2006 08:19:13 +0000 (08:19 +0000)]
(Working with GDS in Scheme Buffers): New
subsection, to group (Access to Guile Help and Completion, Setting
and Managing Breakpoints, Evaluating Scheme Code) together.
Neil Jerram [Fri, 6 Oct 2006 00:10:36 +0000 (00:10 +0000)]
(Access to Guile Help and Completion): Mention where keys are
defined.
(Setting and Managing Breakpoints): Update text on how to set
breakpoints.
Neil Jerram [Thu, 5 Oct 2006 23:55:22 +0000 (23:55 +0000)]
(Using Guile in Emacs): Subnodes reordered,
from (Displaying the Scheme Stack, Continuing Execution,
Evaluating Scheme Code, Setting and Managing Breakpoints, Access
to Guile Help and Completion) to (Access to Guile Help and
Completion, Setting and Managing Breakpoints, Evaluating Scheme
Code, Displaying the Scheme Stack, Continuing Execution).
Neil Jerram [Thu, 5 Oct 2006 23:28:44 +0000 (23:28 +0000)]
(new-input-prompt): Renamed from "prompt".
(continuation-prompt): Renamed from "prompt2".
(make-readline-port, readline, set-readline-prompt!): Reflect above renamings.
(activate-readline): Rename locals "read-hook" and "prompt" to
"repl-read-hook" and "repl-prompt", to disambiguate them from
globals. Save and restore the new-input- and continuation-
prompts around the REPL read call.
Neil Jerram [Tue, 3 Oct 2006 19:21:48 +0000 (19:21 +0000)]
(run-utility): Remove unnecessary
`connect-to-gds' call.
Neil Jerram [Tue, 3 Oct 2006 19:20:50 +0000 (19:20 +0000)]
(GDS Getting Started): Editorial updates.
Neil Jerram [Sat, 30 Sep 2006 17:21:52 +0000 (17:21 +0000)]
(debug-trap): Use
`debugger-command-loop' instead of `read-and-dispatch-commands',
which isn't actually available. Thanks to Carlos Pita for
reporting this.
(debugger-command-loop): Define here for 1.6.x.
Neil Jerram [Thu, 28 Sep 2006 07:41:49 +0000 (07:41 +0000)]
(GDS Introduction, GDS Getting Started): Minor
edits.
Neil Jerram [Thu, 28 Sep 2006 07:32:40 +0000 (07:32 +0000)]
(Symbol Props): Remove unnecessarily specific
parenthesis about Guile 1.6's use of extra symbol slots.
Neil Jerram [Wed, 27 Sep 2006 17:49:38 +0000 (17:49 +0000)]
(Slot Options): Added example from Ludovic Courtès
about difference between init-value, -form and -thunk.
Neil Jerram [Tue, 26 Sep 2006 21:43:52 +0000 (21:43 +0000)]
(Using Guile in Emacs, GDS Introduction):
Editorial updates.
(GDS Architecture): Moved earlier in containing section; editorial
updates.
(GDS Getting Started, How to Use GDS): Merged; editorial updates;
subsections reordered.
Neil Jerram [Mon, 25 Sep 2006 21:05:46 +0000 (21:05 +0000)]
* scheme-using.texi (Error Handling, Interactive Debugger): Minor
editorial improvements.
(Leave Debugger): Removed.
(Display Backtrace): Minor updates.
(Frame Selection, Frame Information, Frame Evaluation) : Minor
editorial improvements.
(Stepping and Continuing): Merged from three previous nodes; plus
minor improvements. Removed doc for `trace-finish', which no
longer exists.
* debugging/ice-9-debugger-extensions.scm (debugger:step):
Docstring improvements.
(debugger:next): Docstring improvements.
(debugger:continue): Docstring improvements.
* debugger/commands.scm (up, down): Docstring corrections.
(info-args, info-frame, position, evaluate): Docstring
improvements.
Neil Jerram [Mon, 25 Sep 2006 20:37:23 +0000 (20:37 +0000)]
Fix typo.
Ludovic Courtès [Wed, 20 Sep 2006 13:13:34 +0000 (13:13 +0000)]
Changes from arch/CVS synchronization
Ludovic Courtès [Wed, 20 Sep 2006 12:48:45 +0000 (12:48 +0000)]
Changes from arch/CVS synchronization
Rob Browning [Wed, 20 Sep 2006 00:34:02 +0000 (00:34 +0000)]
*** empty log message ***
Rob Browning [Wed, 20 Sep 2006 00:33:56 +0000 (00:33 +0000)]
(build-link): Restore the removal of "/usr/lib" (in addition to
"/usr/lib/" from any -L arguments).
Neil Jerram [Fri, 15 Sep 2006 09:23:18 +0000 (09:23 +0000)]
Doc typo fixes
Rob Browning [Fri, 1 Sep 2006 01:38:18 +0000 (01:38 +0000)]
*** empty log message ***
Rob Browning [Fri, 1 Sep 2006 01:37:57 +0000 (01:37 +0000)]
(scm_c_port_for_each): Add a scm_remember_upto_here_1(ports) at the
end of the function to fix a GC bug.
Neil Jerram [Tue, 29 Aug 2006 22:47:41 +0000 (22:47 +0000)]
(Debug on Error): Added paragraph on need to use
debugging evaluator. Added text on what the Guile REPL code does.
Neil Jerram [Mon, 28 Aug 2006 22:17:26 +0000 (22:17 +0000)]
(scm_display_backtrace_with_highlights): Minor
improvements to docstring.
(scm_backtrace_with_highlights): Analogous improvements.
Neil Jerram [Mon, 28 Aug 2006 22:16:42 +0000 (22:16 +0000)]
(Examining the Stack): Minor improvements to
display-backtrace doc.
(Debug on Error): More new text on catching the error stack.
Neil Jerram [Sun, 27 Aug 2006 14:06:16 +0000 (14:06 +0000)]
(Debug on Error): New text on how to catch errors
and the error stack.
Neil Jerram [Wed, 23 Aug 2006 22:11:24 +0000 (22:11 +0000)]
(Using Guile in Emacs): New text about
available Emacs libraries.
(GDS Introduction): New node, containing GDS-specific introductory
text.
Neil Jerram [Fri, 18 Aug 2006 14:21:23 +0000 (14:21 +0000)]
* gds-server.el (gds-start-server): Change "ossau" to "ice-9".
* gds-scheme.el (gds-start-utility-guile): Change "ossau" to
"ice-9".
Neil Jerram [Fri, 18 Aug 2006 14:19:44 +0000 (14:19 +0000)]
* configure.in: Generate Makefile for emacs subdir.
* Makefile.am (SUBDIRS): Add emacs subdir.
* configure.in: Generate Makefile for ice-9/debugging subdir.
Neil Jerram [Fri, 18 Aug 2006 13:43:09 +0000 (13:43 +0000)]
.cvsignore file
Neil Jerram [Fri, 18 Aug 2006 13:41:45 +0000 (13:41 +0000)]
* configure.in: Generate Makefile for ice-9/debugging.
* debugging/trc.scm: New file.
* debugging/traps.scm: New file.
* debugging/trace.scm: New file.
* debugging/steps.scm: New file.
* debugging/load-hooks.scm: New file.
* debugging/ice-9-debugger-extensions.scm: New file.
* debugging/example-fns.scm: New file.
* debugging/breakpoints.scm: New file.
* debugging/Makefile.am: New.
* Makefile.am (SUBDIRS): Add debugging.
Neil Jerram [Fri, 18 Aug 2006 13:14:46 +0000 (13:14 +0000)]
(Using Guile in Emacs): Unignore extra GDS
intro text. (I will edit this down later. For now it's
convenient to have it all appearing, so it's visible on paper.)
Neil Jerram [Fri, 11 Aug 2006 16:21:14 +0000 (16:21 +0000)]
* scheme-using.texi (Run To Frame Exit): Improved doc for finish.
(Continue Execution): Improved doc for continue.
(Using Guile in Emacs): Lots of new docs about the Emacs
interface.
* api-debug.texi (Low Level Trap Calls): New.
(Using Traps): Removed, material incorporated into Low Level Trap
Calls.
(High Level Traps): New.
(Breakpoints): New.
* scheme-using.texi (Single Stepping): Improve doc for step and
next.
* api-debug.texi (Debug on Error): Note need to handling of errors
in C.
Neil Jerram [Fri, 11 Aug 2006 15:38:19 +0000 (15:38 +0000)]
(Debugging): New intro text. New subsection
"Evaluation Model". Moved existing subsections "Capturing the
Stack or Innermost Stack Frame", "Examining the Stack", "Examining
Stack Frames", "Source Properties", "Decoding Memoized Source
Expressions" and "Starting a New Stack" under "Evaluation Model".
(Capturing the Stack or Innermost Stack Frame): Some new text, and
correction to doc for last-stack-frame.
(Debug on Error): Renamed from "Interactive Debugging".
Neil Jerram [Fri, 11 Aug 2006 15:33:41 +0000 (15:33 +0000)]
(scm_last_stack_frame): Correct docstring (returns a
frame, not a stack).
Neil Jerram [Tue, 1 Aug 2006 21:51:12 +0000 (21:51 +0000)]
* api-debug.texi (Breakpoints): Removed (all wrong).
* guile.texi (API Reference): Improved summary for "Debugging"
menu item.
Neil Jerram [Tue, 1 Aug 2006 21:33:17 +0000 (21:33 +0000)]
* scheme-debugging.texi (Debug Last Error, Interactive Debugger):
Moved/merged to scheme-using.texi, as REPL features.
(Examples): New.
(Intro to Breakpoints): New introductory text here. Removed all
subnodes except for Breakpoints Overview.
* scheme-using.texi: New.
* guile.texi (Programming in Scheme): Include new
scheme-using.texi file.
* Makefile.am (guile_TEXINFOS): Include new scheme-using.texi
file.
Rob Browning [Wed, 19 Jul 2006 06:56:37 +0000 (06:56 +0000)]
*** empty log message ***
Rob Browning [Wed, 19 Jul 2006 06:56:30 +0000 (06:56 +0000)]
Add __attribute__ ((returns_twice)) to the ia64_getcontext prototype
so that gcc will make the right arrangements and avoid an illegal
instruction during call-with-current-continuation.
Ludovic Courtès [Wed, 12 Jul 2006 08:07:27 +0000 (08:07 +0000)]
Changes from arch/CVS synchronization
Neil Jerram [Mon, 19 Jun 2006 22:37:13 +0000 (22:37 +0000)]
* Makefile.am (ice9_sources): Add new files.
* gds-client.scm, gds-server.scm: New files.
Neil Jerram [Mon, 19 Jun 2006 22:01:23 +0000 (22:01 +0000)]
* Makefile.am: New file.
* gds.el, gds-scheme.el, gds-server.el: New files.