User forums > Help

How to view an assembly code while debugging?

<< < (3/5) > >>

oBFusCATed:
So does the disassemble command work in a gdb run from terminal?

BlueHazzard:

--- Quote ---typing "> > >" in the msys2 terminal makes it say "Cannot enable the TUI when output is not a terminal"
--- End quote ---
the >>> are added by codeblocks to show what is coming from the debugger. You do not have to type them.

https://stackoverflow.com/questions/9970636/view-both-assembly-and-c-code

visir:
typing "disassemble 0x4016b5" works in both, but in windows terminal it pauses midway with "press enter to show more"-like message.

Can't find anything about "> > >" in that stackoverflow link.

oBFusCATed:

--- Quote from: visir on May 30, 2017, 09:41:11 am ---typing "disassemble 0x4016b5" works in both, but in windows terminal it pauses midway with "press enter to show more"-like message.

--- End quote ---
I'm totally confused now.
What do you mean by both here?
The original report is that disassembly doesn't show in Code::Blocks. Is this still the case?

"> > >" is something odd and it is probably causing the problem, but I'm not sure where it is coming from.

visir:
I think I know where the > > > are from. They are supposed to be at the beginning of each line, but instead are shown in wrong order for some reason in codeblocks log and in msys2 terminal. There are also this thing ">>>>>>cb_gdb", it's also out of order, read full log i added previously. Not sure if this is why it breaks.



I tried "disassemble 0x4016b5" in windows terminal and in msys2 terminal, it works in both. The Debug -> Debugging windows -> Disassembly in codeblocks still doesn't work. It's possible to type my own commands in that debugging log window in codeblocks?

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version