Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "CDT/User/NewIn90"

< CDT
(API modifications)
(Editor)
Line 6: Line 6:
  
 
[[File:Function_call.png]]
 
[[File:Function_call.png]]
 +
 +
*In C++ files if "Type not found" error is detected, there is a new quick fix now to create a class based on that type, which opens "New C/C++ Class Wizard".
 +
 +
Picture: TBD
  
 
== Makefile Editor ==
 
== Makefile Editor ==

Revision as of 22:14, 20 January 2016

General

  • Is is now possible to convert an existing C project to a C++ project (adds C++ nature). To do this, the existing wizard 'Convert to a C/C++ project' can now be used on C projects whereas before it could only be used on non-CDT projects.

Editor

  • When code completion is invoked in a function call expression, appropriate substitutions are suggested for each of the function parameters. link

Function call.png

  • In C++ files if "Type not found" error is detected, there is a new quick fix now to create a class based on that type, which opens "New C/C++ Class Wizard".

Picture: TBD

Makefile Editor

  • Makefile Editor now provides a *single* key Ctrl+/ to toggle comments rather than have Ctrl+/ to comment and Ctrl+\ to uncomment. This is consistent with CDT and Java editors. See Bug-485028

Parser

Build

  • The "Symbols" settings category (gnu.c.compiler.category.symbols) under "GCC C compiler" has been removed and its content has been merged with the Preprocessor (gnu.c.compiler.category.preprocessor) category. link

Debug

Gdbserver options

  • For automatic remote debugging sessions, CDT now supports specifying extra options that will be passed to gdbserver when starting it. This way, users could activate debug messages ("--debug"), benefit of wrapper option ("--wrapper") that gdbserver supports or use the other available command-line options of gdbserver.

Gdbserver-settings-tab.PNG

Bugs Fixed in this Release

See Bugzilla report Bugs Fixed in CDT 9.0

API modifications

With CDT 9.0, some public API are being modified. Below is the list of changes that are not backwards-compatible that extenders could trip on.

org.eclipse.cdt.dsf.gdb

  1. The deprecated protected method GdbLaunchDelegate.newServiceFactory(String) has been removed. It has been replaced with GdbLaunchDelegate.newServiceFactory(ILaunchConfiguration, String)
  2. The constructor MIThreadGroupExitedEvent(IProcessDMContext, int, String) has been removed. MIThreadGroupExitedEvent(IProcessDMContext, int, MIResult[]) should be used instead.
  3. The constructor MITargetAttach(ICommandControlDMContext, String) has been removed. MITargetAttach(IMIContainerDMContext, String) or MITargetAttach(IMIContainerDMContext, String, boolean) should be used instead.
  4. Based on the previous change, the method CommandFactory.createMITargetAttach(ICommandControlDMContext, String) was removed. CommandFactory.createMITargetAttach(IMIContainerDMContext, String) or CommandFactory.createMITargetAttach(IMIContainerDMContext, String, boolean) should be used instead.
  5. The constructors MIFileExecAndSymbols(ICommandControlDMContext) and MIFileExecAndSymbols(ICommandControlDMContext, String) where removed. MIFileExecAndSymbols(IMIContainerDMContext) and MIFileExecAndSymbols(IMIContainerDMContext, String) should be used instead.
  6. In GDBControl_7_0, the classes InitializationShutdownStep, CommandMonitoringStep, CommandProcessorsStep, RegisterStep have been removed; their counterparts, defined in GDBControl, should be used instead.
  7. Based on the previous change, the class GDBControl_7_0.ListFeaturesStep now extends GDBControl.InitializationShutdownStep instead of the removed GDBControl_7_0.InitializationShutdownStep.
  8. MIVariableManager.MIVariableObject.setExpressionData(String,String,int) which has been deprecated for over 4 years has been removed. The method MIVariableManager.MIVariableObject.setExpressionData(ExpressionInfo,String,int,boolean) should be used instead.
  9. Support for the obsolete Apple GDB has been removed
    • The following macos packages were removed:
      • org.eclipse.cdt.dsf.gdb.service.macos,
      • org.eclipse.cdt.dsf.mi.service.command.commands.macos,
      • org.eclipse.cdt.dsf.mi.service.command.output.macos
      • org.eclipse.cdt.debug.gdbjtag.core.dsf.gdb.service.macos
    • The following classes, contained in the above packages are now removed:
      • MacOSCommandFactory.java
      • MacOSGDBProcesses.java
      • MacOSGDBRunControl.java
      • MacOSGdbDebugServicesFactory.java
      • MacOSMIEnvironmentCD.java
      • MacOSMIVarUpdate.java
      • MacOSMIVarUpdateInfo.java
      • MacOSGdbJtagDebugServicesFactory.java
    • The constant LaunchUtils.MACOS_GDB_MARKER was removed.

org.eclipse.cdt.managedbuilder.ui

  1. The class ToolChainSelectionPage has been removed. It was being used by a wizard that was never used and that was removed.

org.eclipse.cdt.ui

  1. The classes NewCDTProjectWizard, ProjectTypePage, TemplateSelectionPage have been removed. The wizard and its pages were never used and were not fully functional.
  2. The extension point projectTypePages has been removed. It was being used by a wizard that was never used and that was removed.

org.eclipse.cdt.codan.core https://git.eclipse.org/r/#/c/63810/

  1. Method IChecker#enabledInContext(IResource resource) is remove. Just removed implementation it is not called.
  2. Method IProblemLocationFactory#createProblemLocation(IFile file,int startChar,int endChar) is removed. If you implement this interface, remove @Override annotation, if you use this method replace with createProblemLocation(file,startChar,endChar,-1) (or appropriate line number, note: passing -1 is ok since it will recalculate line from positions)
  3. Constructor CodanProblemLocation(IResource, int, int) is removed, use CodanProblemLocation(IResource file, int startChar, int endChar, int line) instead

Back to the top