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

23523 commits

Author SHA1 Message Date
Andrew Ferrazzutti
cc2fe9086b Update Autotools SWTBot tests.
Change-Id: I830ca99f83548a5fc0e6fcfdeb26d00cd68e3060
Signed-off-by: Andrew Ferrazzutti <aferrazz@redhat.com>
Reviewed-on: https://git.eclipse.org/r/29608
Tested-by: Hudson CI
Reviewed-by: Jeff Johnston <jjohnstn@redhat.com>
Tested-by: Jeff Johnston <jjohnstn@redhat.com>
2014-07-17 14:08:03 -04:00
Thomas Corbat
0f355b1929 Fixed tautologic comparison in ASTFileLocation.equals()
Signed-off-by: Thomas Corbat <tcorbat@hsr.ch>
2014-07-17 12:55:12 +02:00
Thomas Corbat
f68e29865e Bug 408545 - Increased version of o.e.c.mangedbuilder.gnu.ui from 8.2.1
to 8.3.0.

Signed-off-by: Thomas Corbat <tcorbat@hsr.ch>
2014-07-16 09:44:23 +02:00
Thomas Corbat
7fa06c6dc5 Added Anders Dahlberg to the copyright header of AST2CSpecTest. 2014-07-16 08:42:01 +02:00
qdagans
91ee2851a4 Bug 84144 - [Parser2] GCC: labels as values
Cleanup test cases in AST2CSpecTest

Signed-off-by: qdagans <anders.xb.dahlberg@ericsson.com>
Change-Id: I4d546019a2ec61418d33d7b0cb1e888e609b4006
Reviewed-on: https://git.eclipse.org/r/29830
Tested-by: Hudson CI
Reviewed-by: Thomas Corbat <tcorbat@hsr.ch>
Tested-by: Thomas Corbat <tcorbat@hsr.ch>
2014-07-16 02:37:53 -04:00
Marc-Andre Laperle
b280f247ae Bug 438476 - Fix autotools MinGW and Cygwin build
Change-Id: I10bfb868718bf564dc74d53be6ff7453f1349dc5
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/29435
Tested-by: Hudson CI
2014-07-15 21:06:31 -04:00
Leo Ufimtsev
29b783155f Bug 408545 - Added single checkbox to enable gcov. (edit commit msg)
I added a checkbox to enable gCov via a single checkbox to 
        enable gcov in the compiler. It then uses the 
	applicability calculator to automatically enable the linker if
	the compiler option is set.

Signed-off-by: Leo Ufimtsev <lufimtse@redhat.com>
Change-Id: I561d7263d578a7807e890fce5518e6fc2ebb2bb2
Reviewed-on: https://git.eclipse.org/r/29403
Reviewed-by: Elena Laskavaia <elaskavaia.cdt@gmail.com>
Tested-by: Elena Laskavaia <elaskavaia.cdt@gmail.com>
2014-07-15 16:48:21 -04:00
Alvaro Sanchez-Leon
4ec3cdbbe7 Bug 437562 - Split the dsf-gdb tests to a plug-in and fragment pair
Change-Id: I7dbdfe98795242a3c96a3ed87532a993dd7db685
Signed-off-by: Alvaro Sanchez-Leon <alvsan09@gmail.com>
Reviewed-on: https://git.eclipse.org/r/28602
Reviewed-by: Marc Khouzam <marc.khouzam@ericsson.com>
Tested-by: Hudson CI
2014-07-14 12:34:41 -04:00
Doug Schaefer
3936530e86 Show the proper ILaunchGroup in the LaunchBar Mode Selector. 2014-07-14 12:27:24 -04:00
Doug Schaefer
d9013538b8 Fix loading of the active descriptor in the launchbar. 2014-07-13 20:38:58 -04:00
Doug Schaefer
283a3f1bd7 Fix up the label providers for the launchbar. 2014-07-13 18:27:19 -04:00
Doug Schaefer
b318ffaedb Bug 437392 - Add support for multiple target types per launch thing.
Introduces a whole lot new concepts that will be documented in the
wiki.

