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

34944 commits

Author SHA1 Message Date
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
Alexander Fedorov
79ba5ef27b Bug 562247 - Add CDT Debug Core Memory bundle
Added "org.eclipse.cdt.debug.core.memory" bundle with a stub abstract
class to be improved in the future commits

Change-Id: I14136379d8e595b7af36084cff8711d1d50a0a28
Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2020-04-18 03:11:51 -04:00
Matthew Khouzam
0272908613 Bug 561786 - Add unit tests in Elf for attributes and getSymbolReader
Change-Id: Ic4f4e4ab0d9df0882b99a0e2300c2ddb0393b43f
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
2020-04-17 08:00:01 -04:00
Matthew Khouzam
c70484d11e Bug 561788 - Convert fields into variables in Elf
The fields are not used outside of the loadSymbols section,
and they are written before being read, so they should be safely
inlineable.

Change-Id: I68388227074d80ace283395b48c88c59700dd9da
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
2020-04-16 22:41:20 -04:00
Tad Adams
bcd1b5b71b Bug 560554. Launch target not populated into defaultdescriptors.
Make explicit the decisions to push down to providers to
populate configuration by checking if descriptor supports target. Make
explicit the delete/reset logic by a new method on the interface, as
opposed to checking if the descriptor is an instanceof
DefaultDescriptor. This enables descriptors which support targets, and
can be deleted.

Change-Id: Id4e3126a70d8cb091d4520acf5d21c5205e0c745
Signed-off-by: Tad Adams <tadams@blackberry.com>
2020-04-16 14:55:30 -04:00
Andrey Mozzhuhin
f4f9785b87 Bug 562181: Fix auto indent after constructor with access specifiers
Some heuristics in skipToStatementStart require knowledge of previous
token. It is initialized with value from a fToken, but it current value
may be invalid because looksLikeMethodDecl changes fPossition value
without adjusting a fToken. Using invalid value may lead to false
triggering of heuristics. Restore fToken value when change fPossition in
looksLikeMethodDecl to prevent this.

Change-Id: If0c2c0577c89a983e1479587409f293c3d0db7be
Signed-off-by: Andrey Mozzhuhin <amozzhuhin@yandex.ru>
2020-04-16 09:28:55 -04:00
John Dallaway
cab5fc1752 Bug 390897: Data buffering for SRecord export
Change-Id: I52cb28cd7fbbf19a9d2bc39754e0ea6fd8582aa3
2020-04-16 12:32:00 +01:00
Alexander Fedorov
794a7e2339 Bug 562096 - Switch CDT 10.0 stream to Eclipse Platform 4.16 M1
Switched to
https://download.eclipse.org/eclipse/updates/4.16milestones/S-4.16M1-202004090200/
Added 2020-06 repository list to CDT.setup - let's keep 2020-03 for a
while as a fallback option until things are converged for 2020-06 stream

Change-Id: I7ec32e9897731d9093c5e88aeb618ab33ff5e6b2
Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2020-04-16 07:25:37 -04:00
Andrey Mozzhuhin
45afe49b9c Bug 562125: Fix auto indent of function call with scope qualifiers
A function call may be mistakenly interpreted in looksLikeMethodDecl()
as a method declaration. This was due to simplified processing of
functions with a scope qualifiers in the name.

Now methods with a scope qualifier are handled similarly to methods
without them.

Change-Id: Id3075d3387fdf9c4ae2d0dffa6cdf923fd1ef9d5
Signed-off-by: Andrey Mozzhuhin <amozzhuhin@yandex.ru>
2020-04-15 02:04:16 -04:00
Andrey Mozzhuhin
a145e695c0 Bug 516393: Fix scan of double char tokens in CHeuristicScanner
Scanning of double char tokens (::, >>, >=, <<, <=, ->) is broken in
nextToken(). In each case, peekNextChar() was used to get second
character, but scanner position was already on second char and
peekPreviousChar() need to be used.

Change-Id: Ibd447c7cde8783e8ffe547d5f9bc09d11c1c60a7
Signed-off-by: Andrey Mozzhuhin <amozzhuhin@yandex.ru>
2020-04-13 21:32:45 +03:00
Alexander Fedorov
2a075e3ec8 Bug 561993 - Remove dependency to com.ibm.icu from CDT UI
Use JVM classes
Rework WorkingSetProxy#getSearchKey

Change-Id: Icda4b5b791259150dbf436546c2096ea728e0da0
Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2020-04-12 13:34:26 +03:00
Jonah Graham
d66d3e8e85 [releng] Bump version to 10.0.0
Change-Id: I32f6f61835bdbad3cffd713965045c5097c8619f
2020-04-11 17:46:58 -04:00
Alexander Fedorov
d1868c46c9 Bug 561992 - Remove dependency to com.ibm.icu from CDT Core
Switch to JVM classes
Remove commented code from
 CProjectDescriptionManager

Change-Id: I53431ba1d5c015b3192fff7249c73e816b8b49ea
Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2020-04-11 07:27:04 -04:00