我如何让GDB摆脱循环? [英] How do I get GDB to break out of a loop?

查看:133
本文介绍了我如何让GDB摆脱循环?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以告诉GDB立即使用 return 从一个函数返回,并调用一个函数,使用调用myFunction

但是我怎样才能让它摆脱当前循环?也就是说,它的行为就好像它的命中 break; 语句。



跳转myfile。 c:< linenumber> 要做到这一点? 跳转看起来像你想要的。请参阅以不同的地址继续


I can tell GDB to return from a function immediately with return, and call a function with call myFunction.

But how do I get it break out of the current loop? i.e. to act as if it's hit a break; statement.

Is jump myfile.c:<linenumber> the way to do this?

解决方案

jump looks like what you want. See Continuing at a Different Address

这篇关于我如何让GDB摆脱循环?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