Search code examples
cgdbmingweclipse-cdt

Eclipse CDT: Dynamic Printf feature not working


During Debug mode, if we add Dynamic Printf breakpoint; Eclipse CDT adds an entry in the 'Breakpoints' view but it doesn't display content for dynamic printf on the Console.

Tried both checking and unchecking 'Allocate console (necessary for input)' under 'Common' tab in Debug Configurations, but Dynamic Printf isn't working.

Environment: Eclipse CDT (Oxygen) and GNU gdb (GDB) 7.6.1 running on Windows 7 64-bit.

If we hover over Dynamic Printf breakpoint, it shows below warning:

enter image description here

Any inputs to get Dynamic Printf feature working on Eclipse CDT?


Solution

  • CDT only support Dynamic Printf breakpoints from GDB 7.7 and later.

    Have a look at the feature bugzilla for the details, but the short story is GDB 7.5 and 7.6 had too many bugs for CDT to reasonably support.