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

34981 commits

Author SHA1 Message Date
Jonah Graham
fe00320854 Bug 341721: Update terminal tab title with ANSI command
All the hard work had been done before, simply no one had actually
added the bit of code to update the title based on the listener.

Change-Id: Icdbc7b9b0a9b8fccf7d4eddf8d20674e50e0a170
2021-03-01 18:51:58 -05:00
Torbjörn SVENSSON
afd8342ec0 Bug 571458: Return verdict of all configs
When invoking the headless build, the verdict should be the "sum" of
all the build configurations. If one build configuration fails, then
the verdict of the build should also be "failed".

Contributed by STMicroelectronics

Change-Id: Ic3237d3531657f7f89c9338142ebf8fdb477c481
Signed-off-by: Torbjörn SVENSSON <torbjorn.svensson@st.com>
2021-03-01 11:47:47 +01:00
Torbjörn SVENSSON
1404e46d70 Bug 571566: Document how to choose workspace for headless build
Moved handling of "-help" to a new plugin using the same approach as
was used for the JavaCodeFormatter in bug 543363. This mainly allows
to get the help text even if the workspace is missing.

Contributed by STMicroelectronics

Change-Id: I4ee2e93f0e8fed13ddebd70c3bce58f047aa1d12
Also-by: Jonah Graham <jonah@kichwacoders.com>
Signed-off-by: Torbjörn SVENSSON <torbjorn.svensson@st.com>
2021-03-01 02:40:52 -05:00
Torbjörn Svensson
61510747dc Improved plugin name to "Launch over Serial UI Plugin"
Contributed by STMicroelectronics

Change-Id: Id3a52a912492b1571374b570fe07009aa08f2b9b
Signed-off-by: Torbjörn Svensson <torbjorn.svensson@st.com>
2021-03-01 02:40:27 -05:00
Jonah Graham
d3f09041de Bug 570775: Correct ID of InvertColorsAction
Change-Id: Id74b075a3a0d932cb65041c8d206f9ca2663cdf1
2021-02-28 07:41:29 -05:00
Jonah Graham
67c048d5cc Cosmetics.
Change-Id: I130139bc6f3f711976f988b150400f822f23bea8
2021-02-28 07:41:29 -05:00
Torbjörn SVENSSON
0ca137e854 Bug 571433: Make ManagedCommandLineGenerator API
Allow extenders to extend the ManagedCommandLineGenerator in order to
add options that are placed on the toolchain node instead of the tool.

Contributed by STMicroelectronics

Change-Id: I548bcbf72f1290cd4bc0ce830c27ce032a62c9c9
Signed-off-by: Torbjörn SVENSSON <torbjorn.svensson@st.com>
2021-02-26 14:47:34 -05:00
Jonah Graham
cdd00392c1 Bug 571472: Don't resolve multi-line strings
Change-Id: Id6a8b208cb6bc965a2c8d781ba41bca3b3094685
2021-02-25 07:39:04 -05:00
Torbjörn SVENSSON
f7c88ecd73 Bug 406497: Fixed wrong null check
Contributed by STMicroelectronics

Change-Id: I741bdde5708a7dd4583a3afbb83c5ec8643b8cc0
Signed-off-by: Torbjörn SVENSSON <torbjorn.svensson@st.com>
2021-02-24 16:57:37 +01:00
Umair Sair
321100a2a7 Bug 571161 - MIBreakpointsSynchronizer is broken in certain scenarios
- Added null check to prevent NPE.
- Fixed the collector used in doTargetBreakpointsSynchronized method.

Change-Id: I1ea48b9231882923fe364321e42d0202a0924bf3
Signed-off-by: Umair Sair <umair_sair@hotmail.com>
2021-02-23 11:01:21 -05:00
Torbjörn SVENSSON
7760ce2eb7 Properly invoke diff command during test
Contributed by STMicroelectronics

Change-Id: Ic67a3331375cf0eb071d2b24e2c9716114aeb4dd
Signed-off-by: Torbjörn SVENSSON <torbjorn.svensson@st.com>
2021-02-23 14:02:59 +01:00
Torbjörn SVENSSON
c809bde381 Bug 571384: Rebuild required files when configuration has changed
A change of build configuration should rebuild the artifact.
With make, this is achieved by depending on the makefile that contains
the rule to build the artifact. If the flags change, so will the
makefile do and the artifact is rebuilt.

