News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Unable to enter input when stepping line by line in the debugger?

Started by phoenixy, February 25, 2013, 04:52:32 AM

Previous topic - Next topic

ehabr9


oBFusCATed

What about the quoted questions? Where is the log? Have you tried a nightly?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

ehabr9

yes I tried nightly but the same
here is the log from call stack


oBFusCATed

This is obviously not the log and it is close to useless.

For the full log goto the debugger settings, enable full logging, reproduce the bug and then paste the contents of the debugger's tab in here.
Use either a pastebin service or code tags.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

ehabr9

Debugger log

Building to ensure sources are up-to-date
Selecting target:
Debug
Adding source dir: C:\Users\DELL\Documents\C++\DT\
Adding source dir: C:\Users\DELL\Documents\C++\DT\
Adding file: C:\Users\DELL\Documents\C++\DT\bin\Debug\DT.exe
Changing directory to: C:/Users/DELL/Documents/C++/DT/.
Set variable: PATH=.;C:\Program Files (x86)\CodeBlocks\MinGW\bin;C:\Program Files (x86)\CodeBlocks\MinGW;C:\Program Files (x86)\AMD APP\bin\x86_64;C:\Program Files (x86)\AMD APP\bin\x86;C:\Windows\System32;C:\Windows;C:\Windows\System32\wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\Calibre2
Starting debugger: C:\Program Files (x86)\CodeBlocks\MINGW\bin\gdb.exe -nx -fullname  -quiet  -args C:/Users/DELL/Documents/C++/DT/bin/Debug/DT.exe
done
Registered new type: wxString
Registered new type: STL String
Registered new type: STL Vector
Setting breakpoints
Debugger name and version: GNU gdb (GDB) 7.5
Child process PID: 3308
At C:\Users\DELL\Documents\C++\DT\main.cpp:8
At C:\Users\DELL\Documents\C++\DT\main.cpp:8
At C:\Users\DELL\Documents\C++\DT\main.cpp:8
At C:\Users\DELL\Documents\C++\DT\main.cpp:10
In std::istream::operator>>(double&) () ()
In std::istream& std::istream::_M_extract<double>(double&) () ()
#1  0x004013b5 in main () at C:\Users\DELL\Documents\C++\DT\main.cpp:10
C:\Users\DELL\Documents\C++\DT\main.cpp:10:116:beg:0x4013b5
At C:\Users\DELL\Documents\C++\DT\main.cpp:10
#1  0x004013b5 in main () at C:\Users\DELL\Documents\C++\DT\main.cpp:10
C:\Users\DELL\Documents\C++\DT\main.cpp:10:116:beg:0x4013b5

ehabr9

Full log

Building to ensure sources are up-to-date
Selecting target:
Debug
Adding source dir: C:\Users\DELL\Documents\C++\Debug1\
Adding source dir: C:\Users\DELL\Documents\C++\Debug1\
Adding file: C:\Users\DELL\Documents\C++\Debug1\bin\Debug\Debug1.exe
Changing directory to: C:/Users/DELL/Documents/C++/Debug1/.
Set variable: PATH=.;C:\Program Files (x86)\CodeBlocks\MinGW\bin;C:\Program Files (x86)\CodeBlocks\MinGW;C:\Program Files (x86)\AMD APP\bin\x86_64;C:\Program Files (x86)\AMD APP\bin\x86;C:\Windows\System32;C:\Windows;C:\Windows\System32\wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\Calibre2

[debug]Command-line: C:\Program Files (x86)\CodeBlocks\MINGW\bin\gdb.exe -nx -fullname  -quiet  -args C:/Users/DELL/Documents/C++/Debug1/bin/Debug/Debug1.exe
[debug]Working dir : C:\Users\DELL\Documents\C++\Debug1

Starting debugger: C:\Program Files (x86)\CodeBlocks\MINGW\bin\gdb.exe -nx -fullname  -quiet  -args C:/Users/DELL/Documents/C++/Debug1/bin/Debug/Debug1.exe
done

[debug]> set prompt >>>>>>cb_gdb:

