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

23543 commits

Author SHA1 Message Date
Alena Laskavaia
32d1a28f49 codan tests - removed sleeps and made sure it runs in non-ui thread
Change-Id: Ic684e647ea43968c7da35e0f9448e01e66c06e8f
2015-02-21 22:07:10 -05:00
Alena Laskavaia
2fca26b8e5 codan tests - make use of comment tags in tests
Change-Id: I822ea36bfa49164b43954ae80bc9fd223ae8d0f6
2015-02-21 22:06:56 -05:00
Morten Kristiansen
f680519739 [Bug 460131] Eclipse bin dir prepended to cross tool path
java.io.File is used to store the path to the cross tools.
getAbsolutePath is invoked before variables are expanded. Hence File
cannot see the path is already absolute and therefore prepends CWD.
Reverted to getPath, since conversion to full path would not make sense
anyway.

Change-Id: I13e5b2c0d7747741926a88e120d13003b910e8c6
Signed-off-by: Morten Kristiansen <millibit@gmail.com>
2015-02-20 21:41:04 -05:00
Marc Khouzam
9c05b3506a Add test suite for GDB 7.9 and move Automated Suite to use GDB 7.9
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2015-02-20 16:01:33 -05:00
Marc Khouzam
74bd3e0c66 Update script to support GDB 7.9
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2015-02-20 15:58:34 -05:00
Simon Marchi
7402cd3123 [dsf-gdb] Put back event assert in
MIMemoryTest.writeCharVarying{Address,Offset}

When we switched SyncUtil.readMemory to use queries, it exposed a race
condition with the asserts that check for the number of event received.
Basically, nothing guarantees that when the assert is evaluated the
event had the time to arrive.

We now use a ServiceEventWaitor to wait until the event arrives (with a
timeout, of course).

At the same time, rename word_size to wordSize.

Change-Id: I6f4b51e22f46625e20bbbdbac91cf70cfd864e5e
Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
2015-02-20 14:27:39 -05:00
Simon Marchi
7328220fe6 [dsf-gdb] Add expected message in MIMemoryTest.writeWithInvalidAddress
Change-Id: Id1f46c879669e3a428bbc8039ff6363be35a9cb6
Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
2015-02-20 14:14:00 -05:00
Simon Marchi
18a8a45323 debug tests: add missing massageTimeout
Change-Id: I6be611a345de90f36996151fb910449292938f15
Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
2015-02-20 14:09:12 -05:00
Marc Khouzam
61ee8133f2 Small cleanup in the tests.
Change-Id: I3236c0efc3de5dbc9b21ed33afbbaeb1439f4864
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2015-02-20 14:07:17 -05:00
Simon Marchi
6f0f5d1cc4 debug tests: Move some tests from AsyncCompletionWaitor to Query
Change-Id: Ic9860c369c8cc0cf4bf9d72d83c09e60a119e9b6
Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
2015-02-20 14:05:51 -05:00
Matthew Khouzam
b67e0bcc56 bug 454501: make replace private method with String.trim()
Change-Id: I5bb0fbc12ab70bdaa2b80c3367de92633834801e
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
2015-02-20 14:05:30 -05:00
Simon Marchi
315a204251 debug tests: Convert MIDisassemblyTest to queries
Change-Id: I15a3f49e50c55d42c66b901bf302ed01f974ae98
Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
2015-02-20 14:04:10 -05:00
Simon Marchi
989d77bf7a Make disassembly default end address relative to start
As it is now, if you pass a start address but no end address (null), the
disassembled range will be [startAddress, $pc + 100], which does not
quite make sense.

I think the intention was to have the default end address be whatever
the start address is, + 100.

Change-Id: I1399cc116ecde6cfbdb2f1ec54a181e64a7f4c5f
Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
2015-02-20 13:55:03 -05:00
Iulia Vasii
6b512c3be4 Bug 459296 - catch exception when 'Reset and Delay' field has invalid
value

Change-Id: Id1c7e3b54d7b9cedb4d8441d8735cd759df55236
Signed-off-by: Iulia Vasii <IuliaMadalina.Vasii@freescale.com>
2015-02-20 09:50:45 -05:00
Simon Marchi
e90766e72a Change some comments from non-javadoc to javadoc
This way, we can ctrl-click them.

Change-Id: Ic9dcf299e865deac57e4cc1a29ce11578c651b16
Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
2015-02-20 09:48:47 -05:00
Nathan Ridge
80c624f2c3 Bug 455828 - Don't be over-eager when collecting dead nodes in the
control flow graph

Change-Id: I54013e31a197c02698e3161f9f52755e4cb6b203
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
2015-02-20 09:30:19 -05:00
Matthew Khouzam
bb8cc948c4 clean up GDBTypeParser
Reduce function complexity and comply with java coding styles.
Convert some larger ifs to switches for performance sake.

