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

25231 commits

Author SHA1 Message Date
Doug Schaefer
e9beafae10 Add Local Debug for Core Build launches. Qt Path var for Windows.
Adds gdb launching for Core Build launches. A common class is created
for things common to run and debug (and probably others).

At the bin directory containing qmake to the PATH var for builds and
launches since that's where the DLLs are.

Adds method and variable to GDBLaunch to override the default
environment.

Change-Id: I3ab3b48a2f99eaed50cdb4cfdc03959e9700abc5
2016-11-09 11:40:17 -05:00
jantje
5cafc1413a Bug 422378: allow case of getOutputNames() returning null
Allow GnuMakefileGenerator to completely ignore an input file

Change-Id: If4b45db8482b273f4729211d55cfa4f201760b29
Signed-off-by: jantje <eclipse@baeyens.it>
2016-11-08 21:07:28 +00:00
Roland Grunberg
5d6f8c3b2b Bug 507078 - o.e.cdt.launch.remote.source should be in separate feature.
The org.eclipse.cdt.launch.remote feature is the only non-source,
non-sdk feature to include the corresponding source plugin for it's main
provided plugin. An org.eclipse.cdt.launch.remote source-feature should
be created to provide the source plugin.

Change-Id: I2e396270f0d19f023e75452c316da0e4eda495b1
Signed-off-by: Roland Grunberg <rgrunber@redhat.com>
2016-11-04 14:58:12 -04:00
Marc Dumais
735b1ab488 Bug 499230 - Duplicated "-thread-select" and "-stack-select-frame"
Most GDB MI commands support the "--thread" and "--frame" options, that
tells GDB on which thread/stack frame the command is meant to act-on.
For those that don't, CDT has a mechanism to first have GDB switch
thread (MIThreadSelect) or frame (MIStackSelectFrame), before issuing
the command that will act on that entity. Ironically, those two commands
are wrongly identified as not supporting those parameters, and so are
sometimes sent in duplicate, when a single command including the thread
or frame would be possible. This commit correctly identifies those
commands as supporting the thread/frame parameter.

Change-Id: I6e7fc4e873abe36ad024c7131efda7c0aa89dc44
2016-11-04 10:58:29 -04:00
Marc Khouzam
c7526e8a04 Hide 'gdb traces' by default.
Since users don't usually care about seeing the communication between
CDT and GDB, we should not show it by default.  However, once a problem
happens it would be nice to be able to look at the traces even if they
were previously hidden.

This patch has the gdb traces always enabled, but hides the actual
console from the user.  When the user enables the traces, they will be
shown in the Console view, with all previous traces available.

Change-Id: Ifd312aa19e4421b6764169b6199b5e935cf25f87
2016-11-04 06:21:52 -04:00
Nathan Ridge
6c4576281d Bug 506170 - Compute correct associated namespaces for enumeration type
Change-Id: I60ddfd1f98b6f32ad785e8d881704356aff18043
2016-11-04 03:00:47 -04:00
Nathan Ridge
8244bcd33d Bug 506170 - Evaluation of dependent conditional expression
Change-Id: I59355bb40e84662554be76929ba9f9618aec7dba
2016-11-04 03:00:04 -04:00
Doug Schaefer
b6d218a652 Fix no binaries issue with Core Build.
When a second config is added, the binary parsers wasn't getting
reset so the new binary parser wasn't getting called.

Also cleans up the reset to remove the close that happens. Not sure
why it was needed so will keep an eye out for new bad behavior.

Change-Id: I0b4cb628829b138e2ceb3f08833649b90255648c
2016-11-02 16:15:47 -04:00
Alvaro Sanchez-Leon
c0d53c2cc9 Removing stand alone swtbot test module from build
This hanging needs to be investigated/fix before re-enabling
this needs to be done as it impacts every single verification build

Change-Id: I66d5e46773c4f816dd09268fdd55a7495755375e
2016-11-02 12:49:17 -04:00
Philip Langer
ab7afbf0aa Bug 506843: Reset buildFailed flag on buildForLaunch
Since delegate instances are cached and reused for subsequent launches,
we have to reset the buildFailed flag on subsequent builds (i.e., calls
of buildForLaunch). Otherwise, this flag will remain to be set to true
after a failed/cancelled build for the entire lifetime of this delegate,
even if a project has been re-launched and the build succeeded. If the
flag remains to be true, the dialog keeps popping up asking the user
whether to succeed with the launch with errors in the project, even if
the build succeeded and there are no errors any more.

Change-Id: I51aece90154f817542ed7548ec4c36591b19eaec
Signed-off-by: Philip Langer <planger@eclipsesource.com>
2016-11-02 11:04:47 -04:00
Marc Dumais
7181c4b9e9 Bug 501006 - [visualizer] harmonize TID with DV and new GDB console
In the Multicore Visualizer, add the gdb thread ids so that users can
more easily recognize threads

Change-Id: I747e9223d9b689dd6a94d707dd2e5cfdb767764e
2016-11-02 08:05:24 -04:00
Sergey Prigogin
6335a5c2ba Revert "Bug 483602 - Implement deletion of elements from Outline view"
The Delete operation doesn't properly call
TextEditorAction.validateEditorInputState() and as a result doesn't work
in version control environments that keep unchanged files read-only.
Another problem is that Ctrl+Z doesn't trigger Undo when the Outline
view is active. When the Delete element action is reintroduced it should
be made to behave the same way as in JDT, e.g, display a prompt before
deletion and be bound to the Delete key.

This reverts commit f034a69fb7.

Change-Id: I6d37f5aaea1770143fbf84288068794430a5b0e0
2016-10-31 14:59:53 -07:00
Alvaro Sanchez-Leon
cb27913c43 Bug 303808: DebuggerConsole shall not be automatically brought to top
The DebuggerConsoleView may be interfering with other views while
bringing it to the top. This is not desirable as many users may not need
to access the features of the GDB CLI.

With this change the view will be shown but not automatically brought up
to the top, so users can find it and select it as needed.

Change-Id: I6a26f3a39d43732659d1db4e1aeb77f3c9e399d9
Signed-off-by: Alvaro Sanchez-Leon <alvsan09@gmail.com>
2016-10-31 15:22:42 -04:00
Marc Khouzam
d04019eacd Simplify API that opens the DebuggerConsole
IDebuggerConsoleManager.showConsoleView() was mimicked on
IConsoleManager.showConsoleView() which allows to specify which console
in the view should now be shown.

This makes sense for the generic platform Console view where extenders
could choose to display any kind of console when an event happens (e.g.,
a build console when the build is started).  However, in our Debugger
Console case, it complicates things unnecessarily. In our case, we want
to be able to open the view, but the console to show is handled by other
logic such as a synchronizer service.

And if there is a need to change which console should be shown within
the Debugger Console view, then IDebuggerConsoleView.display() should be
used.  I think having it in IConsoleManager.showConsoleView() is a
shortcut that is not very useful in our case.

Change-Id: Id66ea5c953e8a7ab603cfc23789a814c1ad821d2
2016-10-31 11:18:41 -04:00
Marc Khouzam
b0833f9e0c Fix DebuggerConsoleManager#showConsoleView() not showing the console
According to the javadoc of
IDebuggerConsoleManager.showConsoleView(IDebuggerConsole), the specified
console should be made visible when this method is called.  Our
implementation was not doing that.

The PageSwitcher used in DebuggerConsoleView is making use of that call
and was not working properly.  One can verify this by using the 
"Next Page" key binding to change console pages.  It works in the
platform console but did not in the Debugger Console.

This patch fixes it.

Change-Id: I0caa94c85e5c9dbbd94d80081c7b4691c17d9582
2016-10-31 11:00:20 -04:00
Marc Khouzam
896eba55c5 Update plugin version and fix @since tag
Change-Id: I60463177469d823d3ce69a4ed0612291ca542fc6
2016-10-31 10:42:13 -04:00
ljyanesm
f034a69fb7 Bug 483602 - Implement deletion of elements from Outline view
Adding the delete refactor to the refactor context menu in the Outline
View.

Change-Id: I208078d2200853389bf4eb114756cf4e9b719134
Signed-off-by: ljyanesm <yanes.luis@gmail.com>
2016-10-30 22:59:32 +00:00
Nathan Ridge
b6bda6636c Bug 506728 - Ref-qualified conversion operator
Change-Id: Ic5e1650bdd1235fd953ab79e44f801c0b52badf3
2016-10-29 00:45:32 -04:00
Sergey Prigogin
4fa9706ea8 Cosmetics.
Change-Id: Ibd8c8ac950c55c02259e9dfacb0649dfca8820dc
2016-10-28 14:52:56 -07:00
Sergey Prigogin
d69b51acc8 Bug 506668 - Name resolution problem with namespace alias in macro
expansion

Change-Id: I15a0198c588cbb0e044392f47367679bb90180a6
2016-10-28 14:01:38 -07:00
Sergey Prigogin
64bd99d429 Improved diagnostic messages in tests.
Change-Id: I031061fa7ce8c7cf5af76f229ff9b93c411d1be3
2016-10-28 10:22:51 -04:00
Marc Dumais
f8488ac157 Bug 505746 - A colon in the project name causes an NPE
Doubled column character addressed in this patch.

Change-Id: I942fbceeac231b2998fa808266f579509dc55295
2016-10-28 07:02:35 -04:00
Nathan Ridge
5da005cf3a Bug 397296 - Add missing keywords to the list of keywords for which completion is offered
Change-Id: I3c08e736ec5ce8ef7a4c8954cd4e9548bf079d25
2016-10-28 03:35:34 -04:00
Nathan Ridge
f229ec9e44 Bug 506170 - Calculate sizeof(double) correctly
Change-Id: Ie0b4767a81ed529e827d1b9decd4d065225e8e5b
2016-10-27 00:52:24 -04:00
Nathan Ridge
e7e66605f2 Bug 395571 - Show name of nesting type when printing names of nested types in completions
Change-Id: I2fc191403a6ead68d30b99e427a005109355baad
2016-10-27 00:52:01 -04:00
Sergey Prigogin
35687baf43 Revert "Bug 402498 - Apply declaredBefore() filtering to index bindings"
This reverts commit fbccef3ff1.

Change-Id: I2b899750815200068dbe27b097f108b237d02447
2016-10-26 22:31:46 -04:00
Joseph Henry
b741fb552a Bug 417193 - Incorrect Symbol <X> could not be found
Fixed bug with mixing #pragma once with standard include guard.

Change-Id: Ic418ab290f9d322d943bab56625ce1f0fe6b2aee
Signed-off-by: Joseph Henry <joseph.henry@sas.com>
2016-10-26 21:18:08 -04:00
Sergey Prigogin
e3fbd7c4ca Removed redundant qualifiers.
Change-Id: Ife57237b66199ac753c804141be1d77b6188caf6
2016-10-26 16:47:17 -07:00
Sergey Prigogin
52f4104080 Fixed an NPE.
Change-Id: I20e5a2c2a452159224cd8af5a3e0c434801b67cc
2016-10-26 16:46:36 -07:00
Nathan Ridge
d77511f4c4 Bug 496720 - Respect scope filters for AST-based checkers
Change-Id: Ib96879ec50bdc5a14215abbe6d109bcf3767d4f4
2016-10-26 01:18:55 -04:00
Sergey Prigogin
d1528d0c5d Bug 506529 - NPE when organizing includes
Change-Id: Ib6780aefd2febff4ffb953ae36b1f4312922a5b8
2016-10-25 13:51:00 -07:00
Alvaro Sanchez-Leon
6c3779d38e Bug 303808: Move console actions to its own package
Change-Id: I8188f69c08fee284c02aa34c2a4d9f29de3c13e7
Signed-off-by: Alvaro Sanchez-Leon <alvsan09@gmail.com>
2016-10-25 15:33:51 -04:00
Alvaro Sanchez-Leon
5ab506c95e Bug 303808: Remove GdbConsoleInvertColorAction and use preferences
Change-Id: Ic99160ff208eb71457093003b4cf070a9dfda540
Signed-off-by: Alvaro Sanchez-Leon <alvsan09@gmail.com>
2016-10-25 15:32:54 -04:00
Sergey Prigogin
d203d965a2 Added "PRESERVE" comment to protect some nodes from removal.
Change-Id: I63038293cf66fb81fa30ab0d14f847d9c4bfea4d
2016-10-25 10:52:13 -07:00
Alvaro Sanchez-Leon
b63adf43db Bug 303808: Add a Preference page for GDB CLI consoles
In addition, a new "Preferences" Action is available for
the GDB CLI consoles so the user can easily find/adjust them.

Change-Id: I8d2756683f92ca9b42454906dd600c97e1e07cd2
Signed-off-by: Alvaro Sanchez-Leon <alvsan09@gmail.com>
2016-10-24 21:43:11 -04:00
Alvaro Sanchez-Leon
1cfa38948c Bug 303808: Share GDB process streams among console pages
The GDB process streams now stay opened regardless of
the life-cycle of associated console views.  This allows to close
the Debugger Console view without affecting the debugging session.

At the same time, closing and re-opening the Debugger Console
causes new console pages to be created, but should not
cause multiple jobs to read from the same input stream.

Change-Id: Ief78aa2053e5a54514773a8f24f0a465364a7351
Signed-off-by: Alvaro Sanchez-Leon <alvsan09@gmail.com>
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2016-10-24 17:33:27 -04:00
Nathan Ridge
3fc681c299 Bug 487764 - Add a highlighting for variables passed by non-const reference
The highlighting is disabled by default.

Change-Id: I0b9e587c3b9d7206614937893d535825a4be99e5
2016-10-24 00:35:28 -04:00
Nathan Ridge
d459bad872 Follow-up to the DependentValue refactoring
Replace some uses of IntegralValue with DependentValue that were missed
originally.

Change-Id: Ieac5757c042378082c8d38f4883d7e495f64d208
2016-10-23 02:15:20 -04:00
Nathan Ridge
e9c6ca09e8 Bug 486682 - Syntax coloring of macro arguments that occur in reverse order in the AST
This patch also fixes a couple of other bugs related to syntax coloring of
macro expansions, which are exposed by this change (bug 490415, bug 496696).

Change-Id: I3c0030ff61e721e099dc50afc109dd44e37276a3
2016-10-22 21:15:11 -04:00
Marco Syfrig
82f4fac87b removed unused imports
Change-Id: I3c2df7a891b2f58d2efc60a23cd4c360a16c5b56
Signed-off-by: Marco Syfrig <marco.syfrig@gmail.com>
2016-10-21 11:25:05 -04:00
Doug Schaefer
fa84dad370 Make launchMode a core thing and add Debug for CMake configs.
Change-Id: Ie431824dddda07cd6985e5b644970eb525280577
2016-10-20 20:01:52 -04:00
Doug Schaefer
0868cf82ee Fix include paths to make them relative to the project file for Qt.
Change-Id: I81c334a2c0ed85487a60ef14a6f28d7b87b6fbf3
2016-10-20 12:02:48 -04:00
Doug Schaefer
78ba80e1d5 Add New Empty CMake project wizard.
Change-Id: I6f4fc0db27a863700eafcac751fa168dc32d96d5
2016-10-19 18:32:48 -04:00
Nathan Ridge
fbccef3ff1 Bug 402498 - Apply declaredBefore() filtering to index bindings
Change-Id: I3086c35cf294970d4adbb65dd6aa3708710f9c02
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
2016-10-19 11:24:43 -04:00
Nathan Ridge
ed65559753 Split IntegralValue into IntegralValue and DependentValue
Change-Id: I2bf312ab03e04636991256bcdb4711a23851f139
2016-10-18 17:09:44 -04:00
Doug Schaefer
5540c75ce0 Fixes to remove duplicates and invalid CMake toolchain entries.
Change-Id: I1a8212945428b00d332b9f78c5a3eb81091f3fe6
2016-10-17 23:11:52 -04:00
Sergey Prigogin
47784c8980 Minor cleanup.
Change-Id: I5d9cb2aba6a4501dc25615f4950069390afb8f6d
2016-10-17 13:01:10 -07:00
Doug Schaefer
5d7b64cd11 Fix the BinaryRunner deadlock correctly.
Change-Id: I23907639a4f550c3ed0406f7229b9459deebb4d0
2016-10-17 10:52:58 -04:00
Doug Schaefer
e76ec05aab Bug 503036 - Fix deadlock caused by previous fix.
Change-Id: Ic333a7f0230e6a28033fd6659408895b34f5b70e
2016-10-14 14:46:46 -04:00
Jonah Graham
4d0a556446 Bug 505868: Split clean command when cleaning lots of files
This change overcomes the Cannot run program "rm": Command line
too long error when there are hundreds to thousands of files.

This change only applies to the interal builder.

Change-Id: Idc32067e27d76e3b438b2b1a07376859c7c8d1e4
2016-10-14 09:56:25 -04:00