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

25 commits

Author SHA1 Message Date
Jonah Graham
92c9ed1622 Move https://wiki.eclipse.org/CDT/StandaloneDebugger to GitHub
Part of #32
2022-11-09 10:56:55 -05:00
Jonah Graham
2c3f1110ca
Bug 580365: Explicitly use bash for standalone debugger shell scripts (#69)
The scripts assume that /bin/sh is bash, but it isn't on all installs,
in particular Ubuntu: https://wiki.ubuntu.com/DashAsBinSh

Change-Id: I8ea05b2ffd1fd41b3aa1e6b395e43fc15a15321f
2022-09-09 17:10:08 -04:00
Torbjörn Svensson
e632011f2c Bug 568728: Drop execute permission on files
Add enforecment script that verifies that only specified file types are
allowed to be mared as executable.

Change-Id: I4b40e3a46b03bfc78a9dcd52e8bf29cb079b7f3b
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-11-18 17:38:22 +01:00
Jonah Graham
f70a8b35c1 Bug 540371: Update to EPLv2 using releng/scripts/change_to_eplv2.sh
Change-Id: Ifbb1d5af2a00bd5634dea200320e8c4303ffca6c
2018-11-22 20:31:51 +00:00
Jeff Johnston
72ec4daaa5 Bug 538994 - cdtdebug: argv parameters are wrapper by double-quotes
- modify cdtdebug.sh to use arrays to gather up options and then
  to use "${options[@]}" in the final string so each option is
  properly quoted if necessary

Change-Id: Id7fec3bb0a6804f2124f837e1171f386ae5801f8
2018-09-18 16:37:15 -04:00
Marc-Andre Laperle
36f66d36b2 Generate config.ini for stand-alone debugger based on debug.product
Before this change, we had to remember to edit the config.ini every time
a dependency was modified in debug.product. This change introduces a
script during the build that generates the config.ini with the same list
of plugins specified in debug.product.

The cdtdebug.sh start-up script was simplified in the process because
the config.ini includes all platform-specific plugins now and they just
won't get loaded if they are not a match for the environment.

Change-Id: I658b0dd8688088e203966a154e6154f1b2c851f4
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2017-03-17 00:31:07 -04:00
Marc-Andre Laperle
30b3165eb3 Bug 497512 - cdtdebug.sh "bashisms" not supported by non-bash shells
Also include the latest version of plugins when launching
(tail vs head). This makes a difference when the plugins were
updated.

Change-Id: Id97c9247f0507e177592ca3631348bf8f7fd3dbf
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2016-10-11 11:25:46 -04:00
Alvaro Sanchez-Leon
37b722500d Bug 504005 - [standalone] bundle version errors
Change-Id: Id7ed91a7f7d24ca25bb5820dff39c7272a806e0d
2016-10-11 00:28:01 -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-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 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
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
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
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
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
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
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