Change-Id: Ief2672141511a1373cdd8a98e0fa2eeb564816e1
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
2015-02-19 17:09:29 -05:00
Marc Khouzam
74106910dd Bug 460370 - Remove reference to CDT project name in Welcome screen
Change-Id: I5532b0f4b2f1c47d45fab056769187bca1895427
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2015-02-19 13:46:31 -05:00
Alvaro Sanchez-Leon
33f85536b5 Bug 460241 - [Memory] Make tests run with different values of addressable size
Change-Id: I594071e3cee9a99d24dfcae3c080995610ffb533
2015-02-19 12:44:07 -05:00
Marc-Andre Laperle
8c0df4e50b Remove Jetty from 4.5 target
Both Jetty 8 and Jetty 9 were getting included in the target platform. It seems
that those two versions can't co-exist and Eclipse fails to start.

Change-Id: I33e94458b34c339f8bffa5f64830958fe00a2e2d
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2015-02-19 10:10:32 -05:00
Alena Laskavaia
10cb69009a removed mandatory sleeps to speed-up tests
Change-Id: Id55eb28cc5f98ccfaff9ab88eb6fff87352519d2
2015-02-19 08:32:01 -05:00
Sergey Prigogin
b2f459e075 Bug 460183 - Template resolution problem with trailing-return-type
function in index

Change-Id: I87d1ef78b064d187b4dd204ce1e040b98418808b
2015-02-18 23:26:11 -05:00
Nathan Ridge
43097ce04e Bug 455828 - Proper handling of 'switch' without explicit default
(including empty switch)

Change-Id: I3e20400f86c5e4273d8b0c62ed9ac3f429a84879
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
2015-02-18 19:30:08 -05:00
Nathan Ridge
3586267e6b Bug 455828 - Proper handling of 'break' inside compound statement in a
case of a switch

Change-Id: I73329a8769bc20a4fc4e017faad627e03adce9d9
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
2015-02-18 19:08:59 -05:00
Sergey Prigogin
340b507e38 Cosmetics. 2015-02-18 15:28:36 -08:00
Alena Laskavaia
3cf5ec86ee Bug 327375 control flow graph regression - dead connector nodes
basically for the code like
if (a) return 1; else return 2;
a++; // this should be a dead code node

but we don't check connector node of "if" and don't add
it to dead nodes graph resulting it this code not being marked as dead,
which can lead to false positives or false negatives for checkers that
use that. Same apply for other control statements...

Change-Id: Iafb4b48ca960f0ffab2c0265285a31cb08eb0d11
2015-02-18 16:42:59 -05:00
Marc Khouzam
3edc86361c Add cdt-e4.5.target file
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2015-02-18 16:27:49 -05:00
Marc Khouzam
78cd08f40d Allow for filtering of findbugs
Choose version 2.5.2 which is what is supported by CDT's HIPP.  Note that by removing the version altogether, the latest available findBugs would be selected.  However, this could lead to different results between manual builds and HIPP builds, which is why I thought it would be better to specify the version explicitly.

FindBugs can be run by adding the string

 findbugs:findbugs

as a maven parameter, either in a local maven build, or on HIPP.

Add releng/findbugs-exclude.xml to control the errors shown by FindBugs.
The content of that file was copied from the TM project, but should
eventually be ajusted for CDT.

Change-Id: Ibc8348b9286f00580a4079a7ca3c669708bc6194
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2015-02-18 11:50:43 -05:00
Simon Marchi
059db21d52 debug tests: Fix error in SyncUtil.fillMemory doc
Change-Id: I7b1ab19b52a9c080c569a95e9ea11cbd45d987cb
Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
2015-02-18 11:35:37 -05:00
Simon Marchi
5ad1f5c4c3 debug tests: MIMemoryTest: Use runToLocation when possible
Change-Id: I66f76039cecf5333826be1b75556437a059c71b9
Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
2015-02-18 11:35:36 -05:00
Simon Marchi
544dbb5af8 [debug tests] Remove superfluous breakpoint tag
There is a superfluous LINE_MAIN_BEFORE_THREAD_START that is causing
problems, remove it.

Change-Id: I57c4637ada0b5efda2848029e5216a13cf638067
Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
2015-02-18 11:34:54 -05:00
Doug Schaefer
7fdd6f6e90 Fix up API @since tags against CDT 8.6.
Change-Id: I31966aa0dc312bb7ba77b6ce91eecd01ad4891ce
2015-02-17 23:43:49 -05:00
Simon Marchi
9ed8f75f74 Change word_size to wordSize
... to respect the coding style.

