Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: TRAyres on November 14, 2016, 05:11:49 am

Title: MSYS2 as compiler with C::B - GDB problems?
Post by: TRAyres on November 14, 2016, 05:11:49 am
I can't see an assembly listing after I set a breakpoint - I did compile with -g.

I tried to run the exe from MSYS2 x86_64 terminal, I launch GDB on the EXE, and try "layout asm" and I get:
(gdb) layout asm
Cannot enable the TUI when output is not a terminal

Can someone point me in the right direction? Having MSYS2 and C::B work together would be programming bliss for the Windows platform.

Thanks all!
Title: Re: MSYS2 as compiler with C::B - GDB problems?
Post by: oBFusCATed on November 14, 2016, 09:06:33 pm
Why do you think C::B has anything to do with your problem?
By the looks of it - it is something related to the msys2's gdb, terminals or something like this.
But nothing in your report suggests that C::B has caused the problem.
Title: Re: MSYS2 as compiler with C::B - GDB problems?
Post by: TRAyres on November 15, 2016, 02:20:03 am
The same setup works with Eclipse Neon CDT, including the assembly view.

I assumed it was C::B if Eclipse could get the information correctly.

Title: Re: MSYS2 as compiler with C::B - GDB problems?
Post by: stahta01 on November 15, 2016, 03:09:05 am
What do you mean by "MSYS2 x86_64 terminal"?
Do you mean mintty or something else?

Did you look at the build log for both C::B and the other IDE and see what differs; if not, I suggest you do so!

Tim S.