1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00
Commit graph

25283 commits

Author SHA1 Message Date
Sergey Prigogin
936daa337b Cosmetics.
Change-Id: I14e0cbc4dddfe6a74ef47c76ec885197d0e3eca2
2017-03-30 20:22:39 -04:00
Sergey Prigogin
3f2d6bda78 Fixed serialization/deserialization of error values.
Change-Id: If5ea64bf5f448b1e1eda02b7ab69476576336790
2017-03-30 20:22:12 -04:00
Jesper Eskilson
611c89cd36 Protect against NPE in case "declarators" is null
Change-Id: Iab76315980cab8f2070cdf3ba853871b0eecf74c
Signed-off-by: Jesper Eskilson <jesper.eskilson@iar.com>
2017-03-30 18:07:09 -04:00
Sergey Prigogin
548d5e19e1 Removed an unused import.
Change-Id: I9b5ef6949187088e779c0d1aca5d227903690603
2017-03-30 14:40:15 -07:00
Sergey Prigogin
9763d3b058 Bug 444577 - __int128_t / __uint128_t not supported (GCC)
Change-Id: I3213c7a6ad034c2fac2c96d2e9f88c38d101ed09
2017-03-29 17:59:29 -07:00
Sergey Prigogin
4f70ea542a Bug 514197 - Organize Includes removes an include necessary for
instantiation of the body of a template function

Change-Id: I7a788f5ddcfae039acdec3a7985dcef364c5b8c0
2017-03-27 20:29:15 -04:00
Marc Khouzam
868db5b9b6 Bug 512180: Ensure previous launch is fully terminated
DsfTerminateCommand leaves a timeout job on the executor queue, remove
it proactively so the executor doesn't sit around just waiting
for it to terminate.

Change-Id: If26411a5b6e0d35a1c45582e91ba62d24cef6bbb
2017-03-27 15:08:46 -04:00
Simon Marchi
1981d5905d Remove ANSI escape sequences from lines before handing them to output parsers
If a build tool (e.g. gcc) outputs colored text, the ANSI escape
sequences will prevent the output parsers from matching the lines.  This
patch makes the ErrorParserManager remove them before handing the
strings to the parsers.

I tested that this works well with the ANSI console plugin [1], which
allows displaying colors in the console window.

Note that I stole the regex from this SO post [2], I hope it's trivial
enough that it doesn't cause any IP problem.

[1] https://marketplace.eclipse.org/content/ansi-escape-console
[2] https://stackoverflow.com/questions/25189651/how-to-remove-ansi-control-chars-vt100-from-a-java-string

Change-Id: I0d6a25723be4008600acecb8595865bcb4f4abc1
Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
2017-03-27 11:52:09 -04:00
cartu38 opendev
6b88578458 Bug 514244: ability to add custom wizard page prior project creation one
See : https://www.eclipse.org/forums/index.php/t/1084842/

Original (WizardNewProjectCreationPage) getStartingPage() cast within
getMainPageData() method was obviously forcing first wizard page type
... provided basic trick is opening some opportunities more !

Change-Id: Ie9b7c4ef63040df6a419af8348f088be79cc2611
Signed-off-by: cartu38 opendev <cartu38.opendev@gmail.com>
2017-03-27 12:24:26 +01:00
Alexander Kurtakov
2268403e02 autotools: Restore API.
It's unused but still we have to keep it.

Change-Id: I9f23e09c0ce62bf88f6cc490a7c0c31852b6fd16
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2017-03-25 03:05:46 -04:00
Marc-Andre Laperle
5e1208c12a Remove unused OpenTypeDialog
It's internal and not used anywhere.

Change-Id: I194b4db7f4284bc0820221220301515a12b17ae4
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2017-03-24 23:23:29 -04:00
Marc-Andre Laperle
a844ef3f9c lldb: Add a few missing rm.done()
A few rm.done() calls were missing in overridden methods.
Those queries were slowing down debugging significantly.

