1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-22 06:02:11 +02:00
Commit graph

34949 commits

Author SHA1 Message Date
Stephan Oostveen
fe2d08b44a Bug 500798: Mark GCC template init message as info
When GCC skips template instantiation in its output it was parsed
as an error instead of an informational message.

Change-Id: If5dca2d1430a6b5e9cb9317649dea8291bfc0356
Signed-off-by: Stephan Oostveen <stephan.oostveen@nextlevel-electronics.com>
2021-01-11 15:18:34 -05:00
Jonah Graham
8f04a3bc34 [releng] Bump version number
Change-Id: I770d1842e4efeb3261db698356f4819e04f1f4a8
2021-01-11 15:14:09 -05:00
Simeon Andreev
fd09187f9a Bug 383348 - Replace actions with invalid menu paths in CDT UI
This change adjusts replaces the following actions (part of action set
org.eclipse.cdt.ui.buildConfigActionSet) with commands and menus:

* org.eclipse.cdt.ui.manageConfigsAction2
* org.eclipse.cdt.ui.buildConfigMenuAction
* org.eclipse.cdt.ui.wsselection

This is done to avoid menu extension errors on perspective
customization, due to problematic code in CustomizePerspectiveDialog. In
particular the customize perspective dialog will populate main menu
submenus only after going over actions; this causes the menu paths of
the actions above to be detected as invalid, despite actually being
valid and functional.

The original action classes are deprecated and marked for removal. The
respective classes are defined in non-internal packages; removal would
be considered API breakage and so must be done in a major version bump.

Change-Id: I31517697689772395b7e1868ef4cab07ad946085
Signed-off-by: Simeon Andreev <simeon.danailov.andreev@gmail.com>
2021-01-05 20:28:50 -05:00
Jonah Graham
ee55c6804d Bug 569911: Stop allowing OOB records to accumulate forever
Add a limit of 100,000 records to prevent OOM errors. Normally
only a few OOB records are needed, but in some cases like with
tdump, hundreds may be needed.

Change-Id: I967e0facc1dc326d94fa67b1d647417ee3cd8891
2021-01-05 18:50:23 -05:00
Muhammad Bilal
5f8fa75f1f Bug 516371: Enable GDB target async support for Windows remote debugging
Traditionally CDT used sync debug support all the time. However there
are cases where using target async is better because of GDB missing
interrupt.

This patch expands the cases that use target async to be all
remote targets when using Windows host. That is in addition to
cases when the full GDB Console is supported (new-ui).

Signed-off-by: Muhammad Bilal <hafizbilal100@gmail.com>
Change-Id: I1309d20319a24e4f23543d4ed22735044fd5b811
2021-01-05 18:50:19 -05:00
John Dallaway
c3c5c2f3ba Bug 570018: Set preferred launch delegate
Change-Id: Ie5861f630489109375ccaf352f621e00ed7cdde8
2021-01-05 03:05:12 -05:00
Jonah Graham
8698d6ce9b Bug 570018: Run tests with the conflicting gdbjtag launch config
Change-Id: I4a84b8da30074656cf6678de682af2725bde1f59
2021-01-04 22:38:35 -05:00
Marc-Andre Laperle
f6d1132d8e Bug 565553 - Improve performance of build command parsers with large number of files
Add more caches for methods in AbstractLanguageSettingsOutputScanner
that are IO heavy:
- getFilesystemLocation
- determineMappedURI
- resolvePathEntryInFilesystem (File.exists)

These cut down the execution time of command parsing by around 50% on
Windows, more so when considering Java >=12 when
File.getCanonicalPath/File caching is not manually enabled.
See also https://bugs.eclipse.org/bugs/show_bug.cgi?id=565553#c17
and https://bugs.java.com/bugdatabase/view_bug.do?bug_id=8258036

Change-Id: I80828f969547f824d2e45e60b5f4459d03c70bb1
Signed-off-by: Marc-Andre Laperle <malaperle@gmail.com>
2020-12-27 13:43:08 -05:00
Jonah Graham
25cbbcd5b5 Bug 569839: Ensure that behaviour is same running tests without suites
This change renames all suites to be called ...TestSuite so that
the default includes don't pick them up. With the name ...Tests it
means that those tests referenced by the suite are run multiple times.

Tests which relied on being run as part of a TestSuite have been
refactored to run as individual tests by moving the logic from
the suite into the test (e.g. CommentHandlingTestSuite)

Tests that were not runnable have been renamed from ...Test to ...Tester
to match a convention already used in CDT.

