mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-21 13:47:39 +01:00
debugger.mk: Beautification
This commit is contained in:
parent
289afe8d29
commit
8473326e1c
1 changed files with 5 additions and 1 deletions
|
|
@ -4,11 +4,15 @@ ifeq ($(CORE_DUMPER),)
|
||||||
CORE_DUMPER = $(EXE)
|
CORE_DUMPER = $(EXE)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
PID = $(shell ps aux | sed "/$(EXE)/ !d; /sed/ d" | awk '{print $$2}')
|
||||||
|
|
||||||
all:
|
all:
|
||||||
|
|
||||||
kdbg gdb ddd:
|
kdbg gdb ddd:
|
||||||
$@ $(CORE_DUMPER) $(firstword $(CORE))
|
$@ $(CORE_DUMPER) $(firstword $(CORE))
|
||||||
|
|
||||||
attach:
|
attach:
|
||||||
kdbg ./$(EXE) -p `ps aux | sed "/$(EXE)/ !d; /sed/ d" | awk '{print $$2}'`
|
gdb ./$(EXE) -p $(PID)
|
||||||
|
|
||||||
|
attach-strace:
|
||||||
|
strace -f ./$(EXE) -p $(PID)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue