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

23308 commits

Author SHA1 Message Date
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
Nathan Ridge
517b811599 Bug 452325 - Protect against IVariable.getInitialValue() calling itself
recursively along any code path

Change-Id: Idbf46ca82b431e72bf6b2598427430c37ef65cc4
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
Reviewed-on: https://git.eclipse.org/r/37220
Tested-by: Hudson CI
Reviewed-by: Elena Laskavaia <elaskavaia.cdt@gmail.com>
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2014-12-08 13:39:24 -05:00
Mikhail Khodjaiants
b38273c84d Bug 434558 - Disconnect actually terminates the session if launch
element is selected

Change-Id: I7a0064b9d9ed316079f0da80834fef278701f568
Reviewed-on: https://git.eclipse.org/r/26318
Reviewed-by: Marc Khouzam <marc.khouzam@ericsson.com>
Reviewed-by: Mikhail Khodjaiants <mikhailkhod@googlemail.com>
Tested-by: Mikhail Khodjaiants <mikhailkhod@googlemail.com>
2014-12-04 21:49:41 -05:00
Alena Laskavaia
863def95be Bug 453275 - Codan tests cannot test for checkers throwing an exception
Added system flag that is used to propagate exception
instead of swallowing. Set by default in codan junit tests.

Change-Id: Iccda9a7b2e419192bb9f4eec4b89d525e152fc81
Signed-off-by: Alena Laskavaia <elaskavaia.cdt@gmail.com>
Reviewed-on: https://git.eclipse.org/r/37482
2014-12-04 13:57:27 -05:00
Simon Marchi
c6865cfb7d Bug 378154 - Display thread name reported by GDB in Debug view
Change-Id: I3e04a56d218fdb2f189c06968c4f2d2671327838
Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
Reviewed-on: https://git.eclipse.org/r/36435
Tested-by: Hudson CI
Reviewed-by: Marc Khouzam <marc.khouzam@ericsson.com>
Tested-by: Marc Khouzam <marc.khouzam@ericsson.com>
2014-12-03 13:40:23 -05:00
Marc Khouzam
d317c16080 Bug 378154 - Update Thread node format to better show thread name when
available


Change-Id: I5eb79a125dfd8b289537ff15b82ab98c5ace2818
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/37276
Tested-by: Hudson CI
Reviewed-by: Simon Marchi <simon.marchi@polymtl.ca>
2014-12-03 13:40:07 -05:00
Alena Laskavaia
0f49ec2015 Avoid ClassCastException in Codan Run job
Occasionally Run Code Analysis actions get text selection
instead of structured selection so it is failing and logging
CCE. Avoid this by non accepting other selections.

Change-Id: Ia3583755547e5251a057290e506184656ebf2d5a
Signed-off-by: Alena Laskavaia <elaskavaia.cdt@gmail.com>
Reviewed-on: https://git.eclipse.org/r/37306
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2014-12-02 19:38:08 -05:00
Alvaro Sanchez-Leon
8667f5a5ae Bug 453618 - Trace unsuccessful DSF Request Monitor at done()
Change-Id: Ia0191fedc9e2dcbcfa244636fbff7b0a640044d1
Reviewed-on: https://git.eclipse.org/r/37320
Tested-by: Hudson CI
Reviewed-by: Marc Khouzam <marc.khouzam@ericsson.com>
Tested-by: Marc Khouzam <marc.khouzam@ericsson.com>
2014-12-02 12:21:16 -05:00
Marc Khouzam
f327ccd103 Bug 453568 - RM.done() can be called twice under heavy load at termination
Change-Id: I2a02ff21a1b4a928df29b5c95c6293e7667bc48f
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/37312
Reviewed-by: Alvaro Sanchez-Leon <alvsan09@gmail.com>
2014-12-02 10:23:31 -05:00
Alena Laskavaia
b53246227a Optimzed Qt codan checker not to lock the ask if not running
Change-Id: Iff6749ea46f9c6970b4e96e47d8554846feb0dfe
Signed-off-by: Alena Laskavaia <elaskavaia.cdt@gmail.com>
Reviewed-on: https://git.eclipse.org/r/37304
2014-12-01 17:00:12 -05:00
Alena Laskavaia
1e517e23e4 another attempt to fix race condition in Qt tests
after tests were fixed found funny bug that was there forever test was
creating incorrect header file because our comment extractor takes
comment from first occurence of function name, it is not actual java
parser. Because indexer was not running test was passing.

