This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
gdb ignore iteratotr++ operation
- From: "fedor_qd via gdb" <gdb at sourceware dot org>
- To: gdb at gcc dot gnu dot org
- Date: Sat, 01 Apr 2017 23:29:26 +0300
- Subject: gdb ignore iteratotr++ operation
- Authentication-results: sourceware.org; auth=none
- Authentication-results: smtp51.i.mail.ru; auth=pass smtp.auth=fedor_qd at mail dot ru smtp.mailfrom=fedor_qd at mail dot ru
- Reply-to: fedor_qd <fedor_qd at mail dot ru>
I start my app in codeblock with cmdline arguments with gdb. App terminares before breakpoit reached. I run in stepping mode. That code:
ParamList::iterator p = iParamList.begin()+1;
gdb see as:
ParamList::iterator p = iParamList.begin();
After that I download build and install gdb 7.12.1. Nothing changes. Also I run gdb directly: gdb myapp -options and got same result. I run app with that params and it crashes after that statement. To track path to crash I print to console messages like cout << "here".
My build enviroment : msys with mingw(not mingw-32/64) 5.3.0
How to deal with that?
Source here - https://github.com/fedor4ever/elf2e32
Always yours, Strizhniou Fiodar
Всегда ваш, Стрижнёв Фёдор