1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 14:42:11 +02:00
Commit graph

39 commits

Author SHA1 Message Date
Alvaro Sanchez-Leon
ee48887d9d Bug 489750: [Standalone] does not set working directory of the target
process correctly

Change-Id: Ia6d9f1ee64b573d2cba3bba780c2b8c90fe0757d
Signed-off-by: Alvaro Sanchez-Leon <alvsan09@gmail.com>
2016-05-03 10:50:35 -04:00
Alex Blewitt
2356a29c70 Bug 492200 - Replace StringBuffer with StringBuilder
There are many opportunities for replacing `StringBuffer` with
`StringBuilder` provided that the type isn't visible from the
public API and is used only in internal methods. Replace these
where appropriate.

Change-Id: Ic2f50c5b6f3c3a4eae301bb3b40fb6faed235f79
Signed-off-by: Alex Blewitt <alex.blewitt@gmail.com>
2016-04-21 22:17:03 -05:00
Alex Blewitt
2114f6b108 Bug 491984 - Replace .equals("") with .isEmpty()
In many cases a String's empty status is tested with `.equals("")`.
However, Java 1.6 added `.isEmpty()` which can be more efficient since
it compares the internal length parameter only for testing. Replace
code using the `.isEmpty()` variant instead.

Some tests for `"".equals(expr)` can be replaced with `expr.isEmpty()`
where it is already known that the `expr` is not null; however,
these have to be reviewed on a case-by-case basis.

Change-Id: I3c6af4d8b7638e757435914ac76cb3a67899a5fd
Signed-off-by: Alex Blewitt <alex.blewitt@gmail.com>
2016-04-19 13:35:54 -04:00
Marc-Andre Laperle
75c2dcebf9 Stand-alone debugger for Mac OS X
This commits adds support for the stand-alone debugger on Mac OS X
for both the RCP (product) and the script. The script had to be
modified slightly because of the different installation layout on Mac
and also the use of non-standard arguments to the 'find' command.

Change-Id: I24e4fec98803689dbaadb1dcfa651e431d4188a7
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2016-04-02 22:59:15 -04:00
Marc-Andre Laperle
f4a98d1894 Add missing launchbar.core depedency to stand-alone debugger script
The depedency was added to the product before but not to the script.
This means the stand-alone debugger worked in the form of the
product but not the script bundled as part of other Eclipse products.

Change-Id: I3e9da14a7522524a6bec73d3d9e9d22263f17093
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2016-04-02 22:59:15 -04:00
Jonah Graham
ff7f25b94d Bug 484900: Remove Majority of CDI classes
This is the first change to remove CDI from CDT. The CDI model
implementation is removed along with everything that directly
depends upon the implementation.

This commit does not include refactoring or moving classes. The few
insertions are the minimum necessary.

Change-Id: I80274e1a0d77bc7bb00a2afe4babc00c4f7613ae
Signed-off-by: Jonah Graham <jonah@kichwacoders.com>
2016-03-08 19:18:05 -05:00
Marc Khouzam
b745736775 Incremented CDT features version to 9.0.0
This includes bumping the standalone debugger to 9.0.0

Change-Id: I55fae1cec995b5f6865a5b174c004ed1b76e9bea
2016-01-18 16:37:47 -05:00
Marc Khouzam
f3ff649041 Fix copyright of all CDT plugins using the copyright tool from platform.
This commit does not add missing copyrights, just updates the date on
the existing ones.

Change-Id: I646f5afd533a1fcc539bdf2e0686b22f406ecf65
2016-01-03 20:38:31 -05:00
Marc-Andre Laperle
803bf0db80 Bug 458771 - Cannot refresh an editor in standalone debugger
-Add Refresh command to File menu.
-Enable 'Refresh on Access' by default, like Eclipse for C/C++ package
-Reorder the File menu a bit so that Exit is last

Change-Id: I3636cd20da1a2523ca1574674cf6ebc59a124860
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2015-10-13 16:39:36 -04:00
Marc-Andre Laperle
886cc17c35 rcp: Fix stand-alone build with Eclipse 4.6 target
Change-Id: I8dc5fdd98add54f34ee0d5b8d833c058ceae0f59
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2015-10-05 15:17:36 -04:00
Marc-Andre Laperle
3415575b19 Add Error view to Stand-alone debugger
Add Error view to both the rcp and the script.
Also update the script to include com.google.gson which is required by
cdt.core.

Change-Id: I3975420cff8c912c07949384226bfa655a1a10e3
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2015-09-28 22:53:20 -04:00
Marc-Andre Laperle
c137a9dfbc Build stand-alone debugger RCP for Windows
Change-Id: I50dae8e3cfb47c4db7f0354e57753055958e3d2c
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2015-07-28 23:21:29 -04:00
Marc Khouzam
bb61124897 Incremented CDT feature version to 8.8.0
Change-Id: Ib1189a08a5f0225fd676b682dc8a10477ad3acc5
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2015-06-10 09:33:49 -04:00
Marc-Andre Laperle
45abca9bdb Bug 460167 - RCP for the Stand-alone debugger
This patch creates a product so that the stand-alone can be downloaded
without
the rest of the C/C++ EPP. It also makes it easier to use because the
user only
has to launch the executable, just like a regular Eclipse instead of
finding
the script.

To try the RCP:

mvn clean package -Pbuild-standalone-debugger-rcp

The result (tar.gz) is available under
debug/org.eclipse.cdt.debug.application.product/target/products
Once extracted, it can be started just like the normal script:
./cdtdebug -e myexecutable