Change-Id: Idd05d5232b88be7ac1d400e5b9618cf08716abf4
Reviewed-on: https://git.eclipse.org/r/29849
Tested-by: Hudson CI
Reviewed-by: Doug Schaefer <dschaefer@qnx.com>
2014-07-13 15:24:40 -04:00
Alena Laskavaia
8f40037326 LaunchBar - show actually modes
fixed drop down selector to show actual mode names and icons instead of
only debug and run

Change-Id: Idd80cf8a14b382b76d5bd16ed6a52b98790fe865
Reviewed-on: https://git.eclipse.org/r/29833
Tested-by: Hudson CI
Reviewed-by: Elena Laskavaia <elaskavaia.cdt@gmail.com>
2014-07-11 19:42:16 -04:00
elaskavaia
d25c5fa5b9 LaunchBar - make stop button work
Change-Id: I0940b9593c41bc1530b0ca28410d06431f66b0f5
Reviewed-on: https://git.eclipse.org/r/29832
Tested-by: Hudson CI
Reviewed-by: Elena Laskavaia <elaskavaia.cdt@gmail.com>
2014-07-11 16:46:15 -04:00
Iulia Vasii
13c929ccdf Bug 437065 - Import executable wizard will not warn user that there's
already such file in existing project

Change-Id: Id75e97943f6f5a82bd1e731fd4e64a89eeb54fbf
Signed-off-by: Iulia Vasii <IuliaMadalina.Vasii@freescale.com>
Reviewed-on: https://git.eclipse.org/r/28344
Tested-by: Hudson CI
Reviewed-by: Teodor Madan <teodor.madan@freescale.com>
Tested-by: Teodor Madan <teodor.madan@freescale.com>
2014-07-11 09:24:06 -04:00
Thomas Corbat
f81b783269 Bug 84144 - Occurrence marking for label references. 2014-07-10 13:20:38 +02:00
Thomas Corbat
6dff32c96a Bug 84144 - ASTWriter extension for IGNUASTGotoStatements and label
reference operator. Including tests.

Signed-off-by: Thomas Corbat <tcorbat@hsr.ch>
2014-07-10 10:26:51 +02:00
Thomas Corbat
4f239a093a Cosmetics and refactoring related to commits of bug 84144
Signed-off-by: Thomas Corbat <tcorbat@hsr.ch>
2014-07-10 09:28:20 +02:00
qdagans
bf0ac98464 Bug 84144 - [Parser2] GCC: labels as values
Add support for GNU goto label references.

"http://gcc.gnu.org/onlinedocs/gcc-3.3.2/gcc/Labels-as-Values.html#Labels%20as%20Values
GCC extensions to C allow taking the address of labels. These addresses can be used in a goto statement where any expression of type void * is allowed:

foo:
  void* labelPtr = &&foo;
  goto *labelPtr;", comment from Andrew Niefer

Add new classes and necessary changes in existing classes to support the above.
Updated to not change API.

Signed-off-by: Anders Dahlberg <anders.xb.dahlberg@ericsson.com>
Change-Id: Ibb69ce7748f201c15bdf2da05348c157cdd5aaae
Reviewed-on: https://git.eclipse.org/r/29574
Tested-by: Hudson CI
Reviewed-by: Thomas Corbat <tcorbat@hsr.ch>
Tested-by: Thomas Corbat <tcorbat@hsr.ch>
2014-07-09 05:10:09 -04:00
Doug Schaefer
17d10e5823 Missed icons directory from launchbar.ui's build.properties. 2014-07-08 11:43:00 -04:00
Jeff Johnston
1d05fa900e Bug 438782 - Add check in Standalone Debugger install script
- add a check in the Stand-alone Debugger install script to
  catch the situation where the eclipse binary is not found
  in the expected directory relative to this script

Change-Id: I9f179c80085e5a80a5f4d7fafe1636a7cec38021
Reviewed-on: https://git.eclipse.org/r/29568
Tested-by: Hudson CI
Reviewed-by: Jeff Johnston <jjohnstn@redhat.com>
Tested-by: Jeff Johnston <jjohnstn@redhat.com>
2014-07-07 17:00:58 -04:00
Doug Schaefer
b9f7061070 Bug 437392 Add the launchbar to the cdt repo.
Change-Id: Ifd0b4f585caf7f4bcd0e9a258169d0e8086ea346
Reviewed-on: https://git.eclipse.org/r/29565
Reviewed-by: Doug Schaefer <dschaefer@qnx.com>
Tested-by: Doug Schaefer <dschaefer@qnx.com>
2014-07-07 14:41:07 -04:00
Andrew Eidsness
da09460352 Bug 437525: NPE in QMakeProjectInfoManager
This fixes the NPE but not the underlying reason for the Qt plugin to be
activated.  I think that might be happening because of the Codan checker
-- from what I recall, that extension point doesn't have a way to
prevent plugin activation.

The NPE is fixed by checking CACHE for null before using it.  The #stop
method unregisters and sets CACHE to null.  However, unregistering
doesn't prevent notifications that are already in flight.  I suspect
that notification arrives, and then CACHE is null.

My test workspace would throw the NPE on every exit, with this change it
never does.

Change-Id: I01360a4c19c85fba53269d265948daf6d083c8d1
Signed-off-by: Andrew Eidsness <eclipse@jfront.com>
Reviewed-on: https://git.eclipse.org/r/28751
Tested-by: Hudson CI
Reviewed-by: Doug Schaefer <dschaefer@qnx.com>
2014-07-07 10:23:45 -04:00
Marc Khouzam
bb3fd559c9 Bug 344739 - RejectedExecutionException when terminating a PDA launch
Change-Id: I28cdfcd9aef6c7ece39c29b82459825698dc71bc
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/29488
2014-07-07 10:22:39 -04:00
Thomas Corbat
875e21efb0 Bug 430342 - Completion of template arguments.
Change-Id: Iaf1c43ce826f6676b941689f39fc81ea5e25daa8
Reviewed-on: https://git.eclipse.org/r/29440
Tested-by: Hudson CI
Reviewed-by: Thomas Corbat <tcorbat@hsr.ch>
Tested-by: Thomas Corbat <tcorbat@hsr.ch>
2014-07-07 03:05:57 -04:00
qdagans
8649b65570 Bug 84144 - [Parser2] GCC: labels as values
Add support for GNU goto label references.

"http://gcc.gnu.org/onlinedocs/gcc-3.3.2/gcc/Labels-as-Values.html#Labels%20as%20Values
GCC extensions to C allow taking the address of labels. These addresses can be used in a goto statement where any expression of type void * is allowed:

foo:
  void* labelPtr = &&foo;
  goto *labelPtr;", comment from Andrew Niefer

Add new classes and necessary changes in existing classes to support the above.

Change-Id: I60b64957af3fdfd5463e89c2a36eea13bd280887
Signed-off-by: qdagans <anders.xb.dahlberg@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/28826
Tested-by: Hudson CI
Reviewed-by: Elena Laskavaia <elaskavaia.cdt@gmail.com>
2014-07-05 20:34:13 -04:00
jjohnstn
92c9224591 Bug 438310 - Add --help option to cdtdebug.sh
- do some parsing of options in cdtdebug script
- allow all options after -e executable to be passed to main and
  not processed by Eclipse (e.g. -clean)
- prohibit -vmargs option from being used

Change-Id: Id40044a3dc9170f57c848447793dfa9aa044d60e
Reviewed-on: https://git.eclipse.org/r/29494
Tested-by: Hudson CI
Reviewed-by: Jeff Johnston <jjohnstn@redhat.com>
Tested-by: Jeff Johnston <jjohnstn@redhat.com>
2014-07-04 22:23:22 -04:00
Doug Schaefer
e5f667c97e Give the launchbar 3 more pixels of margin.
It was feeling a bit cramped.
2014-07-04 16:38:24 -04:00
Marc Dumais
42f137042f Bug 437692 - Refactor OpenNewViewActionDelegate to permit
programmatically adding OpenNewViewAction to view toolbars/menu

Change-Id: I7adc6e0e70206bd3671011632300816636dab450
Reviewed-on: https://git.eclipse.org/r/28709
Reviewed-by: Marc Dumais <marc.dumais@ericsson.com>
Tested-by: Marc Dumais <marc.dumais@ericsson.com>
2014-07-04 12:58:05 -04:00
Doug Schaefer
d911875741 Update LaunchBar APIs to deal with multiple target types per desc.
Also fixed up the case in new workspaces. And added the feature.
2014-07-04 10:47:35 -04:00
Doug Schaefer
67939973fb Update LaunchBar APIs to deal with multiple target types per desc.
Also fixed up the case in new workspaces.

Change-Id: Ibbabc549034614c8095510c630da73f7eec171e3
Reviewed-on: https://git.eclipse.org/r/29427
Reviewed-by: Doug Schaefer <dschaefer@qnx.com>
Tested-by: Doug Schaefer <dschaefer@qnx.com>
2014-07-03 15:49:00 -04:00
Marc-Andre Laperle
b87b828496 Bug 436935 - Invalid thread access when exiting Eclipse after debugging
Change-Id: I7068ba3558e367c2fde35abbaaa89b9122c0f4b6
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/28184
Tested-by: Hudson CI
Tested-by: Alvaro Sanchez-Leon <alvsan09@gmail.com>
Reviewed-by: Elena Laskavaia <elaskavaia.cdt@gmail.com>
Reviewed-by: Marc Khouzam <marc.khouzam@ericsson.com>
2014-07-03 08:03:43 -04:00
Marc Khouzam
60255bc58d Bug 438367 - Expressions shown in advanced hover are re-evaluated on
every debug event

Change-Id: Id281d505ee770ba492ad51a8322a4150aee60401
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/29104
Reviewed-by: Anton Leherbauer <anton.leherbauer@windriver.com>
2014-07-02 09:12:18 -04:00
Xavier Raynaud
dd8dc157ee Bug 438635 - executeWithTargetAvailable steps need public constructors
Change-Id: I351c9ba773319bed99b4d05520e5995fb426c21d
Signed-off-by: Xavier Raynaud <xavier.raynaud@kalray.eu>
Reviewed-on: https://git.eclipse.org/r/29253
Reviewed-by: Marc Khouzam <marc.khouzam@ericsson.com>
Tested-by: Marc Khouzam <marc.khouzam@ericsson.com>
2014-07-02 09:08:04 -04:00
Marc Dumais
8ce51305f0 Bug 434889 - GDBHardwareAndOS#isAvailable() always returns false
Change-Id: Ie8094e5e19be800ea333403f4a7fb73747cdf378
Reviewed-on: https://git.eclipse.org/r/26542
Reviewed-by: Marc Dumais <marc.dumais@ericsson.com>
Tested-by: Marc Dumais <marc.dumais@ericsson.com>
2014-07-02 08:11:14 -04:00
Doug Schaefer
4e8156ebbd Persist active target selection. 2014-07-01 20:00:45 -04:00
Doug Schaefer
2f995b6acb Cleared up the target model making it a provider responsibility.
The launch config descriptor provides the list of targets for a
given (usually active) config. The manager still manages which one
is active.
2014-07-01 19:47:36 -04:00
Marc Khouzam
6dd184d9be Bug 429621 - [non-stop] CDT doesn't wait for "stopped" notification from
GDB before setting breakpoints

Change-Id: I002a8e9e1b376b83d1ea82987a7df026cab7670f
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/28891
Tested-by: Hudson CI
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2014-06-30 13:38:34 -04:00
Jonathan Williams
48496423ab Bug 438414 - Fix NPEs in new launch toolbar
Fixed NPEs occuring from improper initialization/function in
CDTLaunchConfigProvider and LaunchBarManager

Change-Id: I84b70d25dc0d9787e0b45ceb3f79bf4258e06744

Change-Id: I1ee942e73af383a8e691d7d4e8308a099d715fbd
Signed-off-by: jonwilliams@qnx.com
Reviewed-on: https://git.eclipse.org/r/29130
Reviewed-by: Doug Schaefer <dschaefer@qnx.com>
Tested-by: Doug Schaefer <dschaefer@qnx.com>
2014-06-27 14:11:46 -04:00
Sergey Prigogin
fbca073d79 Navigate to template definition by default. 2014-06-25 15:07:34 -07:00
Jeff Johnston
6592f4dc24 Bug 438092 - Advanced Autotools flags not set for C++ projects
- Replace previous fix with better one
- Continue to use the name CFLAGS for the compiler flags but add
  a default value of CFLAGS|CXXFLAGS so that multiple flags will be
  issued on configure
- enhance the FlagConfigureOption to handle multiple flags at once by
  using the value and splitting on the | delimiter to generate separate
  multiple flags if needed
- Change title of Autotools compiler flag options to be
  Compiler Flags instead of CFLAGS (previous) and CFLAGS|CXXFLAGS (new)
- Add transformed name for CFLAGS|CXXFLAGS
- Add tests to verify multiple flags are used


Change-Id: Ic7f8028f07469d04c9de3105f818a5e37e06246a
Reviewed-on: https://git.eclipse.org/r/28943
Tested-by: Hudson CI
Reviewed-by: Jeff Johnston <jjohnstn@redhat.com>
Tested-by: Jeff Johnston <jjohnstn@redhat.com>
2014-06-25 15:09:54 -04:00
Sergey Prigogin
e6b392ffbc Bug 438114 - Friend function declaration is not reconciled with other
declarations
2014-06-24 20:20:54 -07:00
Sergey Prigogin
820b901b69 Cosmetics. 2014-06-24 20:17:28 -07:00
Jeff Johnston
753276a27d Bug 438092 - Advanced Autotools flags not set for C++ projects
- enhance the FlagConfigureOption to handle multiple flags at once by
  accepting the | delimiter in the name and generate separate multiple
  flag outputs using the children flag value options
- add a new CFLAGS|CXXFLAGS flag so that both CFLAGS and CXXFLAGS will
  be set at the same time (to handle both C and C++ source)
- modify the Autotools tests to verify the fix works

Change-Id: I4e97c1a16381a3a10404e2fd20f8e49d99590db5
Reviewed-on: https://git.eclipse.org/r/28941
Tested-by: Hudson CI
Reviewed-by: Jeff Johnston <jjohnstn@redhat.com>
Tested-by: Jeff Johnston <jjohnstn@redhat.com>
2014-06-24 18:15:45 -04:00
Marc-Andre Laperle
1f29931ff1 Bug 437067 - Hide read-only references in Search view
Change-Id: I0f6a864342d54dd3bae6563eba6ce72273d99647
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/28287
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Hudson CI
2014-06-24 15:34:59 -04:00
Doug Schaefer
976806367d Add the missing files for the new CDT launchbar provider plugin. 2014-06-24 11:54:25 -04:00
Doug Schaefer
8686c2bfce Start adding CDT launchbar provider. 2014-06-24 11:53:42 -04:00
Doug Schaefer
92aea028d9 Add a bit of history to config selections. 2014-06-24 10:25:00 -04:00
Alena Laskavaia
a287a76c34 Bug 431026 - NPE while checking Assembler resources (*.S - files)
Change-Id: I1a3454ff2592137345c3a40b4acf7b2ec3049724
Signed-off-by: Alena Laskavaia <elaskavaia.cdt@gmail.com>
Reviewed-on: https://git.eclipse.org/r/28724
2014-06-21 10:58:22 -04:00
Alena Laskavaia
db43e03878 Bug 394521 Do Constant folding propagation when building CFG
When building control flow graph we can consider constants
and not add some branches in decisions nodes, that make CFG
more accurate and elimate some false positives

Change-Id: I19c623e1e6d2dc7416a0e796a98168df7a976111
Signed-off-by: Alena Laskavaia <elaskavaia.cdt@gmail.com>
Reviewed-on: https://git.eclipse.org/r/28726
2014-06-21 10:57:37 -04:00