我尝试使用Amazon Linux AMI在EC2实例上安装gdb和pstack (默认情况下没有安装),但不起作用。Error: Nothing to do
Loaded plugins: priorities, update-motd, upgrade-helper
No package pstack available.有人能指导我如何在AMI上安装GDB和pstack吗
我试图使用void指针在C中实现一个通用堆栈,并试图通过将所有责任委托给函数调用方并避免更复杂的方法来保持它尽可能简单。Clients that pull in stack.h will be able to declare variables of typetypedef struct Stack *pstack;
void make_empty(pstack *s)