Contributed by STMicroelectronics

Change-Id: I56e0376ff9bfa5629b55c1b6c9f94a6f930e0d69
Signed-off-by: Torbjörn SVENSSON <torbjorn.svensson@st.com>
2021-02-22 14:53:52 -05:00
Torbjörn SVENSSON
b063af68ad Bug 571405: Generate rules with -MT"$@"
When there is a linked file in the project, the build target for the
content in the .d file should be the .o file as that is what is
depending on the source file.

Use "$@" rather than "$(@)" as it's the usual syntax for single letter
variables in make.

Contributed by STMicroelectronics

Change-Id: I6b024b2b3a1a8b061740e99de5e96923981c92fa
Signed-off-by: Torbjörn SVENSSON <torbjorn.svensson@st.com>
2021-02-22 14:35:58 -05:00
Torbjörn SVENSSON
07d8edaf28 Bug 571381: Generate BUILD_ARTIFACT* symbols in makefile
The symbols generated are:
* BUILD_ARTIFACT_NAME
  Value of "Artifact name" field defined in the build configuration
* BUILD_ARTIFACT_EXTENSION
  Value of "Artifact extension" field defined in the build configuration
* BUILD_ARTIFACT_PREFIX
  Value of "Output prefix" field defined in the build configuration
* BUILD_ARTIFACT
  Assembly of the other values to build the target file name

The above symbols make it easier to extend the generated makefile using
the provided makefile hooks "makefile.init", "makefile.defs" and
"makefile.targets". There is no longer need to duplicate the name of
the target artifact in the hooks files.
The hooks can for example be used when the post-build step is not
flexible enough. By placing the post-build step in makefile.targets,
when done properly, will let the user have full control over the
sequence, including parallelism, for the required steps.

Contributed by STMicroelectronics

Change-Id: I163917837b65cb397eb5943c4357a54e9576cf42
Signed-off-by: Torbjörn SVENSSON <torbjorn.svensson@st.com>
2021-02-20 15:22:22 +01:00
Alexander Fedorov
73491800ac Align CDT.setup with target platform
Add com.sun.jna* 5.6.0+
Switch to jakarta.xml.bind
Require javax.activation 1.2.2+

Change-Id: I28a1c7c7be085e9970ea94e5f44ce0a5b7f7cc6e
Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2021-02-09 20:52:21 +03:00
John Dallaway
c66d331a95 Bug 570992: Fix templates extension point documentation
The "filterPattern" attribute is used to filter templates by language
ID, not by build configuration ID.

Change-Id: Idd89fffc2ec3aefc3c1421b4cbbc7e1a19dbb7f3
2021-02-07 04:03:44 -05:00
Victor Rubezhny
20598975f4 Bug 569172 - Debug framework should provide way to report unit test results to the generic "test report" view
Assign acorrect version for  org.eclipse.cdt.unittest.feature

Signed-off-by: Victor Rubezhny <vrubezhny@redhat.com>
Change-Id: I642655f13e6a2cd2df5b4e23d7713ca749a4eccd
2021-02-05 12:42:50 +01:00
Jonah Graham
afee900b24 [releng] Fixup API error due to missing verion bump
Change-Id: I149aeb8f148f0f223e7ec09a73e153df5be68836
2021-02-03 09:50:12 -05:00
Jonah Graham
9c370cfcf0 Bug 521515: Update to JNA 5.6.0
Change-Id: Id56f6366e0bbaa33b1d0967cd64487fc173b3833
2021-02-02 21:14:08 -05:00
Victor Rubezhny
3e485f66d1 Bug 569172 - Debug framework should provide way to report unit test results to the generic "test report" view
Publish org.eclipse.cdt.unittest.feature

Signed-off-by: Victor Rubezhny <vrubezhny@redhat.com>
Change-Id: I1bdfed66b4637f9e4063cc7bde5caeccb9d329ad
2021-02-02 19:06:04 +01:00
Jonah Graham
64e21a93c4 Bug 499777: Flaky and slow test tags
to exclude flaky and slow tests from gerrit runs and main build
tests can be tagged as such. See BTreeExpensiveTests for example
of a slow test and Bug_303953Test for an example of a flaky one.

The root README.md has a few notes on converting tests to JUnit5
and adding annotations to mark them slow or flaky.

