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

23334 commits

Author SHA1 Message Date
Simon Marchi
dd4ae589c2 debug tests: Add runningOnWindows() method to BaseTestCase
Change-Id: Ic7fd197cdaddf8824ac1ef43261c056678433865
Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
Reviewed-on: https://git.eclipse.org/r/38727
Reviewed-by: Marc Khouzam <marc.khouzam@ericsson.com>
Tested-by: Marc Khouzam <marc.khouzam@ericsson.com>
2014-12-23 14:42:12 -05:00
Simon Marchi
1333b20ec5 Avoid gdb bug in StepIntoSelectionTests for gdb <= 7.3
When a breakpoint is set directly at the start of a function, and you step
into that function, gdb <= 7.3 will generate a "stopped" event with two
reason fields. The first to indicate that the step range ended and the
other to indicate that a breakpoint was hit. While this is not really
correct from gdb to include the same field twice in a single event,
the implementation of MIRunControlEventProcessor_7_0 will generate two
distinct MIStoppedEvent events. This confuses the step-into-selection
mechanism, who will issue two finish/step-return instead of one.

For all gdbs, we will have a test where the breakpoint is a not at the
function entry.

Then, for gdb > 7.3, we will have the same test but with the breakpoint
at the function entry, to test that particular case. This case is known
to be broken with gdb <= 7.3 (rather old) and will stay that way unless
somebody feels like fixing it.

So, for both:

- atDoubleMethodStopAtBreakpoint
- atDoubleMethodSkipBreakpoint

I extracted the code in a common function which takes in parameter the
line to set the breakpoint at.

Change-Id: I2ae4bc527afe0ab195e9b066279ed92f74d652f3
Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
Reviewed-on: https://git.eclipse.org/r/38717
Tested-by: Hudson CI
Reviewed-by: Marc Khouzam <marc.khouzam@ericsson.com>
Tested-by: Marc Khouzam <marc.khouzam@ericsson.com>
2014-12-23 13:46:48 -05:00
Sergey Prigogin
b74feb2c3d Bug 456099 - Renaming a class should also rename related files 2014-12-23 10:30:31 -08:00
Sergey Prigogin
f86ee9bbf7 Cosmetics. 2014-12-23 10:30:29 -08:00
Sergey Prigogin
d26dc27212 Adjusted method visibility. 2014-12-23 10:30:28 -08:00
Sergey Prigogin
5cd381dfe8 Cosmetics. 2014-12-23 10:30:26 -08:00
Marc Khouzam
77c0f78b4f Bug 456083 - Wrong preference scope causes test dependencies
Change-Id: I36b91e6c0c8180919e033d7630db92f148b69214
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/38721
Tested-by: Hudson CI
2014-12-23 10:58:53 -05:00
Marc Khouzam
355503f746 Typos
Change-Id: I78bd2f2f640dcac283bf0bc4259d6acf3080a3c2
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2014-12-23 09:25:44 -05:00
Doug Schaefer
1681eb8676 Revert "Bug 451929 - Leverage p2 ability to express native packages"
This is breaking downstream builds.

This reverts commit 18e6101a53.

Change-Id: I5dd2ee129518757866ab832c683b648d13b07b83
Reviewed-on: https://git.eclipse.org/r/38594
Tested-by: Hudson CI
Reviewed-by: Doug Schaefer <dschaefer@qnx.com>
2014-12-23 00:05:47 -05:00
Marc Khouzam
ca6d07cf0c Bug 455992 - MIRunControlTest.getExecutionContexts fails when run in
remote mode 

Change-Id: I869a7496e63380f3839d641105fa29fc0c1c3b74
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/38692
Tested-by: Hudson CI
2014-12-22 15:22:58 -05:00
Michi
c647a52118 Bug 434446 - [code assist] struct not being recognised as a valid base
class

structs are now being shown as candidates for base classes

while I was at it I also fixed proposals for typedefs, template
parameters and template aliases.

Change-Id: I319b06a195eed88a12969207a21584dc2477219e
Signed-off-by: Michi <woskimi@yahoo.de>
Reviewed-on: https://git.eclipse.org/r/38379
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2014-12-19 15:15:55 -05:00
Sergey Prigogin
5ba7b39f01 ICPPAliasTemplate and ICPPAliasTemplateInstance are not supposed to be
extended or implemented by clients.
2014-12-18 14:27:33 -08:00
Marc Khouzam
a38c6c6d86 Bug 441277 - Fix colliding tab ids in example plugin that extends
DSF-GDB

Change-Id: Iac8e2802e78db88d6fcf6e4ee048df1efacd6303
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2014-12-18 16:14:21 -05:00
Vladimir Prus
34dc9a5b7d Bug 453321 - Convenient field access for MITuple/MIResultRecord
Change-Id: Id43f2cb9b52743792fc7f9ce40d16914d8e257b4
Signed-off-by: Vladimir Prus <vladimir@codesourcery.com>
Reviewed-on: https://git.eclipse.org/r/37090
Reviewed-by: Marc Khouzam <marc.khouzam@ericsson.com>
2014-12-18 14:27:29 -05:00
Marc Khouzam
13893bc0ea Bug 441277 - Provide an example plugin to show how to extend DSF-GDB
Change-Id: Ic6efd321d09bfc4d62344244c419dc6b0b9758ec
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/30660
Tested-by: Hudson CI
2014-12-18 12:32:59 -05:00
Sebastian Bauer
accfa032aa Bug 389536 - NPE in AdditionalInput for projects containing files with
custom build-steps.

Tools for custom build steps normally don't belong to a tool chain. We
assume now that the inputs don't need to be rebuilt rather than
provoking a NPE.

The actual fix is similiar to the patch added to the mentioned bug
originally been created by Piotr Aniola. It has been extended with a
test case demonstrating the problem (and the fix).

Change-Id: I5f17248cbe8e84779144bb5f1873c5b9456baa16
Signed-off-by: Sebastian Bauer <mail@sebastianbauer.info>
Reviewed-on: https://git.eclipse.org/r/38206
Tested-by: Hudson CI
Reviewed-by: Elena Laskavaia <elaskavaia.cdt@gmail.com>
2014-12-18 08:25:30 -05:00
Marc Khouzam
c631da77c6 Bug 455408 - Show GDB version at startup
Change-Id: Ib22d98d31ed2c03c3ef3a0b5a22f8a22c6ee3e50
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/38387
Reviewed-by: Mikhail Khodjaiants <mikhailkhod@googlemail.com>
Tested-by: Mikhail Khodjaiants <mikhailkhod@googlemail.com>
2014-12-17 15:33:22 -05:00
Marc Khouzam
5aa10c7fc0 Bug 455537 - Allow to override LaunchVMProvider
Change-Id: If74576fcf9764d08b76a968a5bf788445d294166
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/38434
2014-12-17 15:17:25 -05:00
Nathan Ridge
57fbe42664 Bug 429534 - NPE in CElementHyperlinkDetector.detectHyperlinks()
Change-Id: I9572985aa6585a47d5230adad813fdb6639748bf
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
Reviewed-on: https://git.eclipse.org/r/38394
Tested-by: Hudson CI
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2014-12-17 13:38:12 -05:00
Nathan Ridge
5ccf40dd20 Bug 450969 - NPE in AbstractDocCommentProposalComputer.getResource()
Change-Id: I2e5eaf358f958e12463f98c81863a0c330695945
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
Reviewed-on: https://git.eclipse.org/r/38393
Tested-by: Hudson CI
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2014-12-17 13:37:34 -05:00
Pascal Rapicault
18e6101a53 Bug 451929 - Leverage p2 ability to express native packages
Change-Id: I0d2d4b5088a0148d3f0dc7690448fe231ae45103
Signed-off-by: Pascal Rapicault <pascal@rapicorp.com>
Reviewed-on: https://git.eclipse.org/r/38272
Reviewed-by: Doug Schaefer <dschaefer@qnx.com>
Tested-by: Doug Schaefer <dschaefer@qnx.com>
2014-12-16 17:28:33 -05:00
Marc Khouzam
a68c04f9ef Bug 455236 - Create tests for GDB 7.9
Change-Id: Iab5d27bdb2e921bedb9e519c3f55b84ccc0d0197
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/38265
Reviewed-by: Alvaro Sanchez-Leon <alvsan09@gmail.com>
2014-12-16 15:29:47 -05:00
Marc Khouzam
d8ce095a37 Bug 455237 - Move VisualizerVirtualBoundsGraphicObjectTest to
org.eclipse.cdt.dsf.gdb.tests

Change-Id: I88b6da473df3ebc124d6c250bd581127fd12615c
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/38269
Tested-by: Hudson CI
2014-12-16 13:29:46 -05:00
Marc Khouzam
6004528ff6 Update to new CDT Logo
Change-Id: Iac76b204027efa01c8f848050a36d05022ecdf86
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/38363
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2014-12-16 13:29:12 -05:00
Doug Schaefer
3c14369a9a Bug 437392 - Remove LaunchBar from CDT repo.
It is now located in the cdt/org.eclipse.launchbar repo. The intention
is to move it to a project lower down the stack so it can be reused
accross Eclipse.