Change-Id: I966d79af38721e551e9ebf2a74ca4d8d895241d0
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2017-03-24 22:27:07 -04:00
Marc-Andre Laperle
323a39cc6d Don't use _ as identifier
Change-Id: Id1e251a3d8895863aef06d7618d38edb10c9113d
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2017-03-24 16:56:27 -04:00
Nathan Ridge
9742e45559 Bug 513429 - Defer instantiation of variable templates with dependent arguments
Change-Id: Ic5875b19b384ae2726fe000fe5ab2b8cf5dd45a7
2017-03-24 00:52:14 -04:00
Alexander Kurtakov
d35f9e1a60 autotools: automake/autoconf generic editor.
Reorganize code and expose things for generic editor.
So far presentation reconciler only is ported.
Allows to right-click/Open with/Generic editor on e.g. Makefile.am and
see it in the generic editor. It is not as feature rich as the
specialized editors we have now but over time it should provide all the
features of them with significantly less code.

Change-Id: I72324b94ce08ab762979804914adbb1982c88198
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2017-03-23 16:54:04 -04:00
Zoltan Adasz
4572eb75f0 Bug 509118. Extend regexp to detect devices in /dev for Linux.
Change-Id: I1dfcca8f34019a210702473afb946b2a76cb37d7
Signed-off-by: Zoltan Adasz <adanrg@gmail.com>
2017-03-23 16:32:08 -04:00
Marc Khouzam
a66ccee4f0 Bug 379225: Address FindBugs issues for DSF-GDB
Change-Id: Id0bb91c7aaef0e356d1989e1dc949542813d2309
2017-03-23 13:59:28 -04:00
Alexander Kurtakov
be16270d15 Generify AsmTextEditor.getAdapter.
Change-Id: Ia98a0a98c0aa12beaa0aa96136adf79e7a8bebab
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2017-03-23 13:57:39 -04:00
Simon Marchi
184747164d Various enhancements to download-build-gdb.sh
I ran shellcheck [1] on the script and it found various minor things to
improve.

 - Use $(...) instead of `...` to run commands in a subshell.
 - Wrap all variables in quotes, in case there are spaces.

At the same time, I noticed a few other things:

 - Use "#!/usr/bin/env bash" instead of "#!/bin/bash", in case the user
   uses a bash not at /bin/bash.
 - Use "set -o errexit" instead of "set -e" for better readability.
 - Use "set -o nounset" to generate errors if trying to read unset
   variables.
 - Pass CXXFLAGS in addition to CFLAGS, since GDB is now in C++.
 - Use ${CFLAGS:-} instead of ${CFLAGS}, in case CFLAGS is not set
   (because of "set -o nounset").
 - Don't check for result of getopt.  If it fails, the script ends
   immediatly due to errexit.

[1] http://www.shellcheck.net/

Change-Id: If73f3510e46ca80d542d47c29c55b48b8b0bc697
Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
2017-03-23 13:33:45 -04:00
Alexander Kurtakov
5bec70f68f Remove unneeded casts.
Change-Id: Ie506aa209db9be9c56ed8d80c0c97634c6f0cecf
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2017-03-23 04:35:03 -04:00
Alexander Kurtakov
93623a1a04 Generify ListenerList.
Generified, some lamnda conversions and some non-javadoc removal.

Change-Id: Ibf0493917ac3da7531de1ca591a9bfdc250ddf2a
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2017-03-23 09:25:24 +02:00
Alexander Kurtakov
4d47bff054 Don't use _ as identifier.
Change-Id: I0ae0462a47ad421ae1baae0dadfa0b5c7489d952
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2017-03-22 18:15:33 -04:00
Marc-Andre Laperle
7eaabfe557 Bug 463480 - [Include Browser] Add Expand all, Collapse all
Change-Id: I00d6ca764fa1ecb408d8786f6a49d8d81a735ea7
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2017-03-22 01:22:52 -04:00
Marc-Andre Laperle
e44a300af7 Bug 514021 - Corrupted database only prints Error as message
When the pdom for a project it corrupted, the only message in the
console/log is "Error". The DBStatus class accepts a message string as a
parameter and doesn't use it. If it's changed to use it, then a more
useful message is printed:
"Corrupted database: foo.1487621676851.pdom"

Change-Id: I0d4fb0b97fe1c63661941130e14edea18d0f26ee
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2017-03-21 18:26:49 -04:00
Marc-Andre Laperle
2b302b9688 lldb: Remove -break-insert hack for absolute path for lldb 4.0
Change-Id: I098e088874d95d9f9cd08e315d059dc00b2c809c
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2017-03-20 01:56:50 -04:00
Pascal Rapicault
efcff25e64 Bug 480047 - Include apache http client libraries for use with p2 transport
Change-Id: Ia1e92dfe65c69609f573133867eeaac9b19292ff
Signed-off-by: Pascal Rapicault <pascal@rapicorp.com>
2017-03-19 22:36:22 -04:00
Marc-Andre Laperle
a0098bb2c7 Adjust path exclusion when deleting repo so that it doesn't delete rcp
There was an attempt to not delete the rcp*/ folders when deleting the
repository folder but it left the folders empty. The updated pattern
seems to work correctly.

Change-Id: Ibb0e399044d87ad2374fe2f0f96e1f7eaf70bcd0
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2017-03-19 19:48:13 -04:00
Simon Marchi
c59a4c4d7c Bug 513860 - build: Change id of pthread option
There is a collision in the ids of the pthread options,
"cdt.managedbuild.tool.gnu.c.pthread" is there twice.  Change the ids to
be more in line with the other options.

Change-Id: Ice9d003b82b3740df6420811e90a2b157375c243
Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
2017-03-19 19:15:02 -04:00
Nathan Ridge
1dcc3613f7 Bug 513430 - sizeof() with dependent type in default template argument
Change-Id: I01b21afb076b29e418a4d9eece2ac8eff3dafbb6
2017-03-19 00:41:46 -04:00
John Dallaway
57332b1d1d Bug 513763 - Save workspace following headless build
Change-Id: I657f8bf8155dd669921caef951d16e23601f01ad
Signed-off-by: John Dallaway <john@dallaway.org.uk>
2017-03-18 17:01:27 -04:00
Simon Marchi
a2160bd5f1 Bug 464916 - Add a -pthread checkbox in the GCC C/C++ Linker settings
Change-Id: Ib06482847e88a327b3e3dccf1522d5f8dab1a72b
Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2017-03-17 16:00:29 -04:00
Marc-Andre Laperle
36f66d36b2 Generate config.ini for stand-alone debugger based on debug.product
Before this change, we had to remember to edit the config.ini every time
a dependency was modified in debug.product. This change introduces a
script during the build that generates the config.ini with the same list
of plugins specified in debug.product.

The cdtdebug.sh start-up script was simplified in the process because
the config.ini includes all platform-specific plugins now and they just
won't get loaded if they are not a match for the environment.

Change-Id: I658b0dd8688088e203966a154e6154f1b2c851f4
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2017-03-17 00:31:07 -04:00
Marc Khouzam
4fe701bcf7 Don't delete the rcp and rcp-repository directories
When building o.e.cdt.repo we used to delete the
entire directory in which we put the build result.  However, it is
possible that the Standalone debugger was built before o.e.cdt.repo and
already put the valid rcp and rcp-repository directories in that
location.  We therefore should not delete those.

Change-Id: I5d1608bceb48633f2205af8f8282e884ff223351
2017-03-16 13:29:50 -04:00
Simon Marchi
9b9bc86f2e Bug 511801 - Remote launch: validate that the remote exec file is absolute
From my experience, bad things happen if the user specifies a
non-absolute path in the box labeled "Remote Absolute File Path for
C/C++ Application".  This patch adds a validation to the tab to make
sure that the path is a valid absolute POSIX path.

This assumes that we do not support remote launching on Windows targets,
and therefore do not need to specify paths such as "C:\foo\bar.exe".

