Browse Source

build: add run-gdb target

Add make target 'run-gdb' that will automatically start gdb with
G_MESSAGES_DEBUG=all and G_DEBUG=fatal-criticals environment variables.
bboozzoo/dbus-support-interfaces
Maciek Borzecki 8 years ago
parent
commit
fa72198c40
2 changed files with 14 additions and 0 deletions
  1. +10
    -0
      Makefile.am
  2. +4
    -0
      gdb-script.in

+ 10
- 0
Makefile.am View File

@ -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 \


+ 4
- 0
gdb-script.in View File

@ -0,0 +1,4 @@
set environment G_MESSAGES_DEBUG = all
set environment G_DEBUG = fatal-criticals
file @bindir@/mconnect
run

Loading…
Cancel
Save