Author Topic: MSYS2 as compiler with C::B - GDB problems?  (Read 2111 times)

Offline TRAyres

  • Single posting newcomer
  • *
  • Posts: 4
MSYS2 as compiler with C::B - GDB problems?
« 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!

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 12911
    • Travis build status
Re: MSYS2 as compiler with C::B - GDB problems?
« Reply #1 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.
(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!]

Offline TRAyres

  • Single posting newcomer
  • *
  • Posts: 4
Re: MSYS2 as compiler with C::B - GDB problems?
« Reply #2 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.


Offline stahta01

  • Lives here!
  • ****
  • Posts: 7018
    • My Best Post
Re: MSYS2 as compiler with C::B - GDB problems?
« Reply #3 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.
 
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 32 bit.
On Debian Stretch, compiling CB Trunk against wxWidgets 3.0.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org