![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
经验
_巴比龙_
这个作者很懒,什么都没留下…
展开
-
GDB调试 多线程 进程 coredump
1、调试简单多线程学习:【Linux】gdb调试多线程与多进程GDB 调试多线程程序的总结gdb调试多进程与多线程生成程序 gcc -o env threadgdb1.c -lpthread -g#include <stdio.h>#include <pthread.h>#include <stdlib.h>#include <unistd.h>static int count = 0;void *pthread_fuc(void *ar原创 2020-10-28 20:53:14 · 1935 阅读 · 0 评论 -
内存泄漏检测 笔记
一、基于CRT的内存泄漏检测windows 下,C运行时库CRT(C Run-time Library),Standard C++ Library包含CRT。CRT将 malloc 和 free 函数映射到它们的调试版本,即 _malloc_dbg 和 _free_dbg,这两个函数将跟踪内存分配和释放。原理:Debug版本的 CRT定义了一套调试版本的内存分配函数(如_malloc_dbg)。当你包含了CRTDBG.h后,如果当前是Debug工程,且定义了_DEBUG宏,这时,malloc函数会被被映原创 2020-10-28 03:32:01 · 397 阅读 · 0 评论