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

26153 commits

Author SHA1 Message Date
Sergey Prigogin
6b2530050f Bug 501616 - ArrayIndexOutOfBoundsException in CPPField.getFieldPosition
Use 16 bits to store field position.

Change-Id: I2856bbc06e1df91ca209508ad3258bad1869087f
2016-09-16 16:42:08 -07:00
Doug Schaefer
fb533553c8 Fix to better handle build output parsing random text.
Handle failures when trying to find the resource at the end of
a command line when it's not really a command line.

Change-Id: I7dc94a2c45c758248d0402c253e077142ee050e3
2016-09-16 10:46:47 -04:00
Toni Suter
25d4502b80 Bug 490475. Support the evaluation of C++14 constexpr functions
Change-Id: I05029f26b6d33cbeeab8138a270b38c4018b64b5
Signed-off-by: Toni Suter <tsuter@hsr.ch>
Signed-off-by: Silvano Brugnoni <sbrugnon@hsr.ch>
2016-09-16 03:09:25 -04:00
Alvaro Sanchez-Leon
46d0c9633b Bug 303808: Add a console action for "Auto terminate GDB"
Change-Id: Idf4a3b2c60fce5e318114be423fdc89c327be7bf
2016-09-13 14:30:17 -04:00
Marc Khouzam
28f290e9d0 Bug 303808: Handle resizing of full GDB console
Note that the TextCanvas used by the terminal widget that powers the
full console has a default minimum of 4 lines and 80 columns.  We could
change those if we feel that is not adequate, or if we don't want to
have such minimum values at all.  This patch leaves the minimum values
as they are by default.

Conflicts:
	dsf-gdb/org.eclipse.cdt.dsf.gdb.ui/src/org/eclipse/cdt/dsf/gdb/internal/ui/console/GdbTerminalConnector.java

Change-Id: Iad6339da1726db1102c123c97589f46ae681ffc7
2016-09-13 13:44:08 -04:00
Marc Khouzam
10381a74e4 Bug 303808: Remove dependency on o.e.tm.view.*
The streams connector provided by TM was located in the o.e.tm.view.*
plugins which bring in the terminals view.  This patch implements our
own streams connector so that we don't have this extra dependency.

Change-Id: If2a8bdfbdd87eb9ec5c42180a372634e322ba1c1
2016-09-13 13:30:57 -04:00
Alvaro Sanchez-Leon
1b7f91a406 Bug 303808: Add base terminal actions to the GDBFullCliConsole
Change-Id: I90967e4e8b16059201d11b509a9737a01dad526d
2016-09-13 11:47:47 -04:00
Doug Schaefer
33f528d1ee Add empty tab group and icon for core build local launches.
Change-Id: Ifa522f49888518e2a04263316baddc8e3c507fd0
2016-09-12 15:15:07 -04:00
Doug Schaefer
b26917be90 Introduce Core Build launches and Launch Bar integration.
Unify launching for projects that use the new Core Build system.
Starts with CMake projects. We'll do Qt projects next.

Change-Id: I14af8e99decd54cc6548095b3ad3e054c550aea2
2016-09-12 11:14:17 -04:00
Alena Laskavaia
a6062a2b98 fixed NPE
Change-Id: I817d227711384551e88fc59c124ffead5284ef06
2016-09-09 09:12:05 -04:00
Marc Khouzam
2388bb65c5 Bug 303808: Disable full console in all-stop mode for the moment
We currently cannot interrupt execution with the new console in all-stop
mode. This means that if the user resumes execution then no new
breakpoints can be set from CDT while the target is running; also, the
interrupt button simply does not work.

This patch temporarily disables the new console in all-stop, until we
have the problem fixed.

This also solves the pagination problem as pagination is only enabled
in all-stop mode.

Change-Id: I858268d469923700ae960600cb1dbb062729dc88
2016-09-07 15:39:41 -04:00
Alvaro Sanchez-Leon
e9b297390b Bug 303808: Add a terminate button to the debugger console view
Change-Id: I67b37be1991c564dca961d3d2f85b9ba0da098c5
2016-09-07 15:38:43 -04:00
Marc Khouzam
489be2aa59 Bug 303808: Moving old gdb console to Debugger Console view
Making this change reduces richness of such a console with respect to
menus, toolbar, etc.  However, I think the consistency is more
important.  Besides, this old gdb console is so poor, I don't expect it
was used much.

