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

1654 commits

Author SHA1 Message Date
Jeff Johnston
05c45c0bae Bug 565142 - Support using CDT in Eclipse flatpak
- modify ProcessFactory to prefix commands with flatpak-spawn
  when running under Eclipse flatpak
- add new FlatpakLaunch class to dsf.gdb to do a prelaunch
  of gdbserver and set up remote port settings when debugging
  local C/C++ application under Eclipse flatpak
- add new tab to gdb when running under Eclipse flatpak
  to allow user to specify gdbserver and port number
- add new org.eclipse.cdt.flatpak.launcher plug-in which
  contains a FlatpakCommandLauncherFactory to handle copying
  header files from host to workspace when developing under
  Eclipse flatpak
- add new FlatpakCommandLauncher class which simply extends
  CommandLauncher and can be used for debugging purposes to
  distinguish from regular command launcher
- also add new FlatpakHeaderPreferencePage to allow C/C++ users
  to delete copied headers if needed
- dynamically add the headers preference page from
FlatpakCommandLaunchFactory
  if running under Eclipse flatpak
- add new ICommandLaunchFactory3 to add an interface to check if
  headers have been modified/removed and scanner info refresh
  is required
- add new org.eclipse.cdt.flatpak.launcher-feature
- give higher priority to ContainerCommandLauncherFactory so if
  running on Eclipse flatpak, the flatpak factory won't be chosen
  if both apply (i.e. building in a container but running on
  Eclipse flatpak)

Change-Id: Id68e60c4dd37c4494af10440231ac7b7bbec8d17
2020-08-25 13:45:33 +03:00
Jonah Graham
0c5093d6ff Bug 566334: Turn on API Tooling & Analysis for all bundles
Change-Id: I3cb5645eba52b0cd0e9a71069264d9c589159107
2020-08-24 17:50:56 -04:00
Jonah Graham
fd9382d8a9 Bug 562494: Update BREE to Java 11
Change-Id: I0c91aafc0cb1b179936acbd4c9df2d961899e3fa
2020-08-24 17:50:56 -04:00
Torbjörn Svensson
e4e1f6780d Bug 565628: Unify line endings for memory block configuration
As the memory browser configuration is preserved in the launch
configuration file as an indented serialized XML string, the string will
contain the result of System.lineSeparator(). As the launch
configuration file can be shared among developers with different
platforms, there is a risk that the launch configuration file is always
modified although there is no real modification, just line endings.
To avoid this scenario, always save the XML string without any
indentation or line endings.

Change-Id: I94497a924f7aa5a881ac6a32f146d2cbceb6324f
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-08-22 11:33:02 -04:00
Martin Weber
9e303185f9 Bug 564002: Restore the default pattern of the surefire-plugin
Sets the pattern to the default of upcoming tycho 2.0 in advance.

Signed-off-by: Martin Weber <fifteenknots505@gmail.com>
Change-Id: I31b3fc733d0cb888fbf6f566995ce2043f6cd621
2020-08-13 14:18:47 -04:00
Dominic Scharfe
0d50385e63 Bug 565771: Allow to extend GdbConnectCommand PID prompting mechanism
- partially refactor connect method to connectToProcesses
- rename variables to match existing ones from other methods
(attachToProcesses and the PromptForPidJob constructor)
- change visibility for attachToProcesses from private -> protected

Change-Id: I62de9e1303895faac61fec011a8cce0d59d81f71
Signed-off-by: Dominic Scharfe <dominic.scharfe@coseda-tech.com>
2020-08-12 11:45:39 -04:00
Alexander Kurtakov
080b4ba90d Set maven-antrun-plugin to 3.0.0
Don't overwrite it in plugins as version is set in
parent/pluginManagement.

Change-Id: I73d2b4d234ba83eae7ec2cd51f3e53d58256b81e
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2020-07-22 09:30:30 +03:00
Torbjörn Svensson
1a4736c725 Bug 564553: Fetch the path to GDB from GdbLaunch
In order to present the same path to the binary as actually launched,
fetch the path from the GdbLaunch instance rather than reading the
attribute from the launch configuration.

