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

35709 commits

Author SHA1 Message Date
Moritz 'Morty' Strübe
02d2c81ec9 Bug 579944: Clean up Docker include path code
This patch refactors multiple aspects of the code related to copying
include paths from docker images:
* document code
* extract common code to methods
* reduce indentation by returning early
* support using \\WSL$\... paths

Change-Id: I983d1e9bdfa84aa48928f5ba88df191d56ac0f17
Signed-off-by: Moritz 'Morty' Strübe <moritz.struebe@mathema.de>
2022-05-20 21:08:10 -04:00
Jonah Graham
9a2558bd66 Fix comments with new name for IArglet
Follow on from commit 422835d273 that
refactored IArglet into its current location

Change-Id: I83f5afb8226327ace471cfc80a3d777559f2763f
2022-05-20 13:52:07 -04:00
Jonah Graham
580fea8881 Mark deprecated class for removal
Change-Id: I68da238f7942bd1d2cd898c470f1dfcdba1fb5a1
2022-05-20 11:46:54 -04:00
Jonah Graham
937b4d5798 Bug 579982: More removing of cached Matcher objects
This follows on from 1c404b050d

Change-Id: I764ba6a96aa650f38ef90521b2a67cc87903b2d5
2022-05-20 11:44:03 -04:00
Moritz 'Morty' Strübe
ed59ec722b Bug 579974: Add tooltip to docker connection dropdown
Support the user to find out how to manage the docker connections. This
is not always obvious.

Change-Id: I0f8e49cc3618a5a99e19c8bcec9aa86fd23fae93
Signed-off-by: Moritz 'Morty' Strübe <moritz.struebe@mathema.de>
2022-05-20 12:40:20 +02:00
Torbjörn Svensson
a1794246d5 Bug 579876: Use same bgcolor for occurrence in editor as JDT
Contributed by STMicroelectronics

Change-Id: Ic1bfd9af7d308a8c9b14a9b2f40bbd278a0ceca0
Signed-off-by: Torbjörn Svensson <torbjorn.svensson@st.com>
2022-05-13 10:07:53 -04:00
Umair Sair
7b040db113 Bug 579877 - Slow Threads update for debugging on remote target
Reason:
=======
The problem is that we use '-thread-info' command for each thread and
for each command, a lot of common conversation happen between gdb and
gdbserver for each command.

Solution:
=========
We should use '-list-thread-groups <group id>' instead which provides
the same required information for all the threads and minimizes the
communication between gdb and gdbserver. This command takes lesser time
than the collective time taken by all '-thread-info' commands.

Tested with 2 and 8 threaded application using gdb 7.1 and 11. The gain
is more prominent as the number of threads increases.

Signed-off-by: Umair Sair <umair_sair@hotmail.com>

Change-Id: Ie4824bf110f05d4136697f4e1ecbcc19dcf145a7
2022-05-10 21:49:24 -04:00
Torbjörn Svensson
b86404669a Bug 579876: Make background transparent on icons
Contributed by STMicroelectronics

Change-Id: I51432f72979b7f1d95543ea1f7fcb48c3543bac7
Signed-off-by: Torbjörn Svensson <torbjorn.svensson@st.com>
2022-05-10 17:27:54 +02:00
Torbjörn Svensson
bd268d9f01 Don't assume background is white for disassembly view
The trail in the disassbemly view should have luminance going towards
the background color, that might be different color than white.

Contributed by STMicroelectronics

Change-Id: I9e00e71719cbd1fb40cc5e6de983aacbcb854106
Signed-off-by: Torbjörn Svensson <torbjorn.svensson@st.com>
2022-05-07 20:14:17 +02:00
Torbjörn Svensson
a2e6ef61c9 Bug 579666: Improve dark theme on Windows
On Windows, the TabFolder and TabItem classes does not follow the
themeing in Eclipse. As a result, the tab selectors will be drawn with
the light theme while the rest of the Eclipse UI is in dark theme.

Contributed by STMicroelectronics

Change-Id: I9169c9e01f8c9a3af7b6bb6d1c673a043735e7e9
Signed-off-by: Torbjörn Svensson <torbjorn.svensson@st.com>
2022-05-06 04:38:00 -04:00
Torbjörn Svensson
cc2a904883 Improve dark theme for disassembly view
Contributed by STMicroelectronics

Change-Id: I6699a003e38c61f70d90d2b1856d4b4edc6032fb
Signed-off-by: Torbjörn Svensson <torbjorn.svensson@st.com>
2022-05-05 21:50:49 +02:00
John Dallaway
7357cfd9eb Bug 577263: Eliminate unnecessary command line pattern attributes
We eliminate unnecessary command line pattern attributes that were
overriding the default pattern provided by
org.eclipse.cdt.managedbuilder.internal.core.Tool which now includes
${EXTRA_FLAGS}.

