This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[commit] guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.


Hi.

This patch fixes an obvious bug.  Committed.
[testcase to follow in a patch to add progspace support]

2014-03-02  Doug Evans  <xdje42@gmail.com>

	* guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.

diff --git a/gdb/guile/lib/gdb/printing.scm b/gdb/guile/lib/gdb/printing.scm
index 36e3275..2944702 100644
--- a/gdb/guile/lib/gdb/printing.scm
+++ b/gdb/guile/lib/gdb/printing.scm
@@ -47,6 +47,6 @@ If OBJ is #f, add MATCHER to the global list."
 	((objfile? obj)
 	 (set-objfile-pretty-printers! obj
 				       (append! (objfile-pretty-printers obj)
-						matcher)))
+						(list matcher))))
 	(else
 	 (%assert-type #f obj SCM_ARG1 'append-pretty-printer!))))


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]