Change-Id: I9f973a590136167d1c8d19b6af52378c95645e35
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-06-24 14:39:36 -04:00
jantje
d99d06ceca Bug 564123: Remove deprecated method from EnvironmentReader
EnvironmentReader.getRawEnvVars has a better replacement,
EnvironmentReader.getEnvVars

Change-Id: I91b209f3f601b748dd5d635ff44a36765d519e49
Signed-off-by: jantje <eclipse@baeyens.it>
2020-06-13 18:01:08 -04:00
Jonah Graham
c0ffeb6474 Bug 563864: By default fail build on test failures when building CDT with maven
Change-Id: I9bd3db3850cc45abb0ea53f8885a331c7f327887
2020-06-02 15:26:57 -04:00
Jonah Graham
7cd1995573 Bug 532058: Add refresh capability to breakpoints view
Change-Id: I831a79260a3666fec62fbd4b74ca668ea4edfc8e
2020-04-26 14:02:46 -04:00
Jonah Graham
d66d3e8e85 [releng] Bump version to 10.0.0
Change-Id: I32f6f61835bdbad3cffd713965045c5097c8619f
2020-04-11 17:46:58 -04:00
Marco Stornelli
c2f51a8d23 [releng] Bump CDT version to 9.12.0
org.eclipse.cdt.debug.gdbjtag is bumped because of Bug 561343

Change-Id: I6dac283b7e9093662f57ac5c804021c4201ad6f1
2020-03-22 14:05:17 -04:00
Jonah Graham
5a6b9b4bf4 Revert "Bug 560614 - Drop dependency on ICU4J"
This reverts commit 87b627bf02.

Change-Id: I54ea1ac766437deb174eeba571a7a5094c180828
2020-03-02 06:49:24 -05:00
Alexander Kurtakov
87b627bf02 Bug 560614 - Drop dependency on ICU4J
Straightforward conversion. Still usages left that need deeper
investigation how to be done proper.
Some long time commented code removed as java formatter breaks trailing
whitespaces on save.


Change-Id: If74259bed5735b0d4cc98fc2cfa609c9c53c80c9
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2020-03-02 06:46:15 -05:00
Alexander Kurtakov
eb1b8a0dc3 Move away of deprecated tasks in maven-antrun-plugin configs.
Change-Id: Ife9d0198723d08759f08f074909b3fe2c7f62eaf
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2020-02-05 21:29:48 +02:00
Alexander Kurtakov
5e6ca30126 Fix warnings in tests.dsf.gdb.
Change-Id: I9cee87128ad23c1febca3d99206024e9a157524b
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2020-02-05 17:19:54 +02:00
Alexander Kurtakov
f90f900e48 Move away of the deprecated AbstractUIPlugin.getWorkbench
Use PlatformUI.getWorkbench instead.

Change-Id: I8c0eb2c4b3b414e61f03fc9d9becd1d574f7e26d
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2020-02-04 14:43:53 +02:00
Jonah Graham
db974aa2a8 Bug 558827: Add and/or fix branding on all features
Change-Id: I6d8b1ae2416ed673d18e7e15500dcc7c8a87786d
2020-01-09 15:11:35 -05:00
Jonah Graham
e770ac2b7b Bug 551817: Write Kichwa Coders consistently in Copyright line
Choice is one of:
Kichwa Coders Ltd
Kichwa Coders Canada Inc.
depending if contributed by UK or Canadian company

Change-Id: I5c9fb96ea6abf97858a6896911a71fa68b8400b1
2020-01-09 09:16:43 -05:00
Jonah Graham
ca1ee32031 [releng] Update comparator repo for p2 compare and replace
Change-Id: Iff7e7ba98fe37f89d1b6b0e0754ef827925e849e
2020-01-03 15:16:28 -05:00
Jonah Graham
995bf9320c Bug 558488: Fix GDB version number comparisons for GDB 10 and above
The previous code would treat GDB 10.0 as earlier than 6.8

Change-Id: Ie95d9459462636c9ae0713c65686eec64cb553fa
2019-12-19 20:03:11 -05:00
Jonah Graham
bd814fdaf9 [releng] Bump to CDT version 9.11.0
Change-Id: If729509efbddc71adb565e224437b76089d6e099
2019-12-07 15:24:34 -05:00
Baha El Kassaby
949efc6572 Bug 530443: Add support for "info sources" MI equivalent
*Implementation of -file-list-exec-source-files MI command.
*Add new Debug Sources view with tree-like structure

Change-Id: I6e734799712c059c8e53aa882777dfebd85aa0d5
Also-by: Jonah Graham <jonah@kichwacoders.com>
Signed-off-by: Baha El Kassaby <baha.elkassaby@gmail.com>
2019-11-25 12:01:21 -05:00
Jonah Graham
a5a2be90e7 Bug 552745: Disable intro screen (webkit use) in tests
Change-Id: Ib97fb00cb96af34a14d89a07d88de15c276537aa
2019-11-06 17:26:04 -05:00
Torbjörn Svensson
092b4ed3cf [releng] Add missing Bundle-Vendor to plugins
Change-Id: I889681c4748842999b708783cb7d21a801dba02d
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2019-10-24 12:50:12 -04:00
Jonah Graham
7a2ff27b91 [releng] Update comparator repo to last release
Change-Id: I00901808f1eda041f070b2f3e1cda076987c69a5
2019-10-17 10:07:44 -04:00
Torbjörn Svensson
e6de0c9385 Bug 551817 - Add about.html to src.includes for plugins
Change-Id: Id6e1a3c4aa94bf242efd62a28f5ca9de7d64f699
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2019-10-17 10:07:18 -04:00
Jonah Graham
2f5f4d50a2 [releng] Bump to CDT version 9.10.0
Change-Id: I027e7e5542fda3e599ee476814593fc4b464adca
2019-10-16 10:55:28 -04:00
Alexander Kurtakov
d0d6f57a50 Move away of deprecated imageDescriptorFromPlugin.
Change-Id: I855682065fe6b40deeedc6cd7b5cb419848caac0
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2019-10-11 08:57:51 +03:00
Alexander Kurtakov
9daf3d00e2 Remove unnecessary semicolons.
Change-Id: I4ed8830940600065d077857fd813bd38e6a5da86
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2019-10-11 00:22:24 +03:00
Alexander Kurtakov
46be0de323 Generify ListenerList.
Change-Id: Iee6fcbe412f8d90004d4ecafe6fa3e7513900971
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2019-10-10 22:55:40 +03:00
Umair Sair
9d97a36419 Bug 550165: Debugging is stuck when "command aborts" on step return
Adding unit test for MIAsyncErrorProcessor. The test adds breakpoint on
0x0 address and try to continue and step return. It asserts that the
target is in stopped state and error as reason in both cases. Then it
removes all the breakpoints and resumes the target and asserts that
target is in resumed state.

Change-Id: I2e024e0d5f55b4e9464a6f2b7a2b0c78bee4e8e8
Signed-off-by: Umair Sair <umair_sair@hotmail.com>
2019-08-19 12:43:22 -04:00
Umair Sair
810f329774 Bug 550165: Debugging is stuck when "command aborts" on step return
Command abort can occur for commands that are run not just in context of
thread, instead stack frame is also present, e.g., step return in case
of this bug. Updated the implementation to get IExecutionDMContext from
the command context if it is not IExecutionDMContext itself.

Change-Id: Ia6cccffba8bde28e22eca46211747de31084f25a
Signed-off-by: Umair Sair <umair_sair@hotmail.com>
2019-08-18 01:17:00 +05:00
Alexander Kurtakov
a3938937f2 Convert new Runnable to lambda.
Take 2.