Change-Id: Ib0cea722e6c9766949d07b629ef7a9197529ef45
Signed-off-by: Alena Laskavaia <elaskavaia.cdt@gmail.com>
Reviewed-on: https://git.eclipse.org/r/37410
Tested-by: Hudson CI
2014-12-01 16:58:28 -05:00
Marc-Andre Laperle
351f1b86a4 Upgrade to Tycho 0.22
Change-Id: I4d4a1f43a27ca286dc04312badc96c9dd775e8af
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/36953
2014-12-01 14:12:59 -05:00
Sergey Prigogin
04042aeeb9 Bug 450888. Fixed inconsistent handling of significant macros. 2014-11-29 16:54:24 -08:00
Sergey Prigogin
0460895b24 Cosmetics. 2014-11-29 16:26:05 -08:00
Marc Khouzam
73c1e5e224 Bug 450080 - Add option for remote launch to stand-alone debugger
Change-Id: Ifcbfd598d90305ac24bddf96893d4170201858c9
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/36700
Tested-by: Hudson CI
Reviewed-by: Jeff Johnston <jjohnstn@redhat.com>
Tested-by: Jeff Johnston <jjohnstn@redhat.com>
2014-11-28 18:08:38 -05:00
Alena Laskavaia
8bc2e3a81b FileListControl adjustments
* Changed button bar layout to be et the end, rather some-what in the
middle
* Make SelectPathInputDialog remeber previously entered path
* Make workspace selection dialog set proper initial selection, even if
this widget runs without cdt context

Change-Id: I04caec8c05b644977ec0dda622beefa2b8c9eba2
Signed-off-by: Alena Laskavaia <elaskavaia.cdt@gmail.com>
Reviewed-on: https://git.eclipse.org/r/37032
Tested-by: Hudson CI
2014-11-27 16:26:15 -05:00
Alena Laskavaia
8c6bad3c80 Propertly implemented stubs for NewLaunchConfigEditPage
This code is required if any LaunchTab interacts with other tabs in LC


Change-Id: I5d5e3b6d4e51b1f3ee0ac6297ebb4d88ad220224
Signed-off-by: Alena Laskavaia <elaskavaia.cdt@gmail.com>
Reviewed-on: https://git.eclipse.org/r/36955
Tested-by: Hudson CI
2014-11-25 10:33:45 -05:00
Simon Marchi
cf0b905a5a MIThread: Use "enhanced" for loop
Change-Id: Iba8397b94b25682e9ebe5afececdb7932355a692
Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
Reviewed-on: https://git.eclipse.org/r/36436
Reviewed-by: Marc Khouzam <marc.khouzam@ericsson.com>
Tested-by: Marc Khouzam <marc.khouzam@ericsson.com>
2014-11-25 09:03:27 -05:00
Sergey Prigogin
f4a12cb474 Bug 450888. A failing test case for the example in comment #0. 2014-11-24 18:50:10 -08:00
Sergey Prigogin
264a95da6c Bug 450888. Trigger index rebuild since storing of source files changed. 2014-11-24 18:17:18 -08:00
Sergey Prigogin
9a6e5cde11 Removed dead code. 2014-11-24 18:15:21 -08:00
Sergey Prigogin
0ab02df0d8 Fixed a deprecation warning. 2014-11-24 18:13:49 -08:00
Sergey Prigogin
30c61470fb Cosmetics. 2014-11-24 18:12:08 -08:00
Simon Marchi
6c9b53ea60 Use TestsPlugin.massageTimeout in resumeUntilStopped
The targets that define dsf.gdb.tests.timeout.multiplier need extra time to execute in resumeUntilStopped.

Change-Id: I2de513ea2de63d4276a49fb6daa4aa6892a5e843
Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
Reviewed-on: https://git.eclipse.org/r/35907
Reviewed-by: Marc Khouzam <marc.khouzam@ericsson.com>
Tested-by: Marc Khouzam <marc.khouzam@ericsson.com>
2014-11-24 16:18:27 -05:00
Simon Marchi
ab31b3bcbb debug tests: Trigger rebuild when any header file changes
We could go more complicated and only rebuild those source files that are
affected by the changes in the header files, but I think this is a good
compromise.

Change-Id: I508e8ca0176408c68a16e09c51f005446aace099
Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
Reviewed-on: https://git.eclipse.org/r/36797
Tested-by: Hudson CI
Reviewed-by: Marc Khouzam <marc.khouzam@ericsson.com>
Tested-by: Marc Khouzam <marc.khouzam@ericsson.com>
2014-11-24 16:15:15 -05:00
Simon Marchi
15980decb9 debug tests: Make runToLine take an integer for the line number
I don't see any reason to take a String for a line number. This avoids
doing Integer.toString in a few places.

Change-Id: I4618b8c783100a406ff25d229b3b703b1d24f772
Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
Reviewed-on: https://git.eclipse.org/r/36876
Reviewed-by: Marc Khouzam <marc.khouzam@ericsson.com>
Tested-by: Marc Khouzam <marc.khouzam@ericsson.com>
2014-11-24 16:09:16 -05:00
Nathan Ridge
c78d2fe823 Bug 451772 - Syntax-color names of structures in C files
Change-Id: I193648ffd15f581af75f71d62261068543a5769d
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
Reviewed-on: https://git.eclipse.org/r/36887
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2014-11-23 21:43:42 -05:00