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

23187 commits

Author SHA1 Message Date
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
Jeff Johnston
3d78256606 Bug 437782 - Standalone Debugger does not consider the executable PATH
- add code to search PATH using "which" command if the executable consists
  of a single segment and is not absolute

Change-Id: I0e36adc99d206c4f61e58747eb3ebfc30cd1437c
Reviewed-on: https://git.eclipse.org/r/28790
Tested-by: Hudson CI
Reviewed-by: Jeff Johnston <jjohnstn@redhat.com>
Tested-by: Jeff Johnston <jjohnstn@redhat.com>
2014-06-20 12:06:44 -04:00
Doug Schaefer
49b65cb5b2 Fixed up startup, selection handling, and preferences in LaunchBar. 2014-06-19 22:13:11 -04:00
Chris Marr
fcd66c7d04 Bug 433357 - Added fix for false positives from GNU
Statement-Expressions

Change-Id: I21eb9978a156f2375e5b9e1992c297e3b6ca78ac
Signed-off-by: Chris Marr <cdabone@gmail.com>
Reviewed-on: https://git.eclipse.org/r/25600
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Hudson CI
Reviewed-by: Elena Laskavaia <elaskavaia.cdt@gmail.com>
2014-06-19 16:51:14 -04:00
Doug Schaefer
e35ccf64a8 Fixed up the disable of the LaunchBar so it really removes it.
Not sure if it's a bug, but I had to dispose of the control myself.
2014-06-19 15:32:16 -04:00
Doug Schaefer
359c8976c8 Added preference to enable/disable the launch bar. 2014-06-19 13:49:50 -04:00
Doug Schaefer
c2da55547c Bug 437392 Initial commit of LaunchBar.
The LaunchBar is a Tool Control that allows the user to select an
active launch configuration, launch mode, and a new concept, a launch
target, and the build for that combination and launch that combination.
It also provides shortcuts to create launch configurations, and edit
their properties using the existing launch config edit dialog.

Change-Id: I8c6c9b72fed9052c03d2028c4611c78872d971c4
Reviewed-on: https://git.eclipse.org/r/28727
Tested-by: Hudson CI
Reviewed-by: Doug Schaefer <dschaefer@qnx.com>
2014-06-19 12:11:52 -04:00
Marc Khouzam
397b269e26 Bug 435998 - Remove 'updateSiteName' string as they are not used
Change-Id: I55485c9cba17f544d50d8e27b77d6644493d8300
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/27500
Tested-by: Hudson CI
2014-06-18 15:54:57 -04:00
Marc-Andre Laperle
ecc63ee1df standalone debugger: Disable menus only when product is the standalone debugger
Change-Id: I62345062eddbcdae9134c5f913f771c7cf4f174f
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/28370
Tested-by: Jeff Johnston <jjohnstn@redhat.com>
Tested-by: Hudson CI
Reviewed-by: Jeff Johnston <jjohnstn@redhat.com>
(cherry picked from commit 27e173d8a1)
Reviewed-on: https://git.eclipse.org/r/28700
2014-06-18 14:43:10 -04:00
Sergey Prigogin
852659fa1d Bug 437630 - NPE in Organize Includes with a lambda expression 2014-06-17 15:18:24 -07:00
Sergey Prigogin
2163d2af4c Fixed a ClassCastException. 2014-06-17 15:17:05 -07:00
Sergey Prigogin
246d2eb69b Added editing of include guard style preference. 2014-06-17 15:15:50 -07:00
Sergey Prigogin
d962e2eee7 Automatic update of include statements and include guards when header
files are renamed or moved.
2014-06-17 15:14:50 -07:00
Sergey Prigogin
cf4556f05f Cosmetics. 2014-06-17 15:12:01 -07:00
Marc Khouzam
ce9b270a38 Bug 435998 - Get rid of all "eclipse_update_120.jpg" files in CDT
features

Change-Id: I52a71e62f8161990657e96ef52403fd7f69698a2
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/27499
2014-06-17 11:33:37 -04:00
Alena Laskavaia
16037a5f38 Bug 350168 - Return checker won't report errors in dead code
Also Bug 356908, Bug 348386