Change-Id: I060b0e41d8c6058db0c2ba88af8454b5517105b8
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2019-08-12 17:31:30 +03:00
Alexander Kurtakov
1e42e5f0e1 Convert new Runnable to lambda.
Change-Id: I8b827013a29802a3f3ae6400ddce8d8753eb6399
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2019-08-12 07:11:40 -04:00
Alexander Kurtakov
51da3eb3a6 Remove redundant superinterfaces.
Change-Id: I0de3509b02a8ef6853f0053c9ee6edd304a05a86
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2019-08-10 10:28:51 -04:00
Jonah Graham
5414def68f Bug 543711: Provide empty enablements to suppress missing enablements warning in log
Change-Id: Ib3979f577331149eb4d712d1be6d2196f0a431d3
2019-08-03 11:56:41 -04:00
Jonah Graham
f96971a278 Bug 542488: Remove duplicated code
When DSF was first created it was a separate project that borrowed
heavily from CDT, as such (AFAICT) some code was copied from
o.e.cdt.launch to DSF. This commit de-duplicates some of that code
as the DAP implementation wants to reuse the code too and another
copy is not wanted.

Change-Id: Ie54187dabc9c32224575c0bf51bcabfab00ca340
2019-07-09 21:17:22 -04:00
Jonah Graham
edfc7d4c0e Fix generic and other warnings
Change-Id: I77173712bf2b775eae5573f0abfb7f9900123438
2019-07-09 21:17:22 -04:00
Jonah Graham
0ee3822b04 [releng] Add missing @since tags
The version of the plug-in had been correctly bumped already, but
the tags were missing causing API errors

Change-Id: Ief9f7250d3940c1ddd4d44ee19d53dc99f1af8b5
2019-06-21 11:26:29 -04:00
Jonah Graham
f3e8387a8e [releng] Bump version to 9.9.0
Change-Id: I6641e51a8bfdb44fa5c646d97debf2bf814c107a
2019-06-11 12:33:48 -04:00
Jonah Graham
aeaf678425 [releng] move to cdt-infra repo
This script had been copied to the cdt-infra repo a while ago, this
update removes the copy left behind and redirects users to cdt-infra.

Change-Id: Ia4b2d90a9336947e0aad53a0fce6a569416ac379
2019-06-05 10:36:02 -04:00
Jonah Graham
ef07729e45 [releng] Move gdb path and version to test variables to root pom
They used to be duplicated in multiple places in further down poms.

Change-Id: Ifd7adf356892138a2aa79c22084a52cc25619b1b
2019-06-04 16:09:37 -04:00
Doug Schaefer
83792f71bd Bug 547881 - Allow targets to set ATTR_REMOTE_TCP
Adds support for this attribute in the ILaunchTarget attributes and
then convert it to the boolean attribute on the launch config.

Change-Id: Ieefa6892641517ff0fa6a0a04f63a6a8dbc35bf4
2019-06-03 14:15:46 -04:00
Doug Schaefer
6a27da170f Bug 547831 Add ILaunchTargets for GDB Remote
Adds ILaunchTargets for GDB Remote for TCP and Serial Port.
Adds a launch config provider that maps default launch configurations
for the gdb remote launch config types.

Alters the launch attributes by merging in the target attributes
over the launch configuration attributes. This is a no-op of the
target is the Null Target (which has no attributes).

Some string externalization that was missed from previous commits.

Carrying on tradition of ramdonly using Gdb or GDB in our class names :)

Change-Id: Ie8483110f594db593e704adda420ce6b14812dea
2019-06-03 00:22:36 -04:00
Jonah Graham
4324811b1b [releng] Updated officially supported GDB versions
Change-Id: I22eb86b34659ff54223a81dec4f8341b63b5675b
2019-05-31 17:17:08 -04:00
William Riley
92272c6465 Bug 545624 - Skip LaunchConfigurationAndRestartTest
Failing and causing all other GDB tests to fail

Change-Id: I14314b8569d0e117ee9b5db6af33f3b3708d82be
2019-03-27 05:08:14 -04:00
William Riley
8220215a2e Bug 545624 - Disable failing tests
Change-Id: I60d34ca269482b089d738f5b911378bc1bd57238
2019-03-21 11:46:47 -04:00
Marc-Andre Laperle
084288dee9 Remove warning of illegally extending ImageRegistry
Delegate to an instance of ImageRegistry instead, which is legal.

Change-Id: Ife10b526c54483143a9ef5599c4571844a60604d
Signed-off-by: Marc-Andre Laperle <malaperle@gmail.com>
2019-03-20 19:13:33 -04:00