diff --git a/Makefile.am b/Makefile.am index 7bfcdb4..1e53974 100644 --- a/Makefile.am +++ b/Makefile.am @@ -142,6 +142,16 @@ git-source-dist: #------------------------------------------------------------- +run-gdb: gdb-script install + gdb -x gdb-script + +.PHONY: run-gdb + +gdb-script: gdb-script.in + sed -e 's,[@]bindir[@],${bindir},g' < $< > $@ + +#------------------------------------------------------------- + GEN_FROM_VALA = $(filter %.vala,$(mconnect_SOURCES)) BUILT_SOURCES = \ mconnect.desktop \ diff --git a/gdb-script.in b/gdb-script.in new file mode 100644 index 0000000..f1051ba --- /dev/null +++ b/gdb-script.in @@ -0,0 +1,4 @@ +set environment G_MESSAGES_DEBUG = all +set environment G_DEBUG = fatal-criticals +file @bindir@/mconnect +run \ No newline at end of file