Lots of tests did not use standard name (i.e. didn't end in no Test) so
this was fixed.

Many tests were really abstract tests, so the missing abstract was added,
e.g. ArrayTests

The default excludes in Maven behaviour differently than may be expected,
so rather than remove static inner test classes, update the excludes,
see pom.xml change

Change-Id: Ia91e12fe76c3ec2d914463a28400d21b9daf1910
2020-12-21 14:50:51 -05:00
Jonah Graham
7b6701f9ef Bug 569839: Add DefaultCCommentAutoEditStrategyTest to testsuite
This test started failing (and wasn't in testsuite previously) because
it had significant trailing whitespace in some tests.

The fix is to use ${whitespace_eol} which I have also added to some
of the javadocs to make it easier to find next time.

Change-Id: Ib364d8a400bcdeb21445dde8428e0fd4c77db990
2020-12-21 11:49:24 -05:00
Jonah Graham
75e281ffac Bug 569839: Restore the cleanupProject
This style is the JUnit3 way of doing JUnit4 @AfterClass. It was
commented out as part of Bug 564002 (commit 9e303185f9).

Change-Id: I56e2754f3cce447c47546c91cdc16b302e18b4a6
2020-12-21 11:49:24 -05:00
Jonah Graham
f3bee99f00 Bug 569839: Don't discard exceptions in tests
Change-Id: I710922fcc1b23d61d52fa1aa868b491bc26edf01
2020-12-21 11:49:24 -05:00
Jonah Graham
cb35c8daa2 [releng] Remove unused API filters
Change-Id: I960afcd99198918fe5f86983243b571c23a3c97f
2020-12-19 13:01:44 -05:00
Jonah Graham
01e43768c3 [releng] Update simrel site for 2021-03
Change-Id: I3fdeb557ae998d0382c6e9b69e2fa3d100ffb0cd
2020-12-19 13:01:44 -05:00
Jonah Graham
7d2e842884 [releng] Update comparator.repo to latest released CDT
Change-Id: Ib2fc576e4d6f79f8b5303032e7e27f73f5b7e45b
2020-12-19 13:01:44 -05:00
Jonah Graham
bf6f758bd3 [releng] Update p2.inf's reference
Change-Id: Id8a43b342ca643155e593987113a100af12b98f9
2020-12-19 12:11:25 -05:00
Jonah Graham
c248620053 [releng] Increment feature and related versions to 10.2.0
Change-Id: Icd135a588920fa25fd846dc285db5f83e5ac7037
2020-12-19 12:11:25 -05:00
Jonah Graham
a469af6bf3 [releng] Update to newer help-docs-eclipserun-repo
Change-Id: I5cc8b6d66ace35eea397a781739dc27def4df3f9
2020-12-19 12:11:25 -05:00
Jonah Graham
2cac529ee0 [releng] Updates of deps and repos for beginning of CDT 10.2 cycle
Change-Id: I65dd3c31e598b013935cf6b221eb098f77ce75f9
2020-12-19 11:28:31 -05:00
Jonathan Williams
7d64391baf Bug 569479 - Fix ClassCastException with NewLaunchTargetWizard
NewLaunchTargetWizard implements INewWizard so that File > New >
Other... > Launch Targets > Launch Target works without exception.

Change-Id: I6ffb0a8d601d54fe4d3f781fdbaa342167fff2f0
Signed-off-by: Jonathan Williams <jonwilliams@blackberry.com>
2020-12-04 14:37:15 -05:00
Abdullah Khalid
a7546a575f Bug 569397: Update SyncUtil's javadoc
Signed-off-by: Abdullah Khalid <abdullah.dev0@gmail.com>
Change-Id: Id200f0c2badfc878503bdd5dc3a8b0f98ab1718c
2020-12-03 10:33:02 -05:00
Torbjörn SVENSSON
05322656c6 Bug 539927: Do not mark "Removing unused section" lines as errors
The lines are printed by the GNU ld with the flag --print-gc-secions

Change-Id: Ie09229427a29e9959f8ffe4920a1645ad3dcb086
Signed-off-by: Torbjörn SVENSSON <torbjorn.svensson@st.com>
2020-12-02 10:53:11 +01:00
Jonah Graham
bb6f318a79 Bug 568513: Scroll to correct address on memory file import
The CDT 9.x code scrolled once, to the start address of the import
when the import finished. The refactoring done early in the CDT 10.x
cycle (Bug 562164) instead scrolled repeatedly, generally once
per line of the input file, until finally scrolling one last time
to the byte right after the last imported byte.

Change-Id: I79f2a17c7a5feb19a463002ce19dec9d22afc90f
2020-12-01 18:15:35 -05:00
Martin Weber
725ff665e7 Bug 569186: Fix: Project rebuild is causing Unresolved inclusion issues
Change-Id: I9c59c6a8b5963edac7d33a35b936a161ce9eb337
Signed-off-by: Martin Weber <fifteenknots505@gmail.com>
2020-12-01 14:10:32 -05:00
Jonah Graham
1d0bc6992f Revert "Bug 568397: Hide "Build settings" if using custom command"
This reverts commit 1d226f9273.

Reason for revert: Due to some concerns about use cases and the
desire to resolve those concerns with separate build and args
text boxes this is being reverted for 10.1 until this change
can be done at the same time as https://git.eclipse.org/r/c/cdt/org.eclipse.cdt/+/173118

Change-Id: Iffa37087c00f434d4e684eea19ecacde36004b80
2020-12-01 12:07:38 -05:00
Torbjörn SVENSSON
0f3214ace9 Bug 569353: The mode output from ld is not an error
Change-Id: I1a29bd698c3b37d687bf76a416689df0a69aa50d
Signed-off-by: Torbjörn SVENSSON <torbjorn.svensson@st.com>
2020-12-01 08:34:03 -05:00
Jonah Graham
b5aae48f38 [releng] Update to RC1 dependency versions
Change-Id: I8eb772f7130ec183f99f26ba9bc606b95af8053f
2020-11-30 21:17:29 -05:00
Torbjörn Svensson
fb20df887a Bug 569300: Allow custom build option editors to save the value
Added a new interface with a method that is called when the value is to
be saved into a resource configuration.
If the function returns false, then the default implementation of
handling property changes will kick in. If the function returns true,
then it's assumed that the value has been handled.

Change-Id: I0523d15ba0a3ec9dbc24c3e4afc070b071d8fb7e
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-11-30 16:11:01 -05:00
Simeon Andreev
d4c6168964 Bug 486033 - Add close button to CDT Build Console toolbar
This change adds a close action
(org.eclipse.ui.console.actions.CloseConsoleAction) to the CDT build
console.

CDT accessing a closed console via BuildConsoleManager will result in
re-adding the respective console page to the console view, if the
console page was closed.

Change-Id: Ifc4d4c6ed329f1c1c7e70f7903ed660ba85306c5
Signed-off-by: Simeon Andreev <simeon.danailov.andreev@gmail.com>
2020-11-29 15:14:40 -05:00
Simeon Andreev
a655f7b4a5 Bug 568926 - Build Console has no action to disable activation on output
This change adds an action to the CDT build console, to disable
activation on build output. The action uses the existing preference
"build console on top when building" from C/C++ -> Build -> Console.

The action icon is copied from platform debug UI, see:

org.eclipse.debug.internal.ui.IInternalDebugUIConstants.IMG_ELCL_STANDARD_OUT
org.eclipse.debug.ui/icons/full/elcl16/writeout_co.png (and @2x)

The change also ensures the existing preference works, as it currently
has no effect on not showing the build console on CDT build.

Change-Id: I0d94583b85e1a13f18d43de8c10355ccdab7f259
Signed-off-by: Simeon Andreev <simeon.danailov.andreev@gmail.com>
2020-11-29 15:04:00 -05:00
Simeon Andreev
7881736c68 Bug 569123 - Race condition on AbstractMIControl.fRxCommands
This change adds synchronization to iterating over the map
AbstractMIControl.fRxCommands during
AbstractMIControl.cancelRxCommands(). This prevents potential
ConcurrentModificationExceptions when elements are added or removed to
the map in parallel during e.g. AbstractMIControl.TxThread.run() loop.

The change also removes superfluous synchronization for method
AbstractMIControl.cancelRxCommands().

Change-Id: Id7c01b3057e522cce324a002dce54f0fabe02623
Signed-off-by: Simeon Andreev <simeon.danailov.andreev@gmail.com>
2020-11-29 14:41:34 -05:00
Torbjörn Svensson
293998da18 Bug 568228: Add a way for DSF Data Model to initiate refresh all
There is no way to predict what the user might do during for example the
launch sequence, so as a last resort, tell the UI to drop all caches and
refresh the data as the last step of the launch sequence.

Change-Id: I97731c8286657a0fc1111ba41deb47863181a453
Also-by: Jonah Graham <jonah@kichwacoders.com>
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-11-29 14:39:11 -05:00
Martin Weber
3ffe2156ff Bug 569247: remove topic attribute
Change-Id: If69c9892c4df35879bc7ea047416b4a542b226ce
Signed-off-by: Martin Weber <fifteenknots505@gmail.com>
2020-11-27 20:05:18 +01:00
Simeon Andreev
bddeeeac3b Bug 568923 - add activity for TM terminal main toolbar button
This change adds an extra activity for the TM terminal main toolbar
contribution. This allows applications to disable the contribution
without disabling the rest of TM terminal functionality.

With this change, disabling of the TM terminal main toolbar button can
be done with a product customization file containing the line:

org.eclipse.ui.workbench/UIActivities.org.eclipse.tm.terminal.view.ui.activity.maintoolbar=false

The product customization file is specified to Eclipse arguments:

-pluginCustomization /some/path/plugin_customization.ini

Change-Id: Id1c34616f4f2a0ac77edbfe201c1db095f9ce7b8
Signed-off-by: Simeon Andreev <simeon.danailov.andreev@gmail.com>
2020-11-24 12:27:35 +01:00
Jonah Graham
7fd8956dca [releng] Update to Platform 4.18 M3
Change-Id: I4f56a63394ba619ff2d1c319b5ee334fde685683
2020-11-23 12:31:57 -05:00
Alexander Fedorov
98e50a2d8b Align CDT.setup with target platform
Add org.yaml.snakeyaml for CMake
Use Orbit from
https://download.eclipse.org/tools/orbit/I-builds/I20201119185738/repository

Change-Id: If2fceeb124ddfb90e1dfe5c9212ceca2adace474
Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2020-11-21 22:49:00 +03:00
Jonah Graham
36285742d1 Bug 568375: Publish com.sun.xml.bind to CDT's p2 repo
In the past CDT just picked this up from somewhere else.

Change-Id: I00672abd57e1710fe0e91fb0a1387740208d0c68
2020-11-20 14:30:28 -05:00
Alexander Kurtakov
bc9ecdad17 Build with Tycho 2.1.0
Change-Id: I7f682ad313ce275f45e0b4adb4c1280d952cf3ac
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
Also-by: Jonah Graham <jonah@kichwacoders.com>
2020-11-20 10:53:30 -05:00
Torbjörn Svensson
7818b0f921 Bug 568228: Ensure no duplicated classes are registered
Change-Id: I0bcb4764887d73e7b57770e2ff397a06a4247624
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-11-19 20:13:15 -05:00
Torbjörn Svensson
163ae5f819 Bug 568228: Use lambda and for-each loop
Change-Id: I296247de2dd0b05c0df38621f73dc05798f6c7cc
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-11-19 20:13:15 -05:00
Torbjörn Svensson
6b8efb9651 Bug 568228: Corrected spelling of fListener
Change-Id: If7e5e53d96625c2b8faa661384794f58748e67ac
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-11-19 20:13:15 -05:00
Torbjörn Svensson
4187a6e828 Use clickable links in the MD viewer and highlight paths
Change-Id: I501484c4c34dfcdbdbb993284d3f51e7fc88329a
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-11-19 15:38:21 -05:00
Jonah Graham
409a830c39 Bug 568375: Consistent versions for use of JAXB libraries
Change-Id: I86a6def37aed6c30a7591fd8dde4c174f6af98bb
2020-11-19 14:31:30 -05:00
Marc-Andre Laperle
f5531cee19 Bug 565553 - Improve performance of build command parsers with large number of files
When possible, precompute the group number in the replacement expression
when parsing option strings, instead of calling replaceAll which is
slower. If the replacement expression is not a simple numbered group,
fall-back to replaceAll.

I have benchmarked this save between 200ms to 2sec depending on the
project size.

Change-Id: Id48fdcf476e2d1739522c9267e214f4c88bf316a
Signed-off-by: Marc-Andre Laperle <malaperle@gmail.com>
2020-11-18 22:06:10 -05:00
Alexander Kurtakov
3abe3d28e6 No need to dispose colors anymore.
Change-Id: I39e760a0dba9d220268ee738c8a085d14f0e188b
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2020-11-18 13:41:15 -05:00
Torbjörn Svensson
e632011f2c Bug 568728: Drop execute permission on files
Add enforecment script that verifies that only specified file types are
allowed to be mared as executable.

Change-Id: I4b40e3a46b03bfc78a9dcd52e8bf29cb079b7f3b
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-11-18 17:38:22 +01:00
Alexander Kurtakov
57fd1b2847 Do not use deprecated CDataUtil.objectsEqual
Objects.equals should be used instead.

Change-Id: I6713d0d4d0fb8b13b3b336af61cdd73048839969
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2020-11-17 16:50:33 +02:00
Alexander Kurtakov
dc5b05442e Bug 568888 - Open *.mak files as makefiles
Recognize *.mak extension.

Change-Id: Id765af612d0d8b7f355a9696f06d9e1184db5703
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2020-11-17 15:43:02 +02:00
Jonah Graham
4213379279 Bug 567488: Add missing @since tags and bump version
Change-Id: Ib1918a41f939907777fe7729a40fc55e51e33c7c
2020-11-16 14:06:22 -05:00
Jonah Graham
7a106097e0 Bug 568856: Upgrade BREE to Java 11
Change-Id: I7422fabff409ec4bab5379350dc9bf67b84a07c0
2020-11-16 10:27:05 -05:00