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

35106 commits

Author SHA1 Message Date
Jonah Graham
125afa92dc Bug 563455: Always return same instance of CElementImageDescriptor to platform
Because of a bug in the platform implementation of equals/hashCode under
some circumstances, we can workaround the problem by returning
the same instance of CElementImageDescriptor when the objects are equal().

Change-Id: I6ff15cffa4b48080dcc6c9a023622edf4ae2d497
2020-05-31 17:30:21 -04:00
Jonah Graham
d70af18897 Bug 558284 - Temporarily disable docker plug-in using changed API
See https://bugs.eclipse.org/bugs/show_bug.cgi?id=558284#c38

Once the underlying issue in Bug 558284 is resolved this needs to be
reverted.

Change-Id: I1b052e701c2655eeac634bfb759c778421fd242b
2020-05-30 18:19:15 -04:00
Jonah Graham
cd0f01a5be [releng] Save baseline-compare-and-replace.log all the time
We have had sometimeouts running the baseline-compare-and-replace,
so save the log all the time.

Change-Id: I0e0d98c2f27dbce0f46f15757959e70a13fb53c3
2020-05-27 16:50:54 -04:00
Jonah Graham
3ef8f2c844 Bug 563280: Set bundle version numbers according to policy[1]
Note - these bundles aren't actually published, so they are not
actually part of compare and replace checks. But if we are going
to increment version numbers, they should be incremented following
the policy as if they were published.

[1] https://wiki.eclipse.org/Version_Numbering

Change-Id: I01c815b0ae075d704b4bae9aef666cc13d98161c
2020-05-25 16:46:21 -04:00
Jeff Johnston
c7581e5bf2 Bug 542701 - NPE at LaunchConfiguration.getLaunchManager
- add new logic to ContainerTypeProvider to use a JobGroup with
  maximum 1 thread so jobs from this class are never run
  at the same time
- change ContainerTypeProvider.getStatus() to wait until there are no
  scheduled, active, or cancelled jobs in the JobGroup
- change ContainerLaunchConfigurationDelegate.finalLaunchCheck() to
  create a fake launch target and call LaunchTargetManager.getStatus()
  which will eventually call the new ContainerTypeProvider.getStatus()
- fix NLS warnings in ContainerLaunchConfigurationDelegate

Change-Id: Icad11c5814dd8ee7fac99a41d74329ce65907a38
2020-05-25 10:33:20 -04:00
John Dallaway
8cf2aefc37 Bug 562164: Use absolute memory address on export
Change-Id: I8b97ad10cd55a751ac8a5b7e4a01009b623f565d
2020-05-24 10:22:00 +01:00
Philip Langer
081069afcd Bug 563280 Split language server flags into separate commands
Change-Id: If7c8e823f7da289a4567b8cb6030f504a830364f
Signed-off-by: Philip Langer <planger@eclipsesource.com>
2020-05-22 21:33:35 +02:00
Jonah Graham
56d741a50c Bug 558536: Revert "Bug 549013 - Eclipse menu won't display on Ubuntu 16.04 LTS when SSH/Serial command shells are opened"
Using the mouse and not the focus listeners leads to lots
of weird, unintended consequences. For example:

- If mouse does not exit the control (because, e.g. it was not
in the control) then captureKeyEvents(false) is never issued
- If mouse does leave control, then control stops capturing
events. This means that although the cursor and focus is still
on the control, keyboard shortcuts no longer go to the control,
so Ctrl-C becomes copy again. This means, depending on where you
move the mouse changes the behaviour of the control.

This reverts commit 19351cbc2b.

Change-Id: I4f57c659e21d823df049b095159a34e5c110ef29
2020-05-16 16:40:29 -04:00
Jonah Graham
da0d1d7df6 Bug 543122: Add additional baud rates for serial
Includes new API to allow, on platforms that support it, setting
and getting arbitrary rates.

Change-Id: I0b1134325f913bb09d1bf0cd902f89e968d80570
2020-05-15 14:32:47 -04:00
Martin Weber
fc7e62940f Bug 559674: Migrating from a ILanguageSettingsProvider implementation to IIndexerInfoConsumer (1)
Change-Id: I0903f75c7cb4fbd4f3119ae22500b66b2f15794d
Signed-off-by: Martin Weber <fifteenknots505@gmail.com>
2020-05-14 14:33:02 -04:00
Alexander Fedorov
d374b71c94 Bug 562164 - Add JUnit tests for IMemoryExporter implementations
Added "number of units to retrieve" parameter to ReadMemory#from
Fixed result compare for text-based formats
Returning back 64KiB DATA_PER_TRANSFER optimization
Reworked FileExport from "O extends AutoCloseable"
Renamed ReadMemory to IReadMemory

Change-Id: Id7eb51015884d5dbffa5e91e9601f5e6ddb52d90
Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2020-05-13 16:41:43 -04:00
Jonah Graham
e1f6300001 Fix all NLS warning in o.e.cdt.debug.gdbjtag.ui
Change-Id: Ia6c6c86f977be8c816f6ed60978dbd92341b8283
2020-05-13 11:00:48 -04:00
Jonah Graham
cf30fc4efd Fixup for Bug 561623: Correct title in HTML for planned API removal
Change-Id: I04a7bde8ae0ab5ceae5b4a21dec744d5f234f599
2020-05-12 13:11:28 -04:00
Jonah Graham
d39ea6ace6 [releng] Add missing API Analysis on Serial bundle
Change-Id: Idf6575eb13343d33e023d3c1fc4b7ee131651a37
2020-05-11 20:32:33 -04:00
Matthew Khouzam
84e9a78109 Bug 561789 - Introduce ElfSymbolIterator
This allows symbol reading on larger executables without
hitting an out of memory error

Note: this should not close the bug, it is just a first step.

Change-Id: I62bb252ff67d88d9bef686760fdc0e9b8240fd02
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
2020-05-11 16:06:01 -04:00
Jonah Graham
3201a07fc3 Bug 549697: Mark update font methods in Terminal as deprecated
There are two ways of specifying fonts in the terminal,
one via font definitions, and one via the font directly. The
method via the font directly was already deprecated in the public
API, this commit follows that deprecation chain through to
make it easier to identify which code paths are not likely
relevant anymore.

These methods could simply be removed as part of the major version
bump.

Change-Id: I05d746c429c4e6c3ced5ee7bb7a6172e0a255c2d
2020-05-10 15:18:24 -04:00
Marc-Andre Laperle
167ce562b2 Bug 559186 - Allow using variables for the CDB path in CDB settings provider
For example, you can use ${ProjDirPath}/buid/compile_commands.json
which is a more sharable setting

Change-Id: Ic51775ea1f7d258c55e2e720c94f626a17444744
Signed-off-by: Marc-Andre Laperle <malaperle@gmail.com>
2020-05-10 14:44:18 -04:00
Jonah Graham
fc8ed250b1 Bug 540737: Remove false optimization
GC.getForeground / Background always create a new Color object,
so this if expression was always true.

Change-Id: Ief4ccaf1adb70967301411b012c0474608f425cb
2020-05-10 14:01:44 -04:00
Jonah Graham
b3e4e60155 Bug 540737: Rework cache storage of styles
This may need to change to an LRU cache if we end up with
too many potential styles

Change-Id: I66bb6a4b9f67c6fd8656875f138899dd3a67a360
2020-05-10 14:01:44 -04:00
Jonah Graham
963ce943ba Bug 549697: Extract standard colour names
The inconsistency of lower case and upper case in the internal
representation of the colour names made it harder than it should be
to find where colours are used in the code.

Note that the SytleMap creates lower and uppercase entries for each
colour.

Change-Id: I16b4ebe4a97adecd01f835319aa0f0d175ae3bb6
2020-05-10 14:01:44 -04:00
Jonah Graham
0a3e5721d4 Cosmetics.
Change-Id: Ibb31fa697065add6d3341faf5bdc84e24504e1e3
2020-05-10 14:01:44 -04:00
Jonah Graham
0aecc58552 Bug 527055: Save terminal settings even when there is only one terminal type
Change-Id: I411bb5c815590c7f9929694e0256596b601606fa
2020-05-10 10:58:03 -04:00
Jonah Graham
f294b6583b Bug 542957: Scroll terminal number of lines indicated in wheel scroll event
The original code used the direction provided by the scroll wheel, but
not the magnitude.

Change-Id: I7f5e2083599990f4f4999aba46ef38602b9fe565
2020-05-10 10:56:35 -04:00
Jonah Graham
cef0a80f91 Bug 561054: Save host and related settings for Telnet connections
Change-Id: I99af2f77135086f5a5eb0fc0647d87ad4f749482
2020-05-10 10:56:24 -04:00
Jonah Graham
e097d60932 [releng] Set minimum version of supported Maven to 3.6.3
Change-Id: Iab6282b798a05b6937acd2976ce4f247d3b2e7a6
2020-05-09 21:48:39 -04:00
Alexander Fedorov
73982472ee Bug 562997 - Switch CDT doxygen to use new Equinox preferences API
Switched from "org.eclipse.cdt.core.options" to
"org.eclipse.core.runtime.preferences"

Change-Id: Ie01d955079a7a54875270bb2d259c9232d30e7ea
Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2020-05-09 11:42:57 -04:00
Marco Stornelli
1d38d997dc Bug 562896 - Fix qualified name in return type for implement method
Change-Id: Ie1ff2e401091655c6ecc2a7393dac19cea872a0e
2020-05-09 02:43:18 -04:00
Alexander Fedorov
825f88f49a Bug 562790 - Switch CDT 10.0 stream to Eclipse Platform 4.16 M2
Updated Eclipse Platform according to
https://www.eclipse.org/lists/eclipse-dev/msg11376.html
using
https://download.eclipse.org/eclipse/updates/4.16-I-builds/I20200501-0520/
Added "org.eclipse.urischeme" bundle to debug.product definition as it
now required for E4 SWT Workbench

Change-Id: I1d2f634db29271590d93abccde6282c05423ff4f
Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2020-05-07 02:34:05 -04:00
Jonah Graham
69c551ab04 Bug 562494: Updated libraries due to updated tools
As part of the rebuild of the infra images to get new Java 11, we
also got updated compilers that generate some different bytecodes
for the native libraries. This commit brings things up to date.

Change-Id: I1039a5e19172092353dc4e1ea7de1381c031d280
2020-05-05 12:43:22 -04:00
Alexander Fedorov
726300f47b Bug 562164 - Add JUnit tests for IMemoryExporter/ IMemoryImporter
Add tests for PlainTextImport/PlainTextExport
Add tests for RAWBinaryImport/RAWBinaryExport
Add tests for SRecordImport/SRecordExport

Change-Id: I4e489498dd6fb451621785743284a31a2f57516f
Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2020-05-04 16:17:45 -04:00
Marco Stornelli
e730b264c5 Bug 562722 - Fix noexcept using implement method
Change-Id: I3ac99f916883fa4be55af29e51b63bc8aa40a63f
2020-05-04 19:26:16 +02:00
Marco Stornelli
0124c964b5 Bug 562723 - Added support for noexcept in the formatter
Change-Id: I021934657842868c196320f4e126217ab799c07c
2020-05-04 13:21:48 -04:00
Jonah Graham
b45df9e9d5 Bug 558994: Remove LRParser, XLC and UPC
These old parsers have not been maintained in many years and do not
actually work anymore as is.

Change-Id: Ifc3223aa81718ffbfbbc2ea605eabba2807b80d9
2020-05-04 09:30:47 -04:00
Nathan Ridge
477aa9c798 Bug 562697 - Fix comparison of qualifier type and pointer type
CDT has two representations for a pointer type wrapped in a
qualifier type: it can be an IPointerType with some qualifiers
set on it directly, or an IPointerType wrapped in an
IQualifierType. (We prefer the first representation to avoid
creating too many wrappers, but sometimes the second one arises
during template instantiation.) This patch makes sure that two
such types can compare equal even if they use different
representations.

Change-Id: Ia8c7d227c74378aae74f04545b9a69103c14e74b
2020-05-03 12:48:18 -04:00
Alexander Fedorov
7f7c2a0c24 Bug 562164 - Add JUnit tests for IMemoryExporter implementations
The following changes are done to make the implementation headless and
testable:
* Reworked FileExport to implement base flow
* Extracted PlainTextExport extends FileExport
* Extracted RawBinaryExport extends FileExport
* Extracted SRecordExport extends FileExport
* Reworked related i18n

Change-Id: Ica1057e0b628c2f17b5e588cd9b0524b5b7a400d
Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2020-04-27 15:30:05 +03:00
Jonah Graham
6491efc5e9 Bug 562498: Remove Arduino plug-ins from CDT
The CDT Arduino plug-ins and features have been removed. Arduino can
still be used with CDT with manual maintenance of packages, etc. Or
a third-party add-on such as Sloeber can be used as a replacement.

Change-Id: I2f8c96e932ce87e1baed91d5eb78de05f3fb4bee
2020-04-27 01:48:29 -04:00
Alexander Fedorov
53a665be69 Bug 562164 - Add JUnit tests for IMemoryImporter and IMemoryExporter
* Added FileExport to implement base flow
* Added ExportRequest to aggregate operation configuration
* Extracted PlainTextExport extends FileExport
* Added ReadMemory to simplify interaction interface
* Extracted AddressableSize to reduce code duplication

Change-Id: I848c922cd1300799c0e9d1bff8213e8b06edc41c
Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2020-04-27 01:47:23 -04:00
Jonah Graham
0ab57c346a [releng] Remove and add .prefs files according to improved cleanliness script
Change-Id: I9bc8364cda1a1154750127f5db5549073323e84c
2020-04-26 14:52:45 -04:00
Jonah Graham
45c7847095 [releng] Add missing PDE nature to o.e.cdt.debug.ui.memory.search bundle
Change-Id: Ib3bb7132ab43793a3b8fe130432009711b78c962
2020-04-26 14:52:45 -04:00
Jonah Graham
646273d9a4 [releng] Update code cleanliness to better handle non-JDT/PDE projects
This commit on its own fails cleanliness, but is separated out
to make review easier. The subsequent commit is the result of
cleaning the code with the script

Change-Id: Ibaddc2f338f14fbe60662acc8cb272b584a1a828
2020-04-26 14:44:12 -04:00
Jonah Graham
7cd1995573 Bug 532058: Add refresh capability to breakpoints view
Change-Id: I831a79260a3666fec62fbd4b74ca668ea4edfc8e
2020-04-26 14:02:46 -04:00
Jonah Graham
d2d1c00631 Bug 561623: Starting point for documenting future API removals.
This includes all the API changes already made for CDT 10.0

Change-Id: I3bd4c613af5e9ee3d1529afef7307da09efcbbdf
2020-04-26 12:06:40 -04:00
Jonah Graham
00cf160745 [releng] Add some more help in error messages when code cleanliness fails
Change-Id: I5cea3eb02e4809e591e3160358b7f6b06feabefa
2020-04-26 10:32:26 -04:00
Jonah Graham
eeebe5234c Bug 562452: Avoid using .C for C++ files when calculating specs
Change-Id: I0fe24a8343e73d501ae09e8bf3721e3d310a696d
2020-04-25 16:43:23 -04:00
Alexander Fedorov
5947786365 Bug 562164 - Add JUnit tests for IMemoryImporter and IMemoryExporter
Prepare to extract IMemoryExporter implementations

Change-Id: Ib1c2cfd15979628c45a7685ef490ef565af8eb48
Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2020-04-25 13:55:14 +03:00
Alexander Fedorov
a92105a031 Bug 562164 - Add JUnit tests for IMemoryImporter implementations
The following changes are done to make the implementation headless and
testable:
* Reworked FileImport to implement base flow
* Added ImportRequest to aggregate operation configuration
* Extracted PlainTextImport extends FileImport
* Extracted RawBinaryImport extends FileImport
* Extracted SRecordImport extends FileImport
* Extracted FileImportJob
* Added ScrollMemory to interact with UI
* Added WriteMemoryBlock to isolate from UI class BufferedMemoryWriter
* Reworked related i18n

Change-Id: Ibd68c0e345e9455f5f8a2e1be673ddac5eb9a9b1
Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2020-04-22 14:27:50 -04:00
Nathan Ridge
d4082abb67 Bug 562343 - Handle empty loop body when creating ExecFor
Change-Id: I11c07800d493b0a64681531a1d4719c17206dd19
2020-04-22 01:12:29 -04:00
Marco Stornelli
d36ed7cfd5 Bug 562292 - Fix method definition position for override method
The position of namespaces didn't take into account because the
declaration doesn't exist yet when we use this kind of refactoring,
so the find method of MethodDefinitionInsertLocationFinder didn't
look for namespaces.

Change-Id: I839194879c41f86653c837ca83a306ea1840c1d0
2020-04-22 01:00:48 -04:00
Marco Stornelli
8fa9f63e13 Bug 562368 - Fix doxygen template documentation
Change-Id: If0763d66fab13bc1cc7445363368df4c53546c24
2020-04-21 14:06:43 -04:00
Jonah Graham
39cc3af569 Bug 561319: Remove flickering in terminal when changing selection (fixup)
Dispose of the image used for buffering GC.

Change-Id: I80b6edea3211847265140aa8992546a16474cadf
2020-04-20 16:30:19 -04:00