Change-Id: I9d623fa372fcf6e345ba68a8830db190a75e0d28
Reviewed-on: https://git.eclipse.org/r/38266
Tested-by: Hudson CI
Reviewed-by: Doug Schaefer <dschaefer@qnx.com>
2014-12-15 14:13:45 -05:00
Doug Schaefer
c8ba1b6c3a Get rid of the extra schema includes to expressions.
This causes build errors when using Mars.

Change-Id: I5b7aaa261e252b7aa7a2afe5a86398c4f24af0aa
Reviewed-on: https://git.eclipse.org/r/38174
Reviewed-by: Doug Schaefer <dschaefer@qnx.com>
Tested-by: Doug Schaefer <dschaefer@qnx.com>
2014-12-14 17:42:12 -05:00
Alena Laskavaia
24d2e1a4c8 Bug 447486 - codan - CCE is thrown by control flow graph builder
- addOutgoing cannot join JumpNode - block will be added to dead list
instead
- addjusted goto code to not use addOutgoing but using setJump directly
- corrected code that doing fake return to deal jump nodes at the end
- corrected code that marks up dead code to remove jump targets
- corrected code that calculates all nodes in the graph to take into
account dangling labels
- fixed CFG viewer to show unconnected labeled statements

Change-Id: Ie4d9e37678e3ebaae8e9f268e6f37342e14a1444
Reviewed-on: https://git.eclipse.org/r/38189
Tested-by: Hudson CI
Reviewed-by: Elena Laskavaia <elaskavaia.cdt@gmail.com>
2014-12-14 13:09:13 -05:00
Marc Khouzam
c4ea834fd6 Increase delay to let autoreconf have time to produce all files
Change-Id: I60a376028407f2c1e9c1241918e352dde8867a43
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/38172
2014-12-12 16:05:30 -05:00
Sergey Prigogin
0de7dec295 Adjusted JavaDoc. 2014-12-12 12:46:11 -08:00
Marc Dumais
6dfebae4d3 Bug 453227 - [visualizer] VisualizerView: view menu not refreshed when
opened

Change-Id: I43290b4e4632eb9bfc963510ac2fc3960e653fd6
Reviewed-on: https://git.eclipse.org/r/37072
Reviewed-by: Marc Khouzam <marc.khouzam@ericsson.com>
Tested-by: Hudson CI
Reviewed-by: Marc Dumais <marc.dumais@ericsson.com>
Tested-by: Marc Dumais <marc.dumais@ericsson.com>
2014-12-12 14:24:26 -05:00
Sergey Prigogin
5aa786349f Cosmetics. 2014-12-12 10:25:06 -08:00
Marc Dumais
7c2e81a8f6 Bug 453206 - [visualizer] update access modifiers to permit extension to
access some fields in MulticoreVisualizer class

Change-Id: Ib5a9141c77825a1f0fd9606d25503c245b397c1c
Reviewed-on: https://git.eclipse.org/r/37019
Reviewed-by: Marc Dumais <marc.dumais@ericsson.com>
Tested-by: Marc Dumais <marc.dumais@ericsson.com>
2014-12-12 13:08:34 -05:00
Marc Khouzam
d2a7ac0ff5 Bug 454089 - NullPointerException from OS Resources view
Change-Id: I2cbd7dd42b8edff5ac61a6f0f25b091dcb698be4
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/38066
Reviewed-by: Anton Leherbauer <anton.leherbauer@windriver.com>
2014-12-12 09:36:31 -05:00
Michi
702f5cb4c8 Bug 415495 - typedef/type alias change code completion proposals
Change-Id: I963ff5fc2ae073f233b04eb6a5a521d0e6610af7
Signed-off-by: Michi <woskimi@yahoo.de>
Reviewed-on: https://git.eclipse.org/r/38029
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2014-12-11 22:42:31 -05:00
Alvaro Sanchez-Leon
07dcb970fa Bug 442394 - Sometimes breakpoints set and immediately deleted when debugging with GDB
Change-Id: I3d2e54c7ca65b0a7a83fff39b1eb4b02b939493d
Reviewed-on: https://git.eclipse.org/r/37310
Tested-by: Hudson CI
Reviewed-by: Elena Laskavaia <elaskavaia.cdt@gmail.com>
Reviewed-by: Marc Khouzam <marc.khouzam@ericsson.com>
Tested-by: Marc Khouzam <marc.khouzam@ericsson.com>
2014-12-11 20:49:36 -05:00
Marc Khouzam
4fc7a1cf91 Bug 454293 - Allow extending classes to turn off CPU load
Change-Id: I9fa14da634550c2fb852a4853290ca8971d78146
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/37736
2014-12-11 15:25:56 -05:00
Simon Marchi
c817c3aed5 debug tests Makefile: don't use -pthread when on Windows
Currently, I get the following error:

g++ -gdwarf-2 -pthread -o ../bin/MultiThreadRunControl.exe
MultiThreadRunControl.cc
c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe:
cannot find -lpthread

I could install the pthreads package for mingw, and it would probably
work, but we don't use pthreads on windows, so it's better to just not
link with it.

Change-Id: I5deb58c5b69a98b77e9e9a4a744c6815c830cf20
Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/37611
2014-12-11 13:02:58 -05:00
Anton Leherbauer
e11e3d082e Bug 439631 - [dynamic printf] Backslashes in the file name should be escaped
The default dprintf string on windows contains backslashes which cause
unexpected results when printed.
2014-12-11 14:11:40 +01:00
Marc Khouzam
20c1166f1a No need to increase version a second time.
Change-Id: Ic219edbcbcc4dc718a586dc15482ffdcf5eecd23
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/37985
2014-12-10 13:29:57 -05:00
Nathan Ridge
1ea19101ff Bug 451091 - Make type of constexpr variable const-qualified
Change-Id: I2744ba8dbf2b629659f778d257b1d22483eb6c33
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
Reviewed-on: https://git.eclipse.org/r/37929
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2014-12-10 10:20:49 -05:00
Marco Stornelli
54607bd07f Bug 241355 - Added format source code save action
Change-Id: I987dda03aae1fd6c8077e2d6cd930164acfaa783
Signed-off-by: Oliver Vinn <oliver@vinn.co.uk>
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
Reviewed-on: https://git.eclipse.org/r/21420
Reviewed-by: Elena Laskavaia <elaskavaia.cdt@gmail.com>
Tested-by: Elena Laskavaia <elaskavaia.cdt@gmail.com>
2014-12-09 21:10:49 -05:00
Matthew Khouzam
67f46bce5b Bug 454502: make dwarf use valueof instead of number constructor
This may improve both memory and cpu performance. (SLIGHTLY)

Change-Id: I05c06b017b9d8e4505a17e99cde6c024bca21dd4
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/37783
Tested-by: Hudson CI
Reviewed-by: Elena Laskavaia <elaskavaia.cdt@gmail.com>
2014-12-09 20:37:38 -05:00
Marc-Andre Laperle
ae4ed4d438 swtbot: Delete projects after tests
This allows running the tests repeatedly

Change-Id: I289da60f0d3dc8d2539eeb5bc6f2b14e3bb35fb1
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/37752
Tested-by: Hudson CI
2014-12-09 12:47:26 -05:00
Alvaro Sanchez-Leon
3ab1678bc3 Bug 235747: [registers] Allow user to edit the register groups.
Bug 235747: Move register group actions to the command framework.

Change-Id: Ife5aefc1a1609309724db01d92a35750e25def24
Signed-off-by: Alvaro Sanchez-Leon <alvsan09@gmail.com>
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/13980
Tested-by: Hudson CI
2014-12-09 10:37:26 -05:00
Sergey Prigogin
a830f285fe Revert "Bug 451091 - Make type of constexpr variable const-qualified"
This reverts commit 39dce1d497.
2014-12-08 18:22:13 -08:00
Sergey Prigogin
a79825be23 Cosmetics. 2014-12-08 17:03:46 -08:00
Sergey Prigogin
24ab006419 Bug 450888. Fixed the problem decribed in comment #0 2014-12-08 16:17:59 -08:00
Sergey Prigogin
ef9d90c4f5 Cosmetics. 2014-12-08 11:55:33 -08:00
Nathan Ridge
39dce1d497 Bug 451091 - Make type of constexpr variable const-qualified
Change-Id: I432264fe733e27009dfc9cfbaa37631424af7d0c
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
Reviewed-on: https://git.eclipse.org/r/37224
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2014-12-08 13:47:22 -05:00
Nathan Ridge
98ccf145c3 Bug 377409 - Index lookup for fields of anonymous structs and unions
Change-Id: I8591e063303cbe30d44eaa0eb431fc1dd6031695
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
Reviewed-on: https://git.eclipse.org/r/37319
Tested-by: Hudson CI
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2014-12-08 13:43:43 -05:00