Change-Id: I28870192dd51c673f35d6147d5196bc771ebfa55
2016-09-07 15:37:11 -04:00
Marc Khouzam
5e9332c8ab Bug 303808: Add menu context to the debugger console to invert colors
Change-Id: I5f7137cd0372c554afd2861aa42ba3cf0c2ae7ba
2016-09-07 15:28:51 -04:00
Marc Khouzam
999c2e97cc Bug 303808: Add dedicated debugger console view
Splitting out the GDB console into its own Debugger Console view.

The goal of this patch is to allow the user to easily keep the full GDB
console in focus, without having to pin it, as the pin requirement was
not very user-friendly.  Furthermore, the user can also use the GDB
console while looking at the output of the program being debugged,
which couldn't not be done without a dedicated gdb console view.

This patch also resolves two issues we had with re-using the platform
console view, which were:
- pin didn't work
- clone didn't work
With this new Debugger console view, there is no pin and no clone.

Change-Id: Ia19132704a2f6618f35ffe47ebb4b8f0028dc9ab
2016-09-07 15:26:43 -04:00
Marc Khouzam
0caa750ef0 Bug 303808: Support for full GDB console
This patch provides a full GDB console in the standard Console view.
The full console is disabled for Windows due to PTY limitations.

The new console will be triggered automatically when using GDB 7.12 (or
its pre-release) and running on Linux.

Known issues with this patch:
- Cloning the console view breaks the console
- Pinning the console view is not supported
- Interrupting execution in all-stop mode fails with the new console
- Pagination causes some events to be lost (all-stop only)

Change-Id: Iee6ef5228ca17bd829eb743cb41a142afe6714dc
2016-09-07 15:23:47 -04:00
Doug Schaefer
91c342b77c Clean up CMake build.properties files. 2016-09-06 19:49:34 -04:00
Dan Crosscup
88df41a67f Bug 500884. Fixed ExternalToolInvoker so it starts the Build Console.
Build Console needs to be started before 
OutputStream and ErrorStream are retrieved for the Sniffer.

Change-Id: I1aea84ca9fa2e6806cb07513bb2c9cad47c11617
Signed-off-by: Dan Crosscup <tunzis@gmail.com>
2016-09-05 17:48:12 -06:00
Marc-Andre Laperle
3427065e65 lldb: Fix parsing of some version formats
Change-Id: Ifd8130f4ef97698cbdd0321a1b6644726165f131
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2016-09-03 21:05:00 -04:00
Doug Schaefer
f922bfacc6 Add missing since tag.
Change-Id: Iea0cc7fd4706b1cb20bcf4a98d16cf81c70c313c
2016-09-02 11:01:50 -04:00
Marc-Andre Laperle
c14f675a8e Add a timeout multipler for DisplayHelper
DisplayHelper is used to run the event loop until a condition is met
or until a maximum timeout is reached. This timeout varies between
hundreds of milliseconds to a few seconds. When the tests are running
on a machine that is known to be quite under load (Hudson), the
timeouts in the milliseconds are too optimistics as there can be a
lot of other things running at the same time on the machine.

This change adds a multipler (default 1) that can be controlled from
the maven command line, for example:
-Dorg.eclipse.cdt.ui.testplugin.DisplayHelper.TIMEOUT_MULTIPLIER=5

Change-Id: I9c1517ac2641768e8ae0f4508bf9a008931ef805
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2016-09-01 15:23:52 -04:00
Doug Schaefer
9c8bcb28c8 Allow participants in CMake toolchain file management.
For ESP8266, I want to auto discover the toolchains and friends
installed into Eclipse. I also want to handle toolchain files
manually added by the user. Adding providers and listeners.

Adds prefix to gcc commands. Makes CMake config provider for Local
only. ESP8266 has it's own launch config. Add build output to the 
build config model. And fix up output folders.

Change-Id: I682c3d08898e5ca275d07f8bb63c6ec1c7605a81
2016-08-31 15:03:29 -04:00
Marc Khouzam
5d9eaa604e Bug 500066 - Debug traces can be in the wrong order
Change-Id: I4e28ade1df7d3f35f07bfb95870e7d9c449442fc
2016-08-31 08:37:14 -04:00
Doug Schaefer
5426847cbb CMake and build architecture changes to improve launching
Right now launch configuration delegates need to know too much about
the specific build system for a project (cmake versus qt, for example)
Start decoupling this and test out the theory with CMake.

