[gnome-documents] debug: add a little script that launches Documents inside gdb
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents] debug: add a little script that launches Documents inside gdb
- Date: Tue, 6 Dec 2011 17:00:29 +0000 (UTC)
commit 8f78779dad3ffffacf9b2e6ad8d5dea8eada53a0
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Tue Dec 6 10:45:07 2011 -0500
debug: add a little script that launches Documents inside gdb
src/Makefile.am | 12 ++++++++++--
src/gnome-documents-debug.in | 15 +++++++++++++++
2 files changed, 25 insertions(+), 2 deletions(-)
---
diff --git a/src/Makefile.am b/src/Makefile.am
index 34b6a80..75c2d0a 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -43,10 +43,18 @@ typelib_DATA += $(gir_DATA:.gir=.typelib)
CLEANFILES += $(gir_DATA) $(typelib_DATA)
bin_SCRIPTS = gnome-documents
+noinst_SCRIPTS = gnome-documents-debug
gnome-documents: gnome-documents.in
$(AM_V_GEN) $(do_subst) $< > $@
chmod +x $@
+gnome-documents-debug: gnome-documents-debug.in
+ $(AM_V_GEN) $(do_subst) $< > $@
+ chmod +x $@
-CLEANFILES += gnome-documents
-EXTRA_DIST += gnome-documents.in
+CLEANFILES += \
+ gnome-documents \
+ gnome-documents-debug
+EXTRA_DIST += \
+ gnome-documents.in \
+ gnome-documents-debug.in
diff --git a/src/gnome-documents-debug.in b/src/gnome-documents-debug.in
new file mode 100644
index 0000000..61d2842
--- /dev/null
+++ b/src/gnome-documents-debug.in
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+if test x"$GJS_PATH" = x ; then
+ export GJS_PATH= pkgdatadir@/js
+else
+ export GJS_PATH= pkgdatadir@/js:$GJS_PATH
+fi
+
+if test x"$GI_TYPELIB_PATH" = x ; then
+ export GI_TYPELIB_PATH= libdir@/girepository-1.0
+else
+ export GI_TYPELIB_PATH= libdir@/girepository-1.0:$GI_TYPELIB_PATH
+fi
+
+gdb --args @GJS_CONSOLE@ -I @pkgdatadir@/js -c "const Main = imports.main; Main.start();" "$@"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]