Change-Id: I03a4004112e6a500d8ec2771d68f14f7dc5f67fb
2021-02-01 11:32:58 -05:00
Jonah Graham
5c82be881d Bug 569839: Provide a new JUnit5 base and utility classes
Change-Id: I8682f4702cfa0cad7d0452ca48d1ab74eeb1dbdb
2021-02-01 11:32:53 -05:00
Fabrizio Iannetti
3b680c8d8e Bug 570775: Add pop-up action to invert terminal colors on the fly
New action to temporarily invert the terminal colors,
the preference setting is not altered by this action.
Only the active terminal is affected.

Change-Id: Idc01163838539c2ba5699556951c1742bbf07ad6
Signed-off-by: Fabrizio Iannetti <fabrizio.iannetti@gmail.com>
2021-01-30 12:08:50 -05:00
Jonah Graham
50f2172fba Bug 569172 - Debug framework should support generic "unit test" view
Add new target platform dependency to cdt.setup.

Change-Id: I0af034d1fc19e7fe143b33742634f3f01905d41f
2021-01-28 12:37:13 -05:00
Jonah Graham
b175f972e0 [releng] Fix newlines
This file has \r newlines only before.

Change-Id: I1825516a701b960613f4c3a1418b36177a4f28a1
2021-01-28 12:37:12 -05:00
Fabrizio Iannetti
dabe283c27 Bug 570588: Some Private CSI sequences are not correctly interpreted
CSI commands should be recognised as private if the first
character is one of <=>? and not only ?

Change-Id: Idca36ba4dc6bb1bcb3d10f921b2315876769ea5b
Signed-off-by: Fabrizio Iannetti <fabrizio.iannetti@gmail.com>
2021-01-23 15:19:54 -05:00
Michael Uhl
28589d32a3 Bug 568957 - Header indexed with missing significant macros on multiple
headers with pragma once syntax

Change-Id: Iada2129ec7bf4f239ffdaa13ca3e33e322aa1025
Signed-off-by: Michael Uhl <Michael.Uhl@NashTech.Com>
2021-01-22 11:58:45 -05:00
Santiago Gil
27b9002fbc Bug 562407: Avoid save of register groups before init done
Added a boolean which is set to true when groups are
successfully read on startup so that shutdown doesn't
attempt to save an empty register group list

Change-Id: Idfff94afbd6b9eb73d01dadbeb8a8fd24c83a19a
Signed-off-by: Santiago Gil <santipoborina@hotmail.com>
2021-01-19 09:18:53 -05:00
Victor Rubezhny
f7a3b1b066 Bug 569172 - Debug framework should support generic "unit test" view
A C/C++ test runner client demonstrating the functionality of Unit
Test View bundle.

See: https://git.eclipse.org/r/c/platform/eclipse.platform.debug/+/171116
for Unit Test bundle proposal

Also-By: Mickael Istria <mistria@redhat.com>
Also-By: Alexander Kurtakov <akurtako@redhat.com>
Signed-off-by: Victor Rubezhny <vrubezhny@redhat.com>
Change-Id: I93bc368549a640906a198e04456d5f9fd87eedb5
2021-01-15 21:52:03 -05:00
Jonah Graham
a360682dba [releng] Fix case where copyright year end == start
Change-Id: I4e96c000a307003946195823fce1f7322b3a4a01
2021-01-15 21:52:03 -05:00
Simeon Andreev
2962203bd2 Bug 569581 - Rethrow IOException in ElfParser.hasInterpProgramHeader()
This change adjusts behavior in ElfParser.hasInterpProgramHeader()
(added for bug 512822) to throw an IOException that occurred, as opposed
to logging the exception and continuing. This excludes exceptions thrown
by Elf.getSections() indicating that ELFhdr.ELFCLASSNONE is read; a new,
more specific IOException type is defined to allow handling this as a
special case.

A "generic" IOException indicates an I/O problem with the binary. E.g.
the binary can be deleted by the user or by Eclipse, while being visited
in CModelManager. If hasInterpProgramHeader() returns instead of
throwing, more problems can occur "later on".

Change-Id: I8852d9cbaa17dc97f668bb1666e9b046bbde1fca
Signed-off-by: Simeon Andreev <simeon.danailov.andreev@gmail.com>
2021-01-14 09:10:28 +01:00
Jonah Graham
ae1fc558bd [releng] Dash jar location moved
Change-Id: I3eb05563a70b7c1895e7d2cacc66617ec5a94b4d
2021-01-11 20:37:52 -05:00
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