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

22949 commits

Author SHA1 Message Date
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
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