From c5f478ce5b01a5298a54343fcc7fcd25d0b502ae Mon Sep 17 00:00:00 2001 From: linxin Date: Tue, 23 May 2023 16:29:50 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=B5=8B=E8=AF=95=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core-handler/core-handler.go | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 core-handler/core-handler.go 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") -}