Change-Id: I8a362f16cddca77b37a5ab5920ee19318035d478
2016-08-29 17:54:34 -04:00
Marc Dumais
a90d9dfbf8 Bug 337899 - [debug view][non-stop] Process label is not updated
In non-stop mode, when the last thread of a process is resumed, the
corresponding process node icon, in the Debug View, is updated to the
"running process" one. However the node was not being automatically
refreshed, and so still showed the previous "suspended process" icon.

This fix adds the necessary Delta to refresh the process node when a
IResumedDMEvent is received.

Change-Id: Ie7d2b6aef9ae7f5906e4b54470f74ee238e13ef5
2016-08-29 07:23:30 -04:00
Marc Khouzam
259f48a0b9 In case of a hang, cleanup any gdb that was started
After we start gdb we wait to read the gdb prompt "(gdb)".  If we never
get the prompt, we eventually timeout after 30 seconds.  We then do some
cleanup, but were not killing gdb if it was actually running.

Change-Id: I4a84f1d9e07a358643e91d41d1ca30d876167aef
2016-08-29 06:11:21 -04:00
Marc-Andre Laperle
cd563c3d00 Update build-helper-maven-plugin to lastest version
Just keeping up with the latest.

Change-Id: I72a42b8190067a5ad25576552fb408d2aea4212c
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2016-08-28 22:33:00 -04:00
Marc-Andre Laperle
e5d8f677b2 LLDB: Print an error when lldb is below minimum version
Prevent users from using a version of lldb that is too old.
Before version 3.8 there was a hang and other issues. If the
version cannot be determined, the launch stil proceeds. This
is because there is no good way to get the version from the
lldb-mi executable but rather, we can only do a best-effort
to get the version from the normal lldb executable. If the
lldb executable is not present but the lldb-mi is, this is a
valid way to use the debugger but the version cannot be determined.

In the future, it would be better if the lldb-mi executable could
report the lldb version directly. But this would be an improvement
in lldb, not CDT.

Change-Id: Ief8a4ebd3ea1e3d549a5cef41ac3030ec48734c4
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2016-08-28 02:17:42 -04:00
Doug Schaefer
7ad8cbe626 Missed updates from last CMake change.
Change-Id: Ie4d8a389c2288e35261b6519971cb0e27a7354fb
2016-08-26 13:42:30 -04:00
Doug Schaefer
33a979c651 Bug 500237 - Use specific version of tool for uploads.
Arduino rolled back the version of avrdude that they used but we were
always using the latest version.

Show the arduino package first in the list of Platforms to Add.

Turn on the Arduino Neon site for future updates.

Conflicts:
	toolchains/arduino/org.eclipse.cdt.arduino-feature/p2.inf

Change-Id: I0392594d7e9d30daeb6c9e4ca7090a92dde8b19f
(cherry picked from commit 32bc90f8bf)
2016-08-26 12:22:52 -04:00
Doug Schaefer
33df75987b Fix Windows 32-bit serial.dll.
Change-Id: I4bccdf56a7317bf5f64209c58edfd7991081bc82
(cherry picked from commit dbd2b70814)
2016-08-26 10:43:20 -04:00
Doug Schaefer
50bc082f84 Bug 174176 - Hook up CMake build to LaunchBar to select toolchain files
Use launch target os and cpu arch properties to pick toolchains and
toolchain files. UI to add toolchain files. And build support.

Also some clean up of Qt as I found bugs.

Change-Id: Icd1da43460b5954eea15e95ed8ec27850fc4e54e
2016-08-25 16:49:28 -04:00
Marc Khouzam
6cbe4a6849 Fix change of version
Change-Id: I551ddb114350d18fbe81c4a6f14feb852f15323b
2016-08-24 10:35:50 -04:00
Sergey Prigogin
215c3d7ce5 Bug 500178 - NPE in Rename refactoring
Change-Id: Ia448bf943b7139370ab5b570fb074e79ca6f6f23
2016-08-24 07:58:10 -04:00
Sergey Prigogin
8d2d30bf52 Bug 485889 - ClassCastException in
CPPClassScope.findInheritedConstructorsSourceBases()

Added diagnostic logging.