Change-Id: I48d2f74e05d2d6d7a7bf0589408ca90bc07a6922
Reviewed-on: https://git.eclipse.org/r/28527
Tested-by: Hudson CI
Reviewed-by: Doug Schaefer <dschaefer@qnx.com>
2014-06-16 10:26:43 -04:00
Jeff Johnston
45a165b37d Bug 436892 - Standalone Debugger should not delete launch while it is still running
- distinguish between specifying an executable on command line or from the
  New Executable Dialog
- remove all launch configurations for the Executables project before
  deleting the project
- tell the configurer to not save and restore
- perform super.postWindowClose() after we have saved workspace

Change-Id: I1f02f3e033e5abf6c3c90a096312de2f134f7d8c
Reviewed-on: https://git.eclipse.org/r/28175
Tested-by: Hudson CI
Reviewed-by: Jeff Johnston <jjohnstn@redhat.com>
Tested-by: Jeff Johnston <jjohnstn@redhat.com>
(cherry picked from commit 0e6641c128)
Reviewed-on: https://git.eclipse.org/r/28206
2014-06-13 16:39:55 -04:00
Jeff Johnston
19e643f373 Bug 437302 - -e requires full path
- Add support to replace paths with absolute canonical paths before
  creating links within project or creating debug launch configs

Change-Id: I253978a973a4e583bc5e63b751e5184e7b085db1
Reviewed-on: https://git.eclipse.org/r/28448
Tested-by: Hudson CI
Reviewed-by: Jeff Johnston <jjohnstn@redhat.com>
Tested-by: Jeff Johnston <jjohnstn@redhat.com>
2014-06-13 15:49:57 -04:00
Simon Marchi
87ffdc164c Bug 437182: Display as array: make error messages match field names
It seems that the fields were previously named "first index" and "last index".
Now they are named "start index" and "length".

Change-Id: Ic913f3df8b542395a73074f0803875a11fdc8450
Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
Reviewed-on: https://git.eclipse.org/r/28286
Tested-by: Hudson CI
Reviewed-by: Alvaro Sanchez-Leon <alvsan09@gmail.com>
Tested-by: Alvaro Sanchez-Leon <alvsan09@gmail.com>
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2014-06-12 22:03:31 -04:00
Marc Dumais
d642797a86 Bug 436879 - 'connect' button sometimes disabled when it shouldn't be
Change-Id: I1912ed6fa5fe7930b8af075e92aa3acf66645eb6
Reviewed-on: https://git.eclipse.org/r/28341
Reviewed-by: Anton Leherbauer <anton.leherbauer@windriver.com>
Tested-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
(cherry picked from commit 43e5ce87e6)
Reviewed-on: https://git.eclipse.org/r/28359
Reviewed-by: Marc Dumais <marc.dumais@ericsson.com>
Tested-by: Marc Dumais <marc.dumais@ericsson.com>
2014-06-11 10:34:30 -04:00
Christian Walther
7672ba3b84 Bug 436060 - Race condition in updateProjectDescriptions()
Before calling setProjectDescription() with a description that was
obtained earlier without contiguous protection by an appropriate
scheduling rule, check whether it is still current, otherwise changes to
the project made by others in the meantime may get overwritten.

Change-Id: I5d739116f2b83525a19187b3cc396e857865440a
Signed-off-by: Christian Walther <walther@indel.ch>
Reviewed-on: https://git.eclipse.org/r/27463
Tested-by: Hudson CI
Reviewed-by: Andrew Gvozdev <angvoz.dev@gmail.com>
Tested-by: Andrew Gvozdev <angvoz.dev@gmail.com>
2014-06-10 17:30:41 -04:00
Jeff Johnston
333128a63a Bug 436893 - workspace should be renamed for Standalone Debugger
- workspace is now workspace-cdtdebug

Change-Id: I04e9285a385308c5b3911c64bb175b07f8ed407d
Reviewed-on: https://git.eclipse.org/r/28207
Tested-by: Hudson CI
Reviewed-by: Jeff Johnston <jjohnstn@redhat.com>
Tested-by: Jeff Johnston <jjohnstn@redhat.com>
2014-06-09 15:30:52 -04:00
Jeff Johnston
a02bedd48e Bug 436554 - standalone debugger cannot find pushd/popd on Ubuntu
- Fix cdtdebug.sh to not use pushd/popd
- Fix install.sh script to do proper sed now that pushd is not used