Registered new type: wxString
Registered new type: STL String
Registered new type: STL Vector
Setting breakpoints

[debug]Reading symbols from C:\Users\DELL\Documents\C++\Debug1\bin\Debug\Debug1.exe...done.
[debug](gdb) >>>>>>cb_gdb:
[debug]> show version
[debug]GNU gdb (GDB) 7.5
[debug]Copyright (C) 2012 Free Software Foundation, Inc.
[debug]License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
[debug]This is free software: you are free to change and redistribute it.
[debug]There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
[debug]and "show warranty" for details.
[debug]This GDB was configured as "i686-pc-mingw32".
[debug]For bug reporting instructions, please see:
[debug]<http://www.gnu.org/software/gdb/bugs/>.
[debug]>>>>>>cb_gdb:
[debug]> set confirm off

Debugger name and version: GNU gdb (GDB) 7.5

[debug]>>>>>>cb_gdb:
[debug]> set width 0
[debug]>>>>>>cb_gdb:
[debug]> set height 0
[debug]>>>>>>cb_gdb:
[debug]> set breakpoint pending on
[debug]>>>>>>cb_gdb:
[debug]> set print asm-demangle on
[debug]>>>>>>cb_gdb:
[debug]> set unwindonsignal on
[debug]>>>>>>cb_gdb:
[debug]> set print elements 0
[debug]>>>>>>cb_gdb:
[debug]> set new-console on
[debug]>>>>>>cb_gdb:
[debug]> set disassembly-flavor att
[debug]>>>>>>cb_gdb:
[debug]> source C:\Program Files (x86)\CodeBlocks\share\codeblocks/scripts/stl-views-1.0.3.gdb
[debug]>>>>>>cb_gdb:
[debug]> directory C:/Users/DELL/Documents/C++/Debug1/
[debug]Source directories searched: C:/Users/DELL/Documents/C++/Debug1;$cdir;$cwd
[debug]>>>>>>cb_gdb:
[debug]> break "C:/Users/DELL/Documents/C++/Debug1/main.cpp:23"
[debug]Breakpoint 1 at 0x4013ca: file C:\Users\DELL\Documents\C++\Debug1\main.cpp, line 23.
[debug]>>>>>>cb_gdb:
[debug]> run
[debug]Starting program: C:\Users\DELL\Documents\C++\Debug1\bin\Debug\Debug1.exe

Child process PID: 2700

[debug][New Thread 2700.0xdcc]
[debug]Breakpoint 1, main () at C:\Users\DELL\Documents\C++\Debug1\main.cpp:26
[debug]C:\Users\DELL\Documents\C++\Debug1\main.cpp:26:804:beg:0x4013ca
[debug]>>>>>>cb_gdb:

At C:\Users\DELL\Documents\C++\Debug1\main.cpp:26

[debug]> info locals
[debug]base_val = 4.1617989923449115e+260
[debug]rate = -1.3291345605894854e+103
[debug]years = 2686916
[debug]>>>>>>cb_gdb:
[debug]> info args
[debug]No arguments.
[debug]>>>>>>cb_gdb:
[debug]> bt 30
[debug]#0  main () at C:\Users\DELL\Documents\C++\Debug1\main.cpp:26
[debug]>>>>>>cb_gdb:
[debug]> next
[debug]C:\Users\DELL\Documents\C++\Debug1\main.cpp:27:837:beg:0x4013e5
[debug]>>>>>>cb_gdb:

At C:\Users\DELL\Documents\C++\Debug1\main.cpp:27

[debug]> info locals
[debug]base_val = 4.1617989923449115e+260
[debug]rate = -1.3291345605894854e+103
[debug]years = 2686916
[debug]>>>>>>cb_gdb:
[debug]> info args
[debug]No arguments.
[debug]>>>>>>cb_gdb:
[debug]> bt 30
[debug]#0  main () at C:\Users\DELL\Documents\C++\Debug1\main.cpp:27
[debug]>>>>>>cb_gdb:
[debug]> next
[debug]0x00446a7c in std::istream::operator>>(double&) ()
[debug]>>>>>>cb_gdb:

