I found some ways a process can find out if it gdb is possibly attached to it. But here we would need to know if another process has gdb attached. If that can be detected, then it would make sense to not kill lipstick.