Change-Id: I9b48751c11901c78e4938148d2bd8d490efe9209
2016-08-24 07:06:50 -04:00
Sergey Prigogin
829fde48ee Added diagnostic logging.
Change-Id: I0ac84837f4ff33dc984a7b00495ab9266e240ac2
2016-08-24 05:14:53 -04:00
Sergey Prigogin
95774b09ce Cosmetics.
Change-Id: I444fd91e5acbeed1857827e249afc0f99a8c1703
2016-08-24 01:41:21 -07:00
Sergey Prigogin
9ae111eb8c Bug 424068 - [C++11] Inheriting constructors
This change treats inherited constructors in accordance with
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/p0136r1.html

Change-Id: Ia45edfeda0772daf57457ecdd7e16979ce7f321a
2016-08-24 03:55:43 -04:00
Alexander Kurtakov
310a13309b releng: Build with Tycho 0.26.
Move build to Tycho 0.26 which uses Neon final bits.

Change-Id: Ic28684beab2c2c6d7fa5892248bd6c39daf384ff
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2016-08-23 16:22:28 -04:00
Adam Ward
a7717b2973 Bug 500120 - Fix C/C++ Unit test view history dropdown NPE
Changes:
- Listen for launch configurations to be deleted. Remove any testing
sessions that ran using the deleted launch configuration.

Testing:
- Ran a couple test projects using the Google Test Runner. Ensured all
sessions showed up in the dropdown. Deleted the launch configuration and
tried to dropped down the list again. Deleted launch configuration
sessions were removed from the list and no NPE.
- Did the same above test but deleted the project, instead of launch
configuration, which causes the launch configuration to get deleted and
the same successful results occurred

Change-Id: Ia32f3a6282ed0da7e154e7a7138681c7be16c0ef
Signed-off-by: Adam Ward <award@blackberry.com>
2016-08-23 13:38:54 -04:00
Sergey Prigogin
cfbb774b7a Cosmetics.
Change-Id: I7db0495a9d98c1920a090e41a1eb8a4bf1e40354
2016-08-23 05:19:19 -07:00
Doug Schaefer
6c6901547e Scanner discovery for CMake projects.
Reads the compile_commands.json file and feeds the commands into
the processLine method of the build config which creates the scanner
info. The scanner info is cached in memory and stored in the
metadata directory.

Change-Id: I8b04e661dfe767904d1c10119c07167fee8cd7e4
2016-08-23 01:05:13 -04:00
Doug Schaefer
955c971682 Bug 500080 - Add listeners for Qt Install removals
Add the Qt Build Configs as listeners so that they can disassociate
from removed Qt Installs.

Change-Id: Ia26ebfa4ece4ca7f22248b49ffbb88c858757f97
2016-08-22 13:45:42 -04:00
Sergey Prigogin
26fc557085 Improved Remove Unused Declarations refactoring.
Change-Id: I79fe2c40a45e18c6cfad3d9df867a6a04852f647
2016-08-21 20:00:08 -07:00
Sergey Prigogin
0f887cb883 Improved Remove Unused Declarations refactoring.
Change-Id: I540ef470eed2355eedd76e592d893501a30fc4c9
2016-08-19 18:53:26 -07:00
Sergey Prigogin
58543c6245 Cosmetics.
Change-Id: Idbdc12de9dc54acbb0e5da1c86260ad740dd895f
2016-08-19 18:46:13 -07:00
Marc-Andre Laperle
9f7fd16f22 Fix outdated pom versions in lldb folders
Change-Id: Ia8cd0bbafd51c60215a0d838557eab8a3c009f7e
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2016-08-19 12:27:23 -04:00
Thomas Corbat
470561caec Bug Bug 482225 - decltype(auto) not parsed
* Adapted the parser to cope with decltype(auto)
* Extended IASTSimpleDeclSpecifier to have a kind for decltype(auto)
* Added tests (syntactic recognition and type deduction for variables)
* Modified DeclSpecWriter to cope with the decltype(auto) kind simple
decl specifier

Change-Id: Ib1ded823027d124cef35e9d6355c0f48f57709a0
Signed-off-by: Thomas Corbat <tcorbat@hsr.ch>
2016-08-19 16:48:13 +02:00
Marc-Andre Laperle
84a7eefeb2 LLDB: Add LLDB feature and add it to update site
Bug: 405670
Change-Id: Iee51790de4450c823e3ce773360dc92bd0189c6b
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2016-08-19 10:29:03 -04:00
Sergey Prigogin
16da43100b Removed use of deprecated methods.
Change-Id: I3b718a01e93e29f7d7778de3cc6e61de1366de48
2016-08-18 18:24:26 -04:00