Change-Id: I8c4e8e613599e71e31e390f56319bacfd0329ab2
2022-05-05 11:13:28 +01:00
Torbjörn Svensson
2a669100f0 Bug 577263: CommandGenerator not respected for option value type libs
Contributed by STMicroelectronics

Change-Id: I2c332eb40b6b69aff405c2c7c86cdcd4acaf5d19
Signed-off-by: Torbjörn Svensson <torbjorn.svensson@st.com>
Also-By: Erik Hentschke <erik.hentschke@bachmann.info>
Also-By: John Dallaway <john@dallaway.org.uk>
2022-05-04 12:45:27 -04:00
Jonah Graham
d224fec1da [releng] CDT 10.7.0 M2 dependencies
Note: Due to Bug 579817 we need to consume an I-build to get
a working java.xml bundle.

Change-Id: I60ff7a025855367f7c2dbc7387122d3e379c8677
2022-05-03 21:09:13 -04:00
Jonah Graham
a7d39a80a3 Stop using jaxb's DatatypeConverter
jaxb is not standard anymore, and having a dependency just
for this simple method is overkill.

This is also a workaround for Bug 579817.

Change-Id: Ic0db6e595b8faa9323c26d29f8caedc0ac4b089e
2022-05-02 21:54:12 -04:00
Dominic Scharfe
491333aaa4 Bug 579758 - Codan marker resolution doesn't work with CEditor embedded
in a multi page editor

Adapt editorPart to ITextEditor to support more use cases

Change-Id: I21e367e793bc17da263775b22ed13e82742be10f
Signed-off-by: Dominic Scharfe <dominic.scharfe@coseda-tech.com>
2022-04-26 14:56:54 +02:00
Jonah Graham
290136af02 Bug 579759: Don't auto-open the Modules view
The Modules view does not do much and in most situations is
not particularly relevant to DSF.

