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

35735 commits

Author SHA1 Message Date
Jonah Graham
351be05b48 FAQs migrated from wiki
This is the User FAQ (which had a bunch of dev FAQ entries already)
merged with the Developer FAQ and a few other related pages.

The the wiki entries for full history:

- https://wiki.eclipse.org/CDT/User/FAQ
- https://wiki.eclipse.org/CDT/Developer/FAQ
- https://wiki.eclipse.org/CDT/Developer/Code_Snippets
- https://wiki.eclipse.org/CDT/Developer/FAQ/popupMenu
- https://wiki.eclipse.org/HowTo_use_the_CDT_to_navigate_Linux_kernel_source

Change-Id: Ia26c31a8a6045eeda64bcc486377b7e6abe04d13
2022-08-04 12:23:12 -04:00
Jonah Graham
1c8c96c239 Move the disable intro ini out of root of repo
The root files in GitHub are a bit more prominent, so keep
that area clean and move this special ini to a subdir.

Change-Id: I12d95727e9dad29ebe4f50d47faa9e98753a52bc
2022-08-04 12:23:12 -04:00
John Dallaway
7c6bd5bdcb Bug 580441: Accommodate deleted folder of source files
Eliminate ResourceException by avoiding processing a deleted source
folder resource as a modified resource.

Change-Id: Icfa10040d4d3c6c06b2a4c040e7b632e94dff324
2022-07-26 08:22:58 +01:00
Torbjörn Svensson
96839a029d Bug 580259: Not all remote session have a connected process
Contributed by STMicroelectronics

Change-Id: Idec88f4bf0cbc8326bf19b9f081af9f9f9d437e2
Signed-off-by: Torbjörn Svensson <torbjorn.svensson@st.com>
2022-07-21 04:47:09 -04:00
Jonah Graham
2481f398e0 [releng] Rebuilt natives for updated Java
java 17 is now the default, and that means that a new hash
is created by reproducible_build_wrapper.py due to the changed
path for includes to the Java 17 include directory.

Nothing else about the binaries has actually changed.

Change-Id: I36398b84cc5fe20cd1d0f58f52dfee4737e913f8
2022-07-19 15:51:41 -04:00
John Dallaway
cb8a85596c [releng] WWD releases now require Java17, downgrade WWD version
Change-Id: I6476d206252fbbb7de38a1a302d3544ab41bb40a
2022-07-12 15:13:02 +01:00
Mat Booth
5e4a66b0af Bug 580178 - Unable to stop build process from launchbar
Switch from the standard Java ProcessBuilder to the CDT CommandLauncher
for new style core build projects.

The CommandLauncher uses a more sophiscated mechanism for watching the
spawned process allowing us to interrupt the process when the user hits
the stop button on the launchbar by properly listening to a monitor.

The change adds new API to CBuildCongifuration that takes a progress
monitor, and changes all the affected build configuration types to use
this new API.

Change-Id: I0c4225616ad8331c2cea28bcb502028455a8ea71
2022-06-30 12:34:16 -04:00
Davin McCall
4a956060cd Bug 580201 - narrowing for constexpr evaluation of builtins
Implement narrowing of argument value (in constexpr context) for various
builtins.

Change-Id: I428cc789358638bf3796ea706f459032c8be10a1
2022-06-28 19:43:05 -04:00
Jonah Graham
b1011b0a82 Bug 580248: Allow widget baseline to be less than font baseline
The removed assertion was overly harsh and some combinations of fonts
and text meant that the assertion was being hit. This code
was based on LineNumberRulerColumn (platform.text) which has long
since removed the assertion - see
3e70d44d64
for the removed assertion.

Note that this change simply removes the assertion and does not
address all the possibilities of mixed fonts. I suspect that there
may be some (hopefully) small drawing errors if such mixed fonts
are used. This code (unlike platform text) will continue to
assume all lines are the same height.

Change-Id: I3801b05c96e2784aabe53b3a503dbdb86e6e10c0
2022-06-27 15:36:16 -04:00
Jonah Graham
98d375756a Cosmetics.
Change-Id: I0e9468bcb0f16d40e1136039fa221ec52d255f11
2022-06-27 15:36:16 -04:00
Jonah Graham
b803ce0a3d [releng] Docker snapshots now require Java17, downgrade Docker version
Change-Id: I14df686bc1a601187b77184fb402a48cd32d040f
2022-06-26 21:17:41 -04:00
Jonah Graham
864b003806 [releng] PDE does not properly resolve dependency without extra import
Some changes happened in platform that cause PDE to not resolve
properly. Tycho does, so our builds have been ok, but in the dev IDE
there has been a problem.

