summaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2012-03-26 08:29:02 +0200
committerDavid Tardon <dtardon@redhat.com>2012-03-26 09:23:33 +0200
commite7ec2f2ad8463d2447fd159c06a91e1e864846ec (patch)
tree8fc84bf3c1b20b9fd208c4e25372d4ee986d06c5 /gdb
parent4acfc9419ca82685e844be7ff7e17f8cb1dceb5b (diff)
this is still useful for running the test manually
Diffstat (limited to 'gdb')
-rw-r--r--gdb/pretty-printers-test/sal.gdb38
1 files changed, 38 insertions, 0 deletions
diff --git a/gdb/pretty-printers-test/sal.gdb b/gdb/pretty-printers-test/sal.gdb
new file mode 100644
index 0000000..3880d2e
--- /dev/null
+++ b/gdb/pretty-printers-test/sal.gdb
@@ -0,0 +1,38 @@
+# Version: MPL 1.1 / GPLv3+ / LGPLv3+
+#
+# The contents of this file are subject to the Mozilla Public License Version
+# 1.1 (the "License"); you may not use this file except in compliance with
+# the License or as specified alternatively below. You may obtain a copy of
+# the License at http://www.mozilla.org/MPL/
+#
+# Software distributed under the License is distributed on an "AS IS" basis,
+# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
+# for the specific language governing rights and limitations under the
+# License.
+#
+# Major Contributor(s):
+# Copyright (C) 2011 David Tardon, Red Hat Inc. <dtardon@redhat.com> (initial developer)
+#
+# All Rights Reserved.
+#
+# For minor contributions see the git repository.
+#
+# Alternatively, the contents of this file may be used under the terms of
+# either the GNU General Public License Version 3 or later (the "GPLv3+"), or
+# the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"),
+# in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
+# instead of those above.
+
+python
+import libreoffice.sal
+libreoffice.sal.register_pretty_printers(gdb.current_objfile())
+end
+
+break stop
+run
+finish
+info locals
+print *rtl_string
+print *rtl_ustring
+continue
+quit