Eclipse gdb Debug退出,使用"没有可用的源..."但程序运行正常

时间:2016-11-11 20:51:13

标签: c++ eclipse debugging gdb

我调试了一个程序,run modeint aeswrapper::EncryptToFile(string Message, string FileName) { ofstream file; file.open(FileName, ios::binary | ios::out); if (file.good()) { // Convert the Message in an array of uint8_t uint8_t *_msg = (uint8_t*) Message.c_str(); int len = Message.length(); uint8_t *input; int rlen = this->pad(_msg, len, &input); uint8_t *output = new uint8_t[rlen]; AES128_CBC_encrypt_buffer(output, _msg, rlen, key, iv); file.write((char*)output, rlen); file.close(); return rlen; } else { Error("aeswrapper::EncryptToFile -> Qualcosa è andato storto con l'apertura del file!"); return 0; } } 正常工作,完成了它的编程工作。 我有一种方法:

main

有效。进入int main() { aeswrapper aes; string Message = "username=test&password=test"; int len = aes.EncryptToFile(Message, "text.bin"); cout << "Length: " << len << endl; [...] return 0; } 对成员的调用存在:

Debug

当我在Step into中尝试ase.EncryptToFile var Quo = function(string) { first = this; //this is the newly created instance this.status = string;// first this }; 方法时,调试停止运行,并通过以下图像捕获错误:

enter image description here

更多细节:我使用Eclipse和MinGW-64bit GCC编译器(在MSYS64下)和GDB。

问题是什么?

感谢所有人!

0 个答案:

没有答案
相关问题