Change-Id: I20367078ff20179f0515272afee17d0986940309
Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
2017-03-15 16:30:35 -04:00
Simon Marchi
4802bf3e16 Remote debug: Use the IFileStore interface to force the file executable
Instead of calling "chmod +x" by hand, use IFileStore.putInfo to set the
file attributes.  Since we already use the IFileStore API to copy the
file, it makes sense (and it's cleaner) to use it to set the executable
attribute as well.

In most cases, it wouldn't be needed to make the file executable, since
it should already be on the host filesystem and IFileStore.copy
transfers the attributes.  However, it's still good to force it
executable in case it's not already for some reason.

Change-Id: I4c86e36265962781d4541aaceeb40b502248f674
Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
2017-03-15 16:24:37 -04:00
Marc Khouzam
0d62978ce7 Update some target dependencies
Change-Id: Ib0b8ae4f5be2538edc1a7be37a356b415042d578
2017-03-15 05:15:09 -04:00
Sergey Prigogin
c5dc285ca5 Bug 513681 - Unresolved name with a friend declaration in a namespace
Change-Id: I778886f802576a9b8d7804eb32abfe091bf0568d
2017-03-14 20:25:23 -07:00
Sergey Prigogin
8da53f1e5e Bug 509396 - Unresolved symbol with address of overload set containing
function templates

This change fixes the examples contained in
https://bugs.eclipse.org/bugs/show_bug.cgi?id=509396#c0 and
https://bugs.eclipse.org/bugs/show_bug.cgi?id=509396#c4

Change-Id: Id5c81469b6700ddc775ab714b0b68d5ea9a809ae
2017-03-14 13:50:03 -04:00
Sergey Prigogin
8bfd2cdc22 Added toString() method
Change-Id: Ieb9e66af1bd290ebe5f8bdce82d0778ea6da2809
2017-03-13 23:15:17 -04:00
Sergey Prigogin
fc6fad911b Cosmetics.
Change-Id: I92903893c481734b42e9292fbc48f1e58d440895
2017-03-13 19:16:45 -07:00
Sergey Prigogin
581182ce98 Minor performance optimization.
Change-Id: I19b1b8f55c8b62fa95eede5318d4b73291dfbd70
2017-03-13 19:13:20 -07:00
Sergey Prigogin
87ce31e19e Code streamlining.
Change-Id: I813c84d316a15727e45293849c21577565fa4afa
2017-03-13 19:40:07 -04:00
Marc-Andre Laperle
902aae8fcf Add missing dependency for stand-alone debugger
A new plugin is required since the last 4.7 milestone build.

Change-Id: Ibf0bb9bc3ed7858dca67782051f53d81c5ace915
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2017-03-13 14:29:03 -04:00
Sergey Prigogin
f60d78b32d Cosmetics.
Change-Id: I3484969221546dc8d71995c71651bcad95df128a
2017-03-10 14:23:21 -08:00
Sergey Prigogin
1735a17c5e Bug 513345 - A lot of time during indexing is spent inside
CompositeValue.create

Minor code cleanup.

Change-Id: I92ea01711034df5fa88cd41a81a54450fdb0ba6c
2017-03-10 11:52:02 -08:00
Sergey Prigogin
5b22093f47 Bug 513345 - A lot of time during indexing is spent inside
CompositeValue.create

Added precalculation of initial values of non-field variables.

Change-Id: Ie6c0690d90d5725e812d10afa15c4a11ba92f647
2017-03-09 20:48:50 -08:00
Sergey Prigogin
7501266165 Added protection against NPE and invalid values.
Change-Id: I8b2b96acc9f7852a4857eabb81e4ff35f9e3a0a9
2017-03-09 18:34:27 -08:00
Sergey Prigogin
8bdda7bd02 Bug 513345 - A lot of time during indexing is spent inside
CompositeValue.create

Added caching of initial values in CPPVariable and CPPVariableTemplate.

Change-Id: Id56dc273d1b27a972a30021bb8f26ce57443d208
2017-03-09 18:14:00 -08:00
Sergey Prigogin
f144cd407f Added a missing point argument.
Change-Id: Ie07e20efd16f29de67f7510782d3269417b8df93
2017-03-08 16:05:59 -08:00
Sergey Prigogin
212bbd011f Fixed broken compilation.
Change-Id: I0e4355fd8f1547d1e93400215759a5d897924031
2017-03-08 02:01:43 -04:00