From 7202554401befec383b9de892d88f611dc92b257 Mon Sep 17 00:00:00 2001 From: Trevor Daniels Date: Sun, 10 Jan 2010 12:10:26 +0000 Subject: [PATCH] Docs: CG 9.6: clarify how to run LilyPond under gdb --- .../contributor/programming-work.itexi | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/Documentation/contributor/programming-work.itexi b/Documentation/contributor/programming-work.itexi index 676cecac06..6d4a1cc9aa 100644 --- a/Documentation/contributor/programming-work.itexi +++ b/Documentation/contributor/programming-work.itexi @@ -715,16 +715,27 @@ out/bin/lilypond @end example This is important as you will need to let gdb know where to find the -image. You can invoke gdb from the command line using +image containing the symbol tables. You can invoke gdb from the +command line using @example -$ gdb out/bin/lilypond +gdb out/bin/lilypond @end example +@noindent +This loads the LilyPond symbol tables into gdb. Then, to run +LilyPond on @code{test.ly} under the debugger, enter + +@example +run test.ly +@end example +@noindent +at the gdb prompt. -or you may use a graphical interface to gdb such as ddd +As an alternative to running gdb at the command line you may try +a graphical interface to gdb such as ddd @example -$ ddd out/bin/lilypond +ddd out/bin/lilypond @end example You can also use sets of standard gdb commands stored in a .gdbinit -- 2.39.2