Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "CDT/User/NewIn92"
(→Full GDB Console) |
(→Full GDB Console) |
||
Line 58: | Line 58: | ||
[[File:CDT_WhiteConsole.png]] | [[File:CDT_WhiteConsole.png]] | ||
− | ...but can be set to black, for the real hacker in you. | + | ...but can be set to black, for the real hacker in you by using the console preferences (see below). |
[[File:CDT_BlackConsole.png]] | [[File:CDT_BlackConsole.png]] | ||
− | Remember that you need to run on Linux and you must use GDB 7.12 (or later). In that environment, the full GDB console will be used automatically. In any other environment, the legacy (much more limited) console previously used by CDT will still be used, but still displayed in the Debugger Console view. | + | '''Remember that you need to run on Linux and you must use GDB 7.12 (or later). In that environment, the full GDB console will be used automatically. In any other environment, the legacy (much more limited) console previously used by CDT will still be used, but still displayed in the Debugger Console view.''' |
The full console provides a context-menu that allows to access common console operations. It also allows to quickly access the preferences of the console. | The full console provides a context-menu that allows to access common console operations. It also allows to quickly access the preferences of the console. |
Revision as of 11:05, 18 November 2016
Contents
Release
This is the New & Noteworthy page for CDT 9.2 which is part of the Eclipse Neon.2 update release of December 2016
General
Editor
Syntax coloring for variables passed by non-const reference
Variables passed by non-const reference are unique in that the callee can modify the original variable (unlike variables passed by value or by const reference), but there is no syntactic marker indicating this at the call site (unlike variables passed by pointer, where you need to take the address at the call site).
To allow readers of code to identify such call sites more readily, CDT 9.2 adds a new syntax coloring for variables passed by non-const reference:
The new highlighting is disabled by default. It can be enabled in Preferences -> C/C++ -> Editor -> Syntax Coloring -> Code -> "Variables passed by non-const reference".
Makefile Editor
Code Analysis
Parser
Support for C++14 constexpr evaluation
C++14 expanded the scope of what's allowed inside a constexpr function, to allow variable declarations and most control statements such as loops. CDT now supports evaluation of constexpr functions that make use of these features.
In this example, CDT simulates the execution of a constexpr function that contains a for loop to determine that the type of x is integer<10>.
Formatter
Build
Debug
Debugger Console view
CDT 9.2 introduces a new Debugger Console view. This view provides access to the command-line interface of the debugger used by CDT. The view should open automatically when a new debug session is started. Although it can be useful, this view is not essential to the use of the CDT debugger, and users that don't plan to interact with the debugger through the command-line can simply hide the view behind any other.
Full GDB Console
CDT 9.2, when used on Linux with GDB 7.12, provides a full-featured GDB command-line console in Eclipse. This console is accessible through the new Debugger Console view. The full GDB console defaults to white to better blend with the other views in Eclipse...
...but can be set to black, for the real hacker in you by using the console preferences (see below).
Remember that you need to run on Linux and you must use GDB 7.12 (or later). In that environment, the full GDB console will be used automatically. In any other environment, the legacy (much more limited) console previously used by CDT will still be used, but still displayed in the Debugger Console view.
The full console provides a context-menu that allows to access common console operations. It also allows to quickly access the preferences of the console.
The user can access the console preferences through the context-menu of the view, or under the GDB preference section.
Full GDB console
This feature was completed through Bug xxxxx.
Selection synchronization with GDB
Ability to restart a process from the GDB console
Display GDB thread ids in the Multicore Visualizer
The Multicore Visualizer shows all threads of the process(es) being debugged. Previously, each thread would be represented by a dot followed by the OS thread id of that thread (PID on Linux).
With this enhancement, the GDB thread id is also displayed, making it easier for the user to map the threads in the Visualizer to the threads in the Debug View and in the Debugger Console.
This feature was completed through Bug 501006.
Hide gdb traces by default
For many releases a dedicated console has been used to display the communication between CDT and GDB when debugging. These traces, referred to as 'gdb traces', are an implementation detail and should not be of interest to the standard user. However, as they provide a very valuable tool for troubleshooting debug issues, they were being displayed by default as safety precaution.
In this release, the 'gdb traces' have been made to be enabled but hidden by default. In this fashion, they will not be visible to the standard user, thus reducing the IDE complexity slightly, but will be available when troubleshooting is required. The below image shows the console when the 'gdb traces' are explicitly made visible by the user through a preference.
To enable those traces go to Preferences->C/C++->Debug->GDB and enable the preference called "Show the GDB traces consoles". The size of the console buffer can still be set using the corresponding text preference. Note that the GDB traces will always be enabled and be recorded and that the preference in question is only used to display or hide the actual 'gdb traces' console.
Bugs Fixed in this Release
See Bugzilla report Bugs Fixed in CDT 9.2