Therefore CDT will stop auto-opening it. See details of that
decision from recent CDT call
(https://www.eclipse.org/lists/cdt-dev/msg35170.html)

The view can still be manually opened as any normal view can.

Change-Id: I492cd8311c566ee5749831864a93bf900160d9dc
2022-04-25 17:59:11 -04:00
Torbjörn Svensson
a58a1bdd2e Bug 579756: Add support for prefixed toolchain binaries in parser
The GCCBuildCOmmandParser expects the compiler tool to be exactly what's
included in the pattern, i.e. a prefixed toolchain (for example
"arm-none-eabi-" would not match.

Contributed by STMicroelectronics

Change-Id: I9e6b83509ecac9c382f565e5c7b737d12398a196
Signed-off-by: Torbjörn Svensson <torbjorn.svensson@st.com>
2022-04-25 15:34:13 -04:00
John Dallaway
e16e7ea5cb Bug 535143: Add remote target tooltips and unify nomenclature
Change-Id: I0f85bee4f2fd707ce8e3c6e166acf494680f662c
2022-04-24 17:40:22 +01:00
Torbjörn Svensson
5c15ff72a2 Ensure project is removed after test
Contributed by STMicroelectronics

Change-Id: I2d944bb2d2e2704bcc248d6058475d247318f327
Signed-off-by: Torbjörn Svensson <torbjorn.svensson@st.com>
2022-04-24 12:08:17 -04:00
John Dallaway
38ff9d67ea Bug 535143: Add Black Magic Probe definitions
Change-Id: I4b019f866fe71ac3377a535c4c45d6345a30ceaa
2022-04-22 16:43:54 +01:00
John Dallaway
90627bfa83 Bug 535143: Support multiple remote debug protocols
Change-Id: If3362e3742aa05a8577faa217b46c41dcddb792f
2022-04-22 10:56:43 +01:00
Jonah Graham
a1c02e2cce [releng] Apply auto-clean of save to all files with Eclipse 4.23
This mostly is using diamond operator, but includes
adding missing @Override and organizing imports and
applying formatting improvements in the JDT formatter.

Change-Id: Id91cbff33b0a039cc5121945ffbc407ecba45866
2022-04-19 20:13:15 -04:00
Jonah Graham
148ae40d0f [releng] Make CDT Clean-up profile match Editor on save actions
The CDT Cleanup profile had a bunch of extra cleanups applied to it, this
prevents running the CDT cleanup profile manually to simulate running the
save actions on all Java files

Change-Id: Iad491e1258a4ba90d81d1457ea0f6779e3663e38
2022-04-19 20:13:15 -04:00
Jonah Graham
ad1473feef Bug 579666: Mark parts of AbstractPage API for deletion
Change-Id: Iddade3b1a1fb848703d87ee9d1d3233bd6ab55ed
2022-04-18 19:27:48 -04:00
Torbjörn Svensson
96d8c32368 Prevent NPE in property change callback
Contributed by STMicroelectronics

Change-Id: I7be0660541bfe85cd0c371eddeb7ef14eb2fe75d
Signed-off-by: Torbjörn Svensson <torbjorn.svensson@st.com>
2022-04-17 17:27:24 -04:00
Jonah Graham
5e5373982f Cosmetics.
Change-Id: I7b563198e5b0b5eb58d3d270b134afa62e9b0dc5
2022-04-17 15:05:08 -04:00
Jeff Johnston
7991361258 Bug 579668 - Regression in Docker header file support
- fix CBuildConfiguration.getScannerInformation() method to look to
  see if the toolchain is a ContainerGCCToolChain but the include paths
  have nothing pointing to the special HEADERS directory for copying
  over Image headers to the host in which case do a fix-up by
  calculating the scanner info again and massaging the include paths
  as needed

Change-Id: If6f76ef6ffb1bc5958377c565e4847989d5de0db
2022-04-14 20:47:32 -04:00
Torbjörn Svensson
7581f79346 Bug 579687: Reduce concurrent commands to 1 for GDB 9/10/11
Since the fault in GDB is triggered when there is more than one MI
command sent before the response for the prior one is processed, limit
the number of concurrent commands to 1 for the affected versions.

Contributed by STMicroelectronics

Change-Id: I5b47fc64d90eefdc44c1d2ead0da99b35aadfa39
Signed-off-by: Torbjörn Svensson <torbjorn.svensson@st.com>
2022-04-14 18:27:12 -04:00
Torbjörn Svensson
f5446675ec Bug 579666: Mark fileds and internal class for removal
This is the first step towards fixing the dark theme on windows.
In order to fix the AbstractPage class, an API breakage is required and
this will pave the way to let any sub-classers know that things are
about to change. From my point of view, the marked fields and the
InternalTab class should never have been part of the API as they are
internal to the AbstractPage class that contains proper API methods.

Contributed by STMicroelectronics

Change-Id: Icfea8c963727718d4dc99e8df916674384dcb532
Signed-off-by: Torbjörn Svensson <torbjorn.svensson@st.com>
2022-04-14 05:42:04 -04:00
Jonah Graham
7400e22b1f [releng] Update all legal files with update_legal_files.sh
The about.html was changed as per
https://gitlab.eclipse.org/eclipsefdn/it/websites/eclipse.org/-/issues/90

Change-Id: Ied879279460a8fc610630fc26794ab3df9eae39f
2022-04-13 13:42:35 -04:00
Jonah Graham
a4480e4db6 [releng] new script to update all legal files
Change-Id: Ica07264a13015e81237e71f3b9cd3f3d5f20183b
2022-04-13 13:15:06 -04:00
Jonah Graham
1f0451c163 [releng] Prepare for 10.7.0 with version bumps
All the about.html files are updated, so every bundle that hasn't
already had a bump in 10.7 needs one now

Change-Id: I6143d2fbe77a58a3a6d2f4a226d96087117f9ac1
2022-04-13 13:15:06 -04:00
Jonah Graham
2402a0101e Bug 579669: Ignore .settings in some tests
In Eclipse 4.24 .settings is created all the time for new projects,
for CDT test projects which have the root of the project being the source
root this means that .settings is now returned in various places.

This patch removes .settings from results before checking results against
expected results.

Change-Id: Id02e9b8f25b109ed289d22ffb526ecceb747d4f7
2022-04-12 14:30:37 -04:00
Jonah Graham
e954ff6fe1 Bug 579669: Remove testProject in finally block
These tests were not cleaning up properly if they failed.

Change-Id: Ic649335dd439a1cc29dd2784b203158e49d4bb1c
2022-04-12 13:41:36 -04:00
Torbjörn Svensson
af2b4aba4b [releng] Add missing project files for o.e.remote.telnet.core.tests
Contributed by STMicroelectronics

Change-Id: I3fb80c09b10de227df42a7bb41aa81b6b94cab46
Signed-off-by: Torbjörn Svensson <torbjorn.svensson@st.com>
2022-04-12 18:08:51 +02:00
Torbjörn Svensson
ffb319ba61 [releng] Correct version increment due to new API
Contributed by STMicroelectronics

Change-Id: I9aad65f862f4681c531baa0ca94b312f9c1774af
Signed-off-by: Torbjörn Svensson <torbjorn.svensson@st.com>
2022-04-12 08:18:45 -04:00
Jonah Graham
04296f1594 [releng] In terminal only profile consume o.e.remote locally
This change should have been done when o.e.remote was added to
CDT but was overlooked until the target platform was updated
to remote old o.e.remote from it.

Change-Id: Ia4238b5b85b42aa32adeeaad23b6f135919652fe
2022-04-12 08:05:46 -04:00
Torbjörn Svensson
c5f0f85be0 Avoid NPE and redrawing disposed widget
Contributed by STMicroelectronics

Change-Id: I753844ff035bc6b3511c1e283e80e37bd547b6e7
Signed-off-by: Torbjörn Svensson <torbjorn.svensson@st.com>
2022-04-12 03:29:30 -04:00
Jonah Graham
bc8c94fbe6 [releng] Update to Tycho 2.7.1
2.7.1 is required to consume PGP keys successfully.

Change-Id: I2ca86728b9118943fcd364656861dc8e7170145a
2022-04-11 17:07:30 -04:00
Jonah Graham
5208763758 [releng] Update to Tycho 2.7.0
Change-Id: I6395a1d4c68b8a796f686f48d09193f96b0ae08f
2022-04-11 17:04:26 -04:00
Jonah Graham
5c4d54df1a [releng] Update comparator repo to 10.6.0
Change-Id: Ie4e5bc90a41bb6e47cd34afb42126e1934fcc042
2022-04-10 20:55:36 -04:00
Jonah Graham
e8d924bb9a [releng] Bump versions for 10.7.0
Change-Id: Ibada1ef26f47f4238ae64f53fb67a73125534347
2022-04-10 20:55:36 -04:00
Jonah Graham
acfd3c5179 [releng] Bump doc generator to new version
Change-Id: I505e3a059053d6a40951f0a365aebbbe49f24032
2022-04-10 20:55:36 -04:00
Jonah Graham
16872dd142 [releng] Prepare for CDT 10.7.0 M1 / 2022-06 M1 (target platform)
Change-Id: I56f50431268a64d63fd6e6dfdb64c0e27c064f8e
2022-04-10 20:55:36 -04:00
Torbjörn Svensson
ca92f0243e Added dark theme colors for build console and editor
Editor supported dark theme except for inactive code blocks like
  #ifdef
  ...
  #endif

Contributed by STMicroelectronics

Change-Id: I192d76136946a6e4dceaba99a31eb42f7df4c584
Signed-off-by: Torbjörn Svensson <torbjorn.svensson@st.com>
2022-04-06 12:23:55 +02:00
Alexander Fedorov
14405fbb0e Switch from deprecated LanguageServerWrapper#getServer
Use LanguageServerWrapper#getInitializedServer instead

Change-Id: Ia20ef12dd47e8f8b111e5f8877f8a7815dac0e36
Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2022-04-05 12:19:05 -04:00
Alexander Fedorov
9247284cdc Bump version for org.eclipse.cdt.lsp.core
Required for https://git.eclipse.org/r/c/cdt/org.eclipse.cdt/+/192490

Change-Id: I27b1bb91861f5e63d23c84762f5826c40b7d8f52
Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2022-04-05 18:05:40 +03:00
Torbjörn Svensson
8ddef84fe8 Bug 579542: [hover] Backport changes from JDT to CDT
Over the years, there have been a few changes to the
ExpressionInformationControlCreator class in JDT that was never
backported to the CDT version of the class.

Below is a list of JDT commit id's for the changes that are ported with
this change:
* cdcbfc3d91770a370336a7e48fff3e33edcaab39 - Fix bitwise to boolean and
* eab4ed938be7938ecd72592249639084638a3933 - Dispose the context
* ce04ec5c162ac64796da816f4abfa5f415756382 - Set correct themed colors

Contributed by STMicroelectronics

Change-Id: Ib4cc1e65c796d811c84859f7ccb05940934e2890
Signed-off-by: Torbjörn Svensson <torbjorn.svensson@st.com>
2022-04-05 14:23:10 +02:00
Torbjörn Svensson
8c021b181f [releng] Increment sequence number to allow PDE to pickup the change
Contributed by STMicroelectronics

Change-Id: I28853f6a791f622b588abe6d962598c31b17d600
Signed-off-by: Torbjörn Svensson <torbjorn.svensson@st.com>
2022-04-01 19:59:38 +02:00