Change-Id: I466af0b0b6e09a53eb11505ce480138b5b538378
Reviewed-on: https://git.eclipse.org/r/28070
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Hudson CI
Reviewed-by: Jeff Johnston <jjohnstn@redhat.com>
Tested-by: Jeff Johnston <jjohnstn@redhat.com>
2014-06-07 15:04:42 -04:00
Sergey Prigogin
25e5cffbdc Bug 436748 - Preference option missing in OrganizeIncludesBlock 2014-06-05 13:23:24 -07:00
Sergey Prigogin
e9efc2eac0 Cosmetics. 2014-06-04 20:30:44 -07:00
Sergey Prigogin
68d17bbd55 Cosmetics. 2014-06-04 20:30:16 -07:00
Jeff Johnston
dd77e62e1a Bug 436260 - Standalone Debugger not starting
- Fix config.ini to contain missing bundles such as
  org.eclipse.cdt.native and org.eclipse.core.net
- Remove missing compat bundle

Change-Id: I440be50144e5e081f295f8535e616b4fc0f94692
Reviewed-on: https://git.eclipse.org/r/27613
Tested-by: Hudson CI
Reviewed-by: Jeff Johnston <jjohnstn@redhat.com>
Tested-by: Jeff Johnston <jjohnstn@redhat.com>
(cherry picked from commit 473fe58a28)
Reviewed-on: https://git.eclipse.org/r/27992
2014-06-04 16:52:15 -04:00
Sergey Prigogin
a74fec3491 Adjusted test expectations to the modified treatment of unused includes. 2014-06-04 11:56:04 -07:00
Sergey Prigogin
c50e715749 Changed the Organize Includes default behhavior to remove unused
comments. Organize Includes is mature enough for that.
2014-06-04 10:52:49 -07:00
Sergey Prigogin
0aa493f3d8 Bug 436616 - NPE in ASTCommenter$PreprocessorRangeChecker.checkOffsets 2014-06-04 10:41:22 -07:00
Jeff Johnston
aa70cfe5d7 Fix native feature to have sourceTemplateFeature directory.
Change-Id: Ia3a51757191a1b168cf47397d47d3a1375ce2f9c
Reviewed-on: https://git.eclipse.org/r/27875
Tested-by: Hudson CI
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2014-06-04 09:29:29 -07:00
Marc Khouzam
9c98d58561 Update Debug JUnit tests to allow running tests for all GDB versions.
Change-Id: Ied36d9eb7e31ca33f04e6744f670e77dfec36f36
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/27872
Tested-by: Hudson CI
2014-06-03 20:49:45 -04:00
Marc Dumais
7204746924 Bug 436453 - [visualizer] Load meters no longer have numerical overlay
Change-Id: I456158f1a8bae8a18f4df5bd2081bcee6e8c75ae
Reviewed-on: https://git.eclipse.org/r/27829
Tested-by: Hudson CI
Reviewed-by: Marc Khouzam <marc.khouzam@ericsson.com>
(cherry picked from commit c7d2218acc)
Reviewed-on: https://git.eclipse.org/r/27837
Reviewed-by: Marc Dumais <marc.dumais@ericsson.com>
Tested-by: Marc Dumais <marc.dumais@ericsson.com>
2014-06-03 14:03:42 -04:00
Marc-Andre Laperle
1cc6d6ab8e Build with 4.4 and use target definition file for maven build
Change-Id: I1044751c600e7725fd2cb02578c28d5f45de1854
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/27631
Tested-by: Hudson CI
Reviewed-by: Doug Schaefer <dschaefer@qnx.com>
2014-06-03 11:52:57 -04:00
Marc Khouzam
8c15651c03 Bug 436349 - JUnit test for step-return for a method returning void
Change-Id: Ia449c9f599e6c5c3af9e26b4014ade6a12ae58c3
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/27735
Tested-by: Hudson CI
2014-06-02 13:12:57 -04:00
Marc Khouzam
93fe0e78c3 Bug 436349 - Local variables incorrectly show as "returned" in variables
view

Change-Id: I916ed600f31da1c1f7da0215bac02c58ebfefb0a
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/27721
2014-06-02 10:50:08 -04:00
Sergey Prigogin
27c6327cdf Cosmetics. 2014-05-30 18:18:17 -07:00