Change-Id: Ifb849af8a8f2ec03abcae57cf43d57cde2333759
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2015-05-19 14:29:06 -04:00
Marc Khouzam
fdf3867071 Bug 467109 - Add new dependency to standalone debugger.
Looks like platform 4.5 now depends on
org.eclipse.e4.core.di.annotations and some others

Change-Id: Ic7ecde8e52c825a563956ffeb1b56407f6d98325
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
(cherry picked from commit 0434220f80)
2015-05-13 14:01:40 -04:00
Marc Khouzam
e820f872ad Incremented CDT feature version to 8.7.0
Change-Id: Ife0feaaa9263d2b7797e31d628250bd26caff1b5
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2015-05-04 21:07:13 -04:00
Marc Khouzam
37890019cb Remove warnings caused by change to getAdaptable()
getAdaptable() in 4.5 M6 has changed to use generics, making casting its
result no longer necessary.

Change-Id: Idd943216a925576bb72c784b2c5a2a4b8e8b00d2
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2015-03-25 11:01:46 -04:00
Marc-Andre Laperle
c6156d2ee6 o.e.cdt.debug.application should export its packages
Change-Id: Ifeb5f78d776eca939187738180434000b0b2f8b2
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2015-01-29 17:42:05 -05:00
Jeff Johnston
f433cb1e85 Bug 458066 - cannot specify pid to Standalone Debugger
- allow pid to be specified following -a option for Standalone debugger
- if pid is specified, use it to set the ATTR_ATTACH_PROCESS_ID
  setting for the launch configuration
- setting the pid will cause the process dialog not to appear and
  the debugger will attempt to debug the given process
- an invalid pid will result in in the dialog being opened
- the pid is not used with the -r option and is ignored
- updated the README file and docs

Change-Id: I5a1d39f97285ad41dcb986dfb4692f9d808bafeb
2015-01-29 17:24:25 -05:00
Sergey Prigogin
252eaf4c0f Incremented CDT feature version to 8.6.0.
Change-Id: Ic90c8e6a68d21e5b90ec3fac997da6a95a29bedf
Signed-off-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Reviewed-on: https://git.eclipse.org/r/39066
Tested-by: Hudson CI
2015-01-06 19:40:38 -05: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
Marc Khouzam
39b1ed1b97 Setting preferences for standalone debugger plugin.
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2014-11-20 11:07:36 -05:00
Marc Khouzam
13b0270d5c Replace hard-code launch types with their constants.
Change-Id: I05f25d4429c110c07a000328cfc64646a17a059b
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2014-11-13 16:33:53 -05:00
Marc Khouzam
bb5d400d4f Cleanup commented printouts
Change-Id: I2c0850456401cde432b3489f334614e06e27d58c
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/36270
2014-11-13 15:24:47 -05:00
Marc Khouzam
d82e3738e1 Bug 439830 - Standalone debugger launch script can fail when 'source'
plugins present

Change-Id: I011313c9afe6e4a1d4d5db6a386928149f4b4add
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/30076
Tested-by: Hudson CI
Reviewed-by: Jeff Johnston <jjohnstn@redhat.com>
Tested-by: Jeff Johnston <jjohnstn@redhat.com>
2014-07-29 12:43:19 -04:00
Marc Khouzam
58330519ae Update README for standalone debugger to match recent changes.
Change-Id: I45c1c184c2b79b9bb463b6217fdbf6104e0c5abd
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/30659
Tested-by: Hudson CI
Reviewed-by: Jeff Johnston <jjohnstn@redhat.com>
Tested-by: Jeff Johnston <jjohnstn@redhat.com>
2014-07-29 12:13:07 -04:00
Marc Khouzam
f6534f6922 Improve Standalone Debugger scripts
- Fix indentation
- Call install.sh from cdtdebug.sh if installation needed.
  This should help the user realize they can run the script
  outside if the eclipse installation directory after the first time.
- Use a subshell to run pwd to avoid having to actually change
directory.
- Tag the line that needs to be modified with a marker to make it
future-proof.
- Use find instead of ls which is easier to parse.
- Allow to run install.sh without doing a cd to its location
- Allow to run original cdtdebug.sh without doing a cd to its location

Change-Id: I3f63dcf8a307784b0c38a286e645ea962ce62dc4
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/29834
Tested-by: Hudson CI
2014-07-29 08:16:32 -04:00
Sergey Prigogin
d8154bd340 Inremented branding plugin version to 8.5 2014-07-21 17:39:01 -07: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
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
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
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
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
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
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
Marc Khouzam
5c919ac834 about.html does not get included due to missing backslash
Change-Id: I27bb60faf0b50733c3fc0cc830a081dcb10816e7
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/27116
Tested-by: Hudson CI
Reviewed-by: Jeff Johnston <jjohnstn@redhat.com>
Tested-by: Jeff Johnston <jjohnstn@redhat.com>
2014-05-22 11:57:01 -04:00
Jeff Johnston
6acb6dbc70 Add CDT Standalone Debugger
- add org.eclipse.cdt.debug.application plugin which supports running
  CDT debugger as Eclipse application
- add org.eclipse.cdt.debug.application.docs plugin which is the
modified
  CDT docs
- add org.eclipse.cdt.debug.standalone-feature which bundles the
  two aforementioned plugins
- add org.eclipse.cdt.debug.standlone.source-feature

Change-Id: I1a1ae855ab3912e678b7d9e3465e2fbbfe949e13
Reviewed-on: https://git.eclipse.org/r/25845
Reviewed-by: Jeff Johnston <jjohnstn@redhat.com>
Tested-by: Jeff Johnston <jjohnstn@redhat.com>
2014-05-05 15:39:30 -04:00