In std::istream::operator>>(double&) () ()

[debug]> info locals
[debug]No symbol table info available.
[debug]>>>>>>cb_gdb:
[debug]> info args
[debug]No symbol table info available.
[debug]>>>>>>cb_gdb:
[debug]> bt 30
[debug]#0  0x00446a7c in std::istream::operator>>(double&) ()
[debug]#1  0x0028fe98 in ?? ()
[debug]Backtrace stopped: previous frame inner to this frame (corrupt stack?)
[debug]>>>>>>cb_gdb:
[debug]> next
[debug]Single stepping until exit from function _ZNSirsERd,
[debug]which has no line number information.
[debug]0x0044343c in std::istream& std::istream::_M_extract<double>(double&) ()
[debug]>>>>>>cb_gdb:

In std::istream& std::istream::_M_extract<double>(double&) () ()

[debug]> info locals
[debug]No symbol table info available.
[debug]>>>>>>cb_gdb:
[debug]> info args
[debug]No symbol table info available.
[debug]>>>>>>cb_gdb:
[debug]> bt 30
[debug]#0  0x0044343c in std::istream& std::istream::_M_extract<double>(double&) ()
[debug]#1  0x004013f5 in main () at C:\Users\DELL\Documents\C++\Debug1\main.cpp:27
[debug]>>>>>>cb_gdb:
[debug]> frame 1
[debug]#1  0x004013f5 in main () at C:\Users\DELL\Documents\C++\Debug1\main.cpp:27
[debug]C:\Users\DELL\Documents\C++\Debug1\main.cpp:27:837:beg:0x4013f5
[debug]>>>>>>cb_gdb:

#1  0x004013f5 in main () at C:\Users\DELL\Documents\C++\Debug1\main.cpp:27
C:\Users\DELL\Documents\C++\Debug1\main.cpp:27:837:beg:0x4013f5
At C:\Users\DELL\Documents\C++\Debug1\main.cpp:27

[debug]> info locals
[debug]base_val = 4.1617989923449115e+260
[debug]rate = -1.3291345605894854e+103
[debug]years = 2686916
[debug]>>>>>>cb_gdb:
[debug]> info args
[debug]No arguments.
[debug]>>>>>>cb_gdb:
[debug]> bt 30
[debug]#0  0x0044343c in std::istream& std::istream::_M_extract<double>(double&) ()
[debug]#1  0x004013f5 in main () at C:\Users\DELL\Documents\C++\Debug1\main.cpp:27
[debug]>>>>>>cb_gdb:
[debug]> frame 1
[debug]#1  0x004013f5 in main () at C:\Users\DELL\Documents\C++\Debug1\main.cpp:27
[debug]C:\Users\DELL\Documents\C++\Debug1\main.cpp:27:837:beg:0x4013f5
[debug]>>>>>>cb_gdb:

#1  0x004013f5 in main () at C:\Users\DELL\Documents\C++\Debug1\main.cpp:27
C:\Users\DELL\Documents\C++\Debug1\main.cpp:27:837:beg:0x4013f5

oBFusCATed

For sure the problem is somewhere in the compiler or the debugger.
As always C::B is executing correct commands as far as I can tell.

Can you rebuild the project and post full build log?

p.s. Please use code tags. Press the little # button in the forum posting ui.

@Morten: If I remember correctly you had similar problems. How have you solved them?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

ehabr9

I give up
I will use visual studio and get over with this matter

Jenna

Quote from: ehabr9 on May 08, 2015, 11:53:08 PM
I give up
I will use visual studio and get over with this matter
Why didn't you even try to help to catch/fix the issue ?
Quote from: oBFusCATed on May 07, 2015, 12:54:30 AM
Can you rebuild the project and post full build log?

ehabr9

Rebuild is fine...but the GDB version 7.5 has a bug that it can't handle (Double) type variables...
if I try to replace the variables types to any other type it will work fine...
if you can help me...you can show me how to update the GDB in my CD...