Change-Id: Ie68422182afad2532ce9238665bb06576fc3cc18
Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
2015-02-17 20:37:37 -05:00
Nathan Ridge
d0ef9d1d82 Bug 455828 - General cleanup in ControlFlowGraphBuilder
Change-Id: I46cfe23fc10bed235d091afaec8eec29dd7d62ac
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
2015-02-17 20:07:04 -05:00
Doug Schaefer
cd65a29016 Bug 459972 - Update CDT to use o.e.remote 2.0.
Requires a couple of changes in the autotools plug-ins. Change the
4.5 target to refer to the remote 2.0 build and update the pom to
use the 4.5 target.

Also fixes autotools test so they run on the Mac.

Change-Id: I145de3ea3f14d61ffba7354ad0fa3e0ec2467e26
2015-02-17 14:48:08 -05:00
Vladimir Prus
9471bc7bc1 Extract MIExpressions.getBasicType.
This permits derived classes to reimplement the logic for getting
expression value without copy-pasting the logic for getting type.

Change-Id: I21b048afaee8433d17e873b7aaf4f7b118edd107
2015-02-17 12:13:17 -05:00
Marc Dumais
ae9445c5ae Bug 460015 - [visualizer] Make VisualizerThread "m_locInfo" field
protected instead of private

Change-Id: Idd6faafa39fae849839072a96dc8296ebd27652c
2015-02-17 08:31:48 -05:00
Alvaro Sanchez-Leon
ef889c26f9 Bug 459901 - [visualizer] The visualizer may display duplicate elements
Change-Id: I9fb3fb8f85ec51afde48a665e275c6080b9b9bab
2015-02-17 08:31:11 -05:00
Sergey Prigogin
7e3a37be7b Revert "Revert "Bug 459940 - Sfinae in id-expression""
This reverts commit a3147f85b0.

The regression manifests itself only during indexing but doesn't produce unresolved symbols in C++ editor. Restoring the original change since the regression is relatively benign. Will continue to investigate.

Change-Id: I1fdfb4c31a0d5c08c3bc88baaf11d36c708cd883
2015-02-16 21:41:45 -05:00
Sergey Prigogin
a3147f85b0 Revert "Bug 459940 - Sfinae in id-expression"
This reverts commit 5e2c5d8491.

The change caused few regressions on my code base. Investigating.

Change-Id: I765b1fb5e730387ec3e91d4ecdfdb8c06db3e45e
2015-02-16 20:36:17 -05:00
Alvaro Sanchez-Leon
384e9759c4 Bug 459114 - [visualizer] Make it possible to override the construction of the data model
Change-Id: Ib2af550136fa3ca638fd970e3c2e40ddf597ba80
2015-02-16 13:44:26 -05:00
Doug Schaefer
275feb6874 Bug 459971 New SerialPort support. First step is Mac library.
Java classes are defined and a pretty simple native library for
Mac is there. Tested with Arduino so I know reading works. This
implementation should work for Linux as well. Windows is going to
be the hard one.

Not checking in the binaries yet until I get more testing with them.

Also remove ppc native libraries for Mac since that hasn't been
supported in a long time.

Change-Id: If4ffbc6e73a7656a47c2f45b875be0842c482b05
2015-02-16 13:19:54 -05:00
Sergey Prigogin
52c80c124e Bug 402498. Do not rely on promiscuous binding resolution for adding
includes.

Change-Id: Idace39cc9ff9b781bf0de2d0017533548fb69e83
2015-02-16 01:54:30 -05:00
Nathan Ridge
0221ee20b1 Bug 441714 - Consider spurious semicolons in CaseBreakChecker
Change-Id: Id4fe394164063007c45da37ae82cc730a9e726dd
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
2015-02-16 01:48:37 -05:00
Nathan Ridge
155fa65c1c Fix a typo in org.eclipse.cdt.codan.ui.cfgview/plugin.xml
Change-Id: I41aeb1195e9d8b663de396883e0aa6e4f3b5c6e4
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
2015-02-16 01:45:53 -05:00
Nathan Ridge
a662bcc921 Bug 448764 - Type of EvalMemberAccess for dependent member
Change-Id: I011ceca370e584e802354f935cc9ce004641f8f1
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
2015-02-16 01:44:56 -05:00
Nathan Ridge
5e2c5d8491 Bug 459940 - Sfinae in id-expression
Change-Id: I6cfaf2af680c3b41571d4714f9a5511ff81af42b
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
2015-02-13 22:42:41 -05:00
Marc Khouzam
04f7079574 Remove dead code
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2015-02-13 16:20:47 -05:00
Marc Khouzam
59e43f8253 Close resources
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2015-02-13 16:18:44 -05:00
Marc Khouzam
002e422dac Remove unused private method
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2015-02-13 16:14:09 -05:00