Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法告诉 GDB 在给定函数返回后立即中断?
如果您要执行该功能,n[ext]. 如果你在里面,fin[ish]它会在它返回时停止并显示返回值。
n[ext]
fin[ish]
您可以在函数中添加断点,然后单finish步执行。
finish