I\'d like to know how to use strace 开发者_高级运维to trace system calls in my C program and how to use it for debugging my code.By running your program through strace:
开发者_JAVA百科I\'m monitoring a process with strace/ltrace in the hope to find and intercept a call that checks, and potentially activates some kind of globally shared lock.
I need to intercept and trace sign开发者_如何学Goals from any binaries, like strace does it under linux.
This is useful for debuggin开发者_运维百科g (hence programming related).On linux, we can use the command