https: //github.com/eclipse-equinox/equinox.bundles/issues/58#issuecomment-1156571374
Change-Id: I1fdde377f799ad1d83018c8a70e1acbf810c80bc
2022-06-15 10:56:22 -04:00
Jonah Graham
fd6c953023 [releng] Release url for eclipserun
Change-Id: Iac4704d54fd8bce6e1fe30118d31083836a7fd82
2022-06-15 10:14:51 -04:00
Jonah Graham
793af86603 [releng] Released dependencies of 2022-06
Change-Id: Ia6a0c10c60075d9c7e5ef878db51bd767e5656de
2022-06-15 09:38:59 -04:00
Jonah Graham
059f5ee63f Bug 580045 - Better error message for compiler built-ins
Change-Id: Ib6c99531fea024a56498cf8e6e63fadd7d7f9c48
2022-06-08 14:03:09 -04:00
Jonah Graham
b9dd4673a7 [releng] Update to 2022-06 RC2 dependencies
Change-Id: Idcd66f7e250790e904ccc7d3f0bc10aaf1eea093
2022-06-08 13:02:42 -04:00
Jonah Graham
815b3f9a92 Bug 580045 - Display an error when reused launcher causes race condition
This reverts commit d01a15f013 and
fixes marker creation too.

Change-Id: I0d391c6df9ac4b17f3e5c8b6e87d5a7991fdc669
2022-06-08 12:49:12 -04:00
Marco Stornelli
b390885211 Bug 580062 - Self assignment check fix
Fix for false positive error in assignment operator checker
when a noexcept specifier is used.

Change-Id: If82788cda4a37af1c628a937a6960f59de6b0f5b
2022-06-03 09:30:53 -04:00
Jonah Graham
a60ea13d40 [releng] WWD snapshots now require Java17, downgrade WWD version
Change-Id: If312d62984fd0560a691f6fbcea975123073bad1
2022-06-03 08:52:36 -04:00
William Riley
c678c76a40 Bug 580009 - Avoid rare NPE due to folder info not being loaded
Guard against NPE. Full cause needs to be investigated but with this
check the behaviour is no worse than before in these cases

Change-Id: I27ed2cd915e21fca2ef07335820d9e2496c1c51d
2022-05-31 15:34:50 +01:00
Jonah Graham
450dbf0d57 [releng] Update to 2022-06 RC1 dependencies
Change-Id: Iad4f44060d3b913a648a598a9067ba47e8f19f48
2022-05-30 18:28:28 -04:00
Davin McCall
7e59306985 Bug 580037 - constexpr evaluation of additional builtins: ctz, etc
Provide constexpr evaluation for: __builtin_ctz, __builtin_popcount,
__builtin_parity, __builtin_abs, and the variants which take a long int
or long long int.

Change-Id: I6088e2d41a161059ce0a64443a1d1126952ff905
2022-05-30 18:18:30 -04:00
Martin Weber
d01a15f013 Bug 580045 - Spurious java.lang.IllegalThreadStateException: Process not Terminated in o.e.c.jsoncdb.core.CompileCommandsJsonParser
Signed-off-by: Martin Weber <fifteenknots505@gmail.com>

Change-Id: I898b07dca92f47ec7315da3380231b818349139c
2022-05-30 22:45:04 +02:00
William Riley
133c81e979 Bug 580009 - Resolve superclass for tc level options in rc configs
Change-Id: I03093b687bc36610ab7cf83d7e75401ac7a4fdfe
2022-05-27 11:34:06 +01:00
Davin McCall
1ec4ae52c1 Bug 579934 support constexpr evaluation of __builtin_ffs[l,ll]
Change-Id: I103a4d0a7958d6172eb2b05379c8eec40369526c
2022-05-25 11:43:22 -04:00
Jonah Graham
9b05a213eb [releng] Update to 2022-06 M3 dependencies
Change-Id: I138dccb36f84975f38b2f8123e24d5ad1714e9f1
2022-05-24 13:58:13 -04:00
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