gdb函数相关1——列出函数的名字

测试代码

#include 
#include 
#include 

void *thread_func(void *p_arg) {
	while (1) {
		sleep(10);
	}
}

int main (int argc, char *argv[]) {
	pthread_t t1, t2;
	pthread_create(&t1, NULL, thread_func, "thread 1");
	pthread_create(&t2, NULL, thread_func, "thread 2");

	sleep(1000);
	return 0;
}

过程

gdb函数相关1——列出函数的名字_第1张图片

你可能感兴趣的:(gdb练习)