1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-08 18:26:01 +02:00
Commit graph

35106 commits

Author SHA1 Message Date
Jonah Graham
c378a6747a Bug 565836: Add aarch64 for standalone debugger
Change-Id: I3cbbbf98778870ad2be30318a44575adf0308f2e
2020-09-03 21:32:38 -04:00
Torbjörn Svensson
5249144c8c Bug 521515: Build ppc64le libraries on HIPP
Change-Id: Idd05e27e02b712a0eb6940ebf90a201509140681
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-09-02 20:27:03 -04:00
Alexander Fedorov
26e994af15 Bug 566492 - Add CDT LSP to CDT Optional features
Add "LSP4E C/C++ Support" to "CDT Optional Features"

Change-Id: I88d554b5bf614649e6763e192e151a90b33da545
Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2020-09-02 13:47:57 -04:00
Alexander Fedorov
4a3e046dda Bug 536320 - Do not show LSP4E diagnostics in the C++ editor
Requires https://git.eclipse.org/r/c/lsp4e/lsp4e/+/168414
Allow LS to be started
	from "Generic Editor" only
		and
	if ".settings/org.eclipse.cdt.lsp.core.prefs" has "prefer=false"
actually this blocks LSP from launching until user will configure it
explicitly.
UI to configure for workspace and project.

Change-Id: I7104d21f90380a5de7ccae157ea4299e0558a27c
Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2020-09-02 13:44:53 -04:00
Alexander Fedorov
718088b907 Bug 566610 - CDT 10.0 stream should use LSP4E 0.16.0 release
Use https://download.eclipse.org/lsp4e/releases/0.16.0/ instead of
snapshots for CDT 10.0 stream.

Change-Id: I163c3de4723facb45eb23a548174e8a4cd6c0e5c
Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2020-09-02 18:54:36 +03:00
Martin Weber
0ccb310931 Print build-start and -end message to consoleInfoStream.
This make messages stand out more prominently in the build console.

Change-Id: I180a7eb6631870004cca94a7f1d2c8bda5b044f8
Signed-off-by: Martin Weber <fifteenknots505@gmail.com>
2020-09-01 14:24:36 -04:00
Martin Weber
afe13d32bf Bug 566385: integrate cmake build-output parser (code cleanup)
Change-Id: I6fe6f728c45316e79875201b4071f75a8016393e
Signed-off-by: Martin Weber <fifteenknots505@gmail.com>
2020-09-01 14:23:57 -04:00
Martin Weber
a6baf50a47 Bug 566385: integrate cmake build-output parser
Change-Id: Iaf6b6f6e653571f666474e096aec4cb29893088c
Signed-off-by: Martin Weber <fifteenknots505@gmail.com>
2020-09-01 14:23:57 -04:00
Jonah Graham
b73f02b4d1 Bug 565836: Include plugin.properties properly for aarch64
Basically a simple typo fix

Change-Id: Id7dea86de6eab4c923da8809e18ae48c507b2732
2020-09-01 07:39:58 -04:00
Jonah Graham
1562080a3c Bug 553674: Make Binary parsers and related classes Autocloseable
And prepare to make it an error in CDT to not have properly handled
an Autocloseable which means a number of fixes to make sure handles
are closed.

Change-Id: I36cd46017bbce6ece1703d688d7754e523eca68f
2020-08-31 21:32:32 -04:00
Jonah Graham
7818f6e494 Bug 558809: Handle cases where Oomph corrupts \0 char in preference
Some CDT preferences use \0 as a separator in preferences. Somewhere
in the Oomph preference synchronizer stack there is, or was, a place
that failed to escape/unescape preferences with encoded \0 properly.

CDT would then fail to parse the preference and an exception would
be raised, causing code completions and the editor to be broken.

This patch hardens the CDT code to:
(1) Allow an escaped \0 to be used as a separator on
    read (Oomph uses ${0x0})
(2) Handle NumberFormatExceptions gracefully. In this case that means
    showing user a pop-up that their completion preferences
    are empty and offering to reset them, or edit them in preference
    page. This UI logic already existed, so all the new code
    has to do on failed parse is return a list of all disabled
    completions.

