diff options
| author | linxin <[email protected]> | 2023-05-23 16:29:50 +0800 |
|---|---|---|
| committer | linxin <[email protected]> | 2023-05-23 16:29:50 +0800 |
| commit | c5f478ce5b01a5298a54343fcc7fcd25d0b502ae (patch) | |
| tree | e50fd3475167eb3124338353aed7d0858e78af68 | |
| parent | 902048d60401fef232910106ffc8a45fbc124593 (diff) | |
删除测试代码
| -rw-r--r-- | core-handler/core-handler.go | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/core-handler/core-handler.go b/core-handler/core-handler.go deleted file mode 100644 index 60a0949..0000000 --- a/core-handler/core-handler.go +++ /dev/null @@ -1,17 +0,0 @@ -package main - -//#cgo CXXFLAGS: -std=c++11 -// #cgo CFLAGS: -I /root/breakpad/src/tools/linux/core_handler/coredump_handler_wrapper -// #cgo LDFLAGS: /root/breakpad/src/tools/linux/core_handler/coredump_handler_wrapper/coredump_handler_wrapper.so -//#include "/root/breakpad/src/tools/linux/core_handler/coredump_handler_wrapper/coredump_handler_wrapper.h" -import "C" -import "fmt" - -func HandleCrash(pid int, procfsDir string, mdFilename string) bool { - fmt.Println("start") - return bool(C.HandleCrash(C.pid_t(pid), C.CString(procfsDir), C.CString(mdFilename))) -} -func main() { - // 调用 coredump_handler_wrapper 动态链接库中的 HandleCrash 函数 - HandleCrash(123, "/proc/123", "/var/tmp") -} |
