User forums > Help
How to view an assembly code while debugging?
BlueHazzard:
--- Quote from: visir on May 29, 2017, 01:02:05 pm ---Actually, even keeping the disassembly window open breaks the debugger. It like halts, I can't even stop the debugging without closing gdb.exe in the task manager. Stepping doesn't work too.
--- End quote ---
But codeblocks does not crash? You can restart the debugging session after this? Have you tried a nightly build:
http://forums.codeblocks.org/index.php/topic,21781.0.html
This looks so familiar, but i can not figure out why....
visir:
Codeblocks doesn't crash, it keeps running. In fact, it even detects when I close gdb.exe manually, the debugging buttons change to the initial state.
The button for restarting session doesn't work, all debug buttons don't react. Actually, debuggee and gdb.exe stay active after I close codeblocks. The only way to stop it is to close gdb.exe manually.
I'm going to try out nightly build now, okay, I'll report the result.
visir:
It's the same in the nightly version.
Problem probably not in that, but I'll mention it just in case. I have 3 compilers installed currently, one that is just mingw, and two that came with msys2 (32 and 64 versions). But I've set paths correctly both for compiler and for debugger, so it should work?
oBFusCATed:
Start gdb on the command line and see it behaves the same.
If it does you know where the problem is.
If it doesn't then it is some setup command C::B executes at the beginning of the debugging session.
visir:
typing "> > >" in the msys2 terminal makes it say "Cannot enable the TUI when output is not a terminal"
typing "> > >" in the windows terminal breaks it with an exception.
typing "disassemble 0x4016b5" works in both, but in windows terminal it pauses midway with "press enter to show more"-like message.
when I paste this in the msys2 terminal:
--- Code: ---if 1
disassemble 0x401690
info frame
end
--- End code ---
it displays this:
--- Code: ---(gdb) if 1
disassemble 0x401690
info frame
end > > >
--- End code ---
and I have to press enter twice for it to work.
When I just type it in msys2 terminal, the formatting is correct.
when I paste same thing in the windows terminal, it works smoothly.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version