Change-Id: Ibf3b05c0855bb96c195ca43139a50c27a2a90c7e
2020-08-31 20:06:10 -04:00
Jonah Graham
cb4c20c6ab [releng] Update comparator repo to 9.11.1 release
The contents of p2 repo are the same, this URL is just the permanent one

Change-Id: Ief8e6e1eb724f0aa5c8ab4eb99ff1f74d9204077
2020-08-31 18:24:33 -04:00
Jonah Graham
6df6856f67 Bug 561389: Correctly mark package o.e.t.t.ui.internal as x-internal
Change-Id: Ia2675cf9cf51ac0135bea3b492a7961eed3f4ceb
2020-08-31 16:24:41 -04:00
Jonah Graham
1413fd90e7 [releng] Automate running of dash licenses (fixup)
Run maven with MVN to allow Jenkinsfile to set default maven options

Change-Id: I42454620e54c57ba3e08a5a33c86b9b48e0cd55d
2020-08-31 16:13:32 -04:00
Jonah Graham
98d1b9b599 [releng] Automate running of dash licenses
Change-Id: Id7e3ed46fc2989438a3fed472bb75c8cb7c83955
2020-08-31 16:09:48 -04:00
Jonah Graham
48b6c4c946 Bug 566530: Remove deprecated launch tabs from CDI days
Change-Id: Ia7b02b4e767e4619c3d8aaced7780d05621b26a4
2020-08-31 13:55:02 -04:00
Jonah Graham
d75b778f6f Bug 517813: Remove long since deprecated Multi Launch
The multi launch was moved to Eclipse platform 3 years ago,
this change removes the now deprecated version that was in CDT.

Change-Id: Ida3c4873b182a9e84955ac187ca9525703dc0298
2020-08-31 13:45:43 -04:00
Jonah Graham
2c94bb09a0 [releng] CDT target platform update for RC1
Use Platform 4.17 RC1 and update CDT's self referenced version

Change-Id: I077ba137bac608bac042e4b27746162b4f01480c
2020-08-31 13:31:43 -04:00
Jonah Graham
78c7962787 Bug 560330: Document \$ escaping change in API doc
This makes it consistent with how environment variable uppercasing
was documented as they are similar.

Change-Id: I580f599e77db08285753d47c62f46120abd8f9bd
2020-08-31 10:20:08 -04:00
Jonah Graham
a83e8924ba Bug 563494: Remove freemarker java11 workaround
Change-Id: I7fc259ff13f7d44b1aa29c6842db6d744cffcc9e
2020-08-31 09:07:10 -04:00
Jonah Graham
69323c8af8 Improve some of the documentation of removed deprecated API
Change-Id: I952e0a0ae814cbdbc074cf2c12ed3d33a4a6e493
2020-08-31 09:05:18 -04:00
Jonah Graham
88b2322c38 Bug 551817: Fix legal docs - and automate their checks
Change-Id: I6f97927f0df64a28e71a2d7ab4c55b609794f751
2020-08-30 23:15:59 -04:00
Jonah Graham
53f9a12c0d [releng] Remove invalid natures and builders from features
Change-Id: I7913cbfe3ecf7da9cbe402e42745911d37de4363
2020-08-30 23:15:59 -04:00
Torbjörn Svensson
f7c173377d Fixed potential NPE
buildInfo is null in the case that the node list is empty.

Change-Id: I165ec31eeeab57e1eb7bed0268d0f83c70d6e0f7
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-08-30 23:09:12 -04:00
Torbjörn Svensson
5d91f6f847 Ensure file is closed
Removed useless catch block that just rethrows the same exception

Change-Id: If3e4faea1ed889d4f7b39a7cff786e0aa9a6803d
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-08-30 23:08:33 -04:00
Torbjörn Svensson
222a963f44 Minor updates to bundles to have proper translations
* Bundle-Vendor should be Eclipse CDT
* Added missing Bundle-Name attribute for some bundles
* Synced MANIFEST.MF and properties file for keys

Change-Id: I14e3b1cc35e7ae88a1585d8ab19cede682bd4fce
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-08-30 23:03:53 -04:00
Jonah Graham
0631233154 [releng] Add missing copyright headers to releng scripts
Change-Id: I68cdf1f8adc1e59f47bb610c8aaeb583ca6cf39b
2020-08-30 20:25:40 -04:00
Jonah Graham
7ed4974c39 Trivial - fix copyright year
Change-Id: I4ac2021ecc83f305884815a482e3640ae3f3b03a
2020-08-30 20:25:04 -04:00
Jonah Graham
6233337560 [releng] Split up check_code_cleanliness script
As more checks have been added it has gotten a little unweildy.

The new script "do_all_code_cleanups.sh" now does most of the code
formatting checks.

Change-Id: I65fd888c88e1d7e470ed5621cee18ff3bf6680b4
2020-08-30 20:09:50 -04:00
Jonah Graham
0cb1f7482a Bug 566511: [releng] Add missing UTF-8 encoding for all CDT projects
Includes updates to code cleanliness script

Change-Id: Ic495124285e3e002993f34dc12be5ad7337fe13b
2020-08-30 20:02:41 -04:00
jantje
4fd6a0f49f bug 560330 remove \${ "to not resolve" functionality
This change  causes incompatibility for users using the \${ to not
expand environment variables.

Tested with sloeber (700+ projects)

Change-Id: If327f055a41c309c475e17e0239a30e7518c3b23
Signed-off-by: jantje <eclipse@baeyens.it>
2020-08-30 16:42:17 -04:00
John Dallaway
7c57855e2f Bug 566462: Document deprecated GDB hardware debug API removal
Change-Id: I28458cae0513dbfe4fcab59f882f8f922b63bceb
2020-08-30 15:59:00 -04:00
Martin Weber
44ebe33262 Bug 566385: add cmake build-output parser.
Change-Id: I37af477454a7c587bcfdc470e9e54c6b3aa08a14
Signed-off-by: Martin Weber <fifteenknots505@gmail.com>
2020-08-30 13:18:26 +02:00
John Dallaway
eee4440071 Bug 566462: Eliminate deprecated network-oriented API
Device contributions should now extend DefaultGDBJtagConnectionImpl and
provide default connection details in the JTagDevice extension
declaration.

Launch configurations providing legacy connection data (ipAddress and
portNumber) are accommodated at launch and upgraded to use connection
URIs when edited.

Change-Id: I36b5d3e49f1d8f0becf1b898b7a48eb239453f1b
2020-08-29 13:39:54 -04:00
Torbjörn Svensson
4376632208 Fixed "Dead code" compiler warning
Change-Id: Idc18751d1bcd59a8fa49529731e11dce354b925a
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-08-28 21:19:14 -04:00
Torbjörn Svensson
f6016c5e0b Fixed "The value for X attribute is not externalized" warning
Change-Id: Ib2f0d85a0428a1f59cc7ccab6ebb8fd91ffa2a41
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-08-28 21:32:18 +02:00
Torbjörn Svensson
5779b04e6b Fixed "Key X is not found in localization properties file" warning
Change-Id: I467386ce652c67507c9373a669a60dbb8a8f8e2d
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-08-28 21:32:18 +02:00
Torbjörn Svensson
1f069898cf Fixed "Build entries must contain at least one value" warning
Change-Id: I47d8b76bc80f863d034044d2a0e4d9e84a335e29
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-08-28 21:32:18 +02:00
Torbjörn Svensson
cb9249314a Fixed "An entry for plugin.xml is required in bin.includes" warning
Change-Id: I6615465fb74c2e4df812e99cd1e5e8b0ead99de3
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-08-28 21:32:18 +02:00
Torbjörn Svensson
1c448e748e Fixed "An entry for OSGI-INF/ is required in bin.includes" warning
Change-Id: I0c1980995d7c53958067658474ba604bdaedb7a1
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-08-28 21:32:18 +02:00
Torbjörn Svensson
8e42cc8b7b Cleanup of PTY class
Change-Id: If04a3ccbc178040d4929767ef1f4c0f1672dfae9
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-08-28 10:25:08 -04:00
Torbjörn Svensson
38e970a45d Fixed "Unnecessary semicolon" compile warning
Change-Id: I6dc9bad163750f00be7046ebb9c18ae447ab9455
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-08-28 14:09:55 +02:00
John Dallaway
5188547f31 Bug 566462: Eliminate deprecated GDB hardware debug API
Change-Id: Ie0d5fa1beafaa0a203a9f4f043835b401cc6929d
2020-08-28 04:08:20 -04:00
Torbjörn Svensson
07b50ba2a2 Bug 521515: Do not rely on commit date for reproducible builds
As mentioned in
https://devblogs.microsoft.com/oldnewthing/20180103-00/?p=97705,
Microsoft has stopped using the _IMAGE_FILE_HEADER.TimeDateStamp as a
time stamp and rather as a hash of the source files to make the build
result predictable.

Change-Id: I4f4a7b9557330e4c478ef7fb25653144c5b2d4ad
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-08-27 15:42:44 -04:00
Jeff Johnston
2f05a6348e Bug 565142 - Support using CDT in Eclipse flatpak
- add missing @since tag for new CommandLauncherManager
  checkIfIncludesChanged method

Change-Id: Ic1774a464c08ee86ee594c4d80102457f79b0ea5
2020-08-26 15:46:15 -04:00
Alexander Fedorov
0349a8a85f Bug 566421 - CDT LSP should declare server as singleton
Mark "org.eclipse.cdt.lsp.core" contribution as singleton

Change-Id: If39a3b769f11d0cfda94857cc4d5b7bc6fff0df5
Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2020-08-26 22:12:59 +03:00
Marc-Andre Laperle
b87c2a793d Bug 565553 - Improve performance of build command parsers with large number of files
Do not pretty-format *.language.settings.xml files in the workspace
plugin state area. These are not meant to be shared and looked by users
so they do not really need to be pretty-formatted. This saves a lot of
time for large projects with per-file language settings. For example, I
have seen this save 30 sec on a test project during serialization.

Change-Id: I27f8e0cfdc593f084d95bbed7aedb707570f1f6d
Signed-off-by: Marc-Andre Laperle <malaperle@gmail.com>
2020-08-25 23:11:40 -04:00
Victor Rubezhny
2b67c0bda9 Bug 418579 - String index out of range: -8
Signed-off-by: Victor Rubezhny <vrubezhny@redhat.com>
Change-Id: I02763d18fdf8f9715670b671a7f84f9fe06489ca
2020-08-25 16:08:45 -04:00
Jeff Johnston
05c45c0bae Bug 565142 - Support using CDT in Eclipse flatpak
- modify ProcessFactory to prefix commands with flatpak-spawn
  when running under Eclipse flatpak
- add new FlatpakLaunch class to dsf.gdb to do a prelaunch
  of gdbserver and set up remote port settings when debugging
  local C/C++ application under Eclipse flatpak
- add new tab to gdb when running under Eclipse flatpak
  to allow user to specify gdbserver and port number
- add new org.eclipse.cdt.flatpak.launcher plug-in which
  contains a FlatpakCommandLauncherFactory to handle copying
  header files from host to workspace when developing under
  Eclipse flatpak
- add new FlatpakCommandLauncher class which simply extends
  CommandLauncher and can be used for debugging purposes to
  distinguish from regular command launcher
- also add new FlatpakHeaderPreferencePage to allow C/C++ users
  to delete copied headers if needed
- dynamically add the headers preference page from
FlatpakCommandLaunchFactory
  if running under Eclipse flatpak
- add new ICommandLaunchFactory3 to add an interface to check if
  headers have been modified/removed and scanner info refresh
  is required
- add new org.eclipse.cdt.flatpak.launcher-feature
- give higher priority to ContainerCommandLauncherFactory so if
  running on Eclipse flatpak, the flatpak factory won't be chosen
  if both apply (i.e. building in a container but running on
  Eclipse flatpak)

Change-Id: Id68e60c4dd37c4494af10440231ac7b7bbec8d17
2020-08-25 13:45:33 +03:00
Jonah Graham
aa5d565542 Bug 566339: Restore lost bundles to CDT's p2 repo
These were lost accidentally in commit 2bd07a89ca
In the restore version use the core PDE way of including bundles,
rather than Tycho's <iu> extension as we don't need the extended
capabilities and having an editor that works is nicer. See Bug 566340

Change-Id: If78d34737957c322b1d068840fc6f17883857070
2020-08-24 22:26:19 -04:00