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

1643 commits

Author SHA1 Message Date
Jonah Graham
96b71a9a48 [releng] Add missing @since tag
Change-Id: I21eb74aaed8d789e8f7d68dae58bf83cddb8f138
2018-11-24 10:12:25 +00:00
Jonah Graham
8e811ccbd0 Bug 540373: Fix trailing whitespace in MANIFEST.MFs
Change-Id: I818e939ec4667bea4c7bcd5cd3c1af1a273ca0ce
2018-11-23 13:59:50 +00:00
Jonah Graham
3caea240a3 Bug 540373: Format some Java files that were missed
Some files which has other cleanups applied meant they needed to be
reformatted again. e.g. the removing of type parameters shortened
some lines of code that meant the wrapping changed.

Change-Id: I68ca09567b9530cc2a085c33923642b6de2ec77b
2018-11-23 13:59:46 +00:00
Jonah Graham
ff75ae80fa Bug 540373: Cleanup: Remove trailing whitespace in properties files
Command used:
# Remove space at eol in comments
find .  ! -path "./.git/*" -type f -name *.properties -exec sed -i -E 's/^(#.*)[ \t]+$/\1/' {} +
# Remove space at eol in blank lines
find .  ! -path "./.git/*" -type f -name *.properties -exec sed -i -E 's/^[ \t]+$//' {} +
# Replace escaped spaces at eol with unicode
find .  ! -path "./.git/*" -type f -name *.properties -exec sed -i -E 's/([^\\])\\ $/\1\\u0020/' {} +
# Replace unescaped spaces at eol with unicode
find .  ! -path "./.git/*" -type f -name *.properties -exec sed -i -E 's/([^\\]) $/\1\\u0020/' {} +
# Replace escaped tabs at eol with unicode
find .  ! -path "./.git/*" -type f -name *.properties -exec sed -i -E 's/([^\\])\\\t$/\1\\u0009/' {} +
# Replace unescaped tabs at eol with unicode
find .  ! -path "./.git/*" -type f -name *.properties -exec sed -i -E 's/([^\\])\t$/\1\\u0009/' {} +
# Stage all changes
git add -A .
# trim any remaining whitespace and then identify and fixup
# manually
# Only dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/ui/viewmodel/MessagesForDebugVM.properties
# needed this due to missing newline at end of the file
find .  ! -path "./.git/*" -type f -name *.properties -exec sed -i -E 's/[ \t]+$//' {} +

Change-Id: I858f16891fe001f4f7e62d5a4f904146e891cd39
2018-11-23 07:52:26 +00:00
Jonah Graham
be35c7327d Bug 540373: Cleanup: Remove trailing whitespace in Java files
Some Java files were missed, or other cleanups introduced
trailing whitespace. So clean it up with this commit.

Command used:
find .  ! -path "./.git/*" -type f -name *.java  -exec sed -i -E 's/[ \t]+$//' {} +

Change-Id: I18f5e3a3eb5352443c9e753d427bb8d06107b8a4
2018-11-23 00:53:06 +00:00
Jonah Graham
aa1040a21a Bug 540373: Remove '(non-Javadoc)' comments
These were inserted in the past automatically by Eclipse but
newer tooling makes them redundant.

These were removed by doing a global find/replace on *.java files
using the following regular expression:
\t/\*\n\t \* \(non-Javadoc\)[^/]*/\n

Change-Id: I59d3248020f10934fde1dda5b5a31e20bb188e19
2018-11-22 22:00:29 +00:00
Jonah Graham
eeb3006e27 Bug 540373: Cleanup: Remove redundant semicolons
This was done by selecting all projects in Eclipse then
Source -> Clean Up... -> choosing:
- Remove redundant semicolons
and completing the wizard

Change-Id: I3d3175cfdfadec4f815c551d486e42c9f57b80ce
2018-11-22 21:57:01 +00:00
Jonah Graham
caf2292768 Bug 540373: Cleanup: Remove redundant type arguments
This was done by selecting all projects in Eclipse then
Source -> Clean Up... -> choosing:
- Remove redundant type arguments
and completing the wizard

Change-Id: Iaecc7010f097b4b1fabd29ccaa34ccb23a716fbf
2018-11-22 21:55:36 +00:00
Jonah Graham
a923614c73 Bug 540373: Cleanup: Organize Imports
This was done by selecting all projects in Eclipse then
Source -> Clean Up... -> choosing:
- Organize Imports
and completing the wizard

Change-Id: Ia7b305a4c967d0e6f4e8fb8c1041e7028b24006c
2018-11-22 21:47:02 +00:00
Jonah Graham
170e654b47 Bug 540373: Cleanup: Format & Remove trailing whitespace
This was done by selecting all projects in Eclipse then
Source -> Clean Up... -> choosing:
- Format source code
- Remove trailing white spaces on all lines
and completing the wizard

Change-Id: I63685372c6bcc67719bcf145123bcb72e5b00394
2018-11-22 21:47:02 +00:00
Jonah Graham
35996a5c5c Bug 540373: Standard .settings auto applied
The releng/scripts/apply_jdt_prefs_to_all_projects.sh was run to
copy standard settings to all other projects.

Change-Id: I4436c947d7f0142f56b709e661379c3eb54f666b
2018-11-22 21:47:02 +00: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
Jonah Graham
f0ce92d3b5 Bug 540371: normalize files before applying EPLv2
Change-Id: I8bfd427bba1df18579d6d5e58ad1e5d704485050
2018-11-22 20:30:13 +00:00
Jonah Graham
48d2271a58 Bug 540373: Normalize newlines with .gitattributes
There is also a new script to verify completeness of .gitattributes:
releng/scripts/verify_gitattributes.sh

Change-Id: I2ce270852ab54b66b6c474a6ec94203fe5bba78b
2018-11-20 21:20:39 +00:00
Jonah Graham
3cf0297769 Bug 532077: Preserve Ignore Count set in the platform breakpoint
Change-Id: I19ad64254b0e9ed55114f2e83fe2f09e2aeac83c
2018-11-18 12:36:44 +00:00
Jonah Graham
54f6c19de2 Bug 541069: Don't error on missing variables when doing substitution
This is a follow up to 60d95da97b (Bug
399460) as in that change the reporting option inadvertently changed.

Change-Id: I1afe70632107ab388be09a707e8e9fc419f76b91
2018-11-16 11:24:38 +00:00
Karsten Thoms
652602febd Bug 540610 - Add Automatic-Module-Name header
Change-Id: Ia990b24469751050dd9ec8f9b5550804816308b3
Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2018-10-30 15:49:15 +01:00
William Riley
f3ca365140 Bug 540367 - Increment version numbers
Change-Id: I4a355170a7075f0a98ba3c1a5131c235c89b07d2
2018-10-23 11:20:31 -04:00
John Dallaway
87cd426861 Bug 539455: Report debug command errors via status handler
Change-Id: I4c3abbb660e426580ce8f836e6e19a897fbaeefe
Signed-off-by: John Dallaway <john@dallaway.org.uk>
2018-09-27 12:33:07 +01:00
Simeon Andreev
a8a29d195a Bug 538849 - Select Processes dialog filter field improvements
This change ensures that the Select Processes dialog remembers the
filter field input. This helps attaching to the same application without
having to input the filter text on each debug attach.

Furthermore with this change its possible to match a process name with
suffixes, without resorting to pattern matching symbols. E.g. match
"Eclipse" by typing "lipse".

Change-Id: I07a3bb1504f2f5e9626023d1097fcad78dfa9ac7
Signed-off-by: Simeon Andreev <simeon.danailov.andreev@gmail.com>
2018-09-14 06:25:12 -04:00
Simeon Andreev
094543644b Bug 333034 - Select Processes dialog shows command line arguments
This change adds command line arguments to the information listed in the
"Select Processes" dialog, seen e.g. when attaching to a C++ application
to debug.

Change-Id: I18ab685f73cb1c16ed3ea935872f49afa1de9aab
Signed-off-by: Simeon Andreev <simeon.danailov.andreev@gmail.com>
2018-09-14 11:06:28 +01:00
Simeon Andreev
8a73297c10 Bug 538785 - Select Processes dialog should remember when resized
With this change, the Select Processes dialog will remember its new size
if it was resized by the user.

Change-Id: I27161ae5b5332db87cc9876aa23cf8fd8c751a80
Signed-off-by: Simeon Andreev <simeon.danailov.andreev@gmail.com>
2018-09-07 16:34:13 -04:00
Jonah Graham
92bdc049a2 [releng] Update tests/build script to use newly released GDB 8.2
Change-Id: I6f67200880b9d9ed96f4cf0555d92312d1f64fff
2018-09-05 12:14:10 +01:00
John Dallaway
dd17366239 Bug 538282: Add GDB Hardware Debugging launch test
Change-Id: I308a6a8d128704f83a5fc220c7c168f56e4fc040
Signed-off-by: John Dallaway <john@dallaway.org.uk>
2018-08-27 16:22:10 +01:00
Jonah Graham
17c79ab310 Update GDB versions in download-build-gdb.sh for GDB 8.1.1
Change-Id: Id4bddb10ad00a0b1d52bd0cc7f9a232cd6ec453e
2018-07-31 20:23:42 +01:00
Jonah Graham
9853ba09d9 Bug 433329: Fix comment in code
Change-Id: Ie661ab193a0b081240ba4c7dd7a9fe65ed59b6c9
2018-07-25 13:31:49 +01:00
Jonah Graham
231ec3e540 Bug #535767: Store endianess per memory context
Change-Id: Ib4beea9a2b54bc26f5357c199ffd6154f49b96dc
2018-06-11 10:49:26 -04:00
Jonah Graham
4d5204c771 [releng] Bump version to 9.6.0
Change-Id: I1618eaeab14b421155af733a73e36f6e37ea0b85
2018-06-05 22:13:24 +01:00
John Moule
93cfa42618 Bug 534309: NPE in breakpoint filtering
Guard against NULL oldValues, which is legitimate, in which case use an
empty Map.

Change-Id: I78ac252d3e91d431340320719cb57b32145813f0
Signed-off-by: John Moule <evil_bandit_betamax@yahoo.co.uk>
2018-05-29 16:54:59 +01:00
John Dallaway
60d95da97b Bug 399460: Resolve variables using launch context
Resolve project-related string variables within the GDB command, based
on the launch configuration rather than the current selection.

Change-Id: I6fc5d2f1de515624aff59397de60d0c394acf72f
Signed-off-by: John Dallaway <john@dallaway.org.uk>
2018-04-21 01:15:16 -04:00
Samuel Hultgren
ec9361bd45 Bug 533771 - Allow limit scope of MIStackListArguments
Change-Id: Ibe63ea352fa4daae0d91989595d79b39c3ef92f0
Signed-off-by: Samuel Hultgren <samuel.hultgren@st.com>
2018-04-20 07:14:46 -04:00
Samuel Hultgren
4dd0d4ec05 Bug 533769 - Show error messages directly
Include the error message in the message shown directly in the error
dialog.

Change-Id: I8d6e65353750ee59966ede59b75ebc6256658cb6
Signed-off-by: Samuel Hultgren <samuel.hultgren@st.com>
2018-04-20 07:12:18 -04:00
Torbjörn Svensson
72a51e79d9 Bug 533766 - Deadlock at IDE shutdown with active debug session
When shutting down eclipse and there is an active debug session, eclipse
might deadlock if it can't destroy the debug session and would normally
leave a zombie process for the eclipse instance.  This fix allows
eclipse to properly shutdown if the debug session is destroyed in less
than 1 minute, else the IDE will simply be terminated.

Change-Id: Icb9b019c7ff2ec9cdc9870a392a657fe0dfde81b
Signed-off-by: Torbjörn Svensson <torbjorn.svensson@st.com>
2018-04-18 17:54:44 +02:00
Jonah Graham
06273ad9fb Bug 532592: [tests] use disassembly mode supported on GDB >= 7.5
Previous code was only supported on GDB >= 8.0 with /s was introduced
to disassemble command.

Change-Id: Ic82b43c13e0567972d0a032325b12df4786a7ce3
2018-03-20 09:26:14 +00:00
Jonah Graham
6a0de9f520 Bug 532592: [tests] cleanup use of DEBUGGER_MODE_REMOTE in tests
Be consistent in using DEBUGGER_MODE_REMOTE to set remote session
in parameterized tests.

Change-Id: Ie8db7df02ec575f3e89d22e00b06e4e197833a37
2018-03-20 09:16:00 +00:00
Jonah Graham
f388f97fff Bug 532592: [tests] fix bitrotten GDBRemoteTracepointsTest
When I fixed the assume on "remote" in commit 4a447ce1a6
I exposed this test as having not been run in a while and it has
bitrotten due to changes in the compiler behaviour and the bad
definition of fastTracepointsSupported. This commit brings the test up
to speed.

Change-Id: I5eee6af4de111d864465851de91889aecf875dfb
2018-03-19 22:35:56 +00:00
Jonah Graham
220e0696ed Bug 532599: [tests] use os allocated port for gdbserver comms
Change-Id: I2843472de14cf767896070fcba8add508a1a9eca
2018-03-19 13:19:17 +00:00
Jonah Graham
4a447ce1a6 Bug 532592: [tests] properly exclude non-remote tests
This includes changing BaseParametrizedTestCase.remote to be a
Boolean so that users of remote before it is initialzed causes
an NPE. For example, GDBRemoteTracepointsTest was never running
because of this logic error.

Change-Id: I3fb46fd67c554af7ec912f175815165533021a1b
2018-03-19 12:13:20 +00:00
Jonah Graham
9537e51cf3 Bug 532297: Cache registers per version of GDB
Change-Id: I2da702830f01035b99dc61fcdfb9e7a43fcc8d55
2018-03-11 19:37:30 +00:00
Jonah Graham
b4ac2d3ebf [releng] bump version of gdb to test with to gdb 8.1
Change-Id: I811bc22a02ff84cc638872b21c71345e10d288ab
2018-03-11 19:37:30 +00:00
Jonah Graham
8934f52ae6 Bug 532035: Enable synchronizer to resynchronize/flushCaches
Change-Id: Ib1ebbe5a1b87e9402d961383fcf15dae865ac0c5
2018-03-05 20:06:22 +00:00
Jonah Graham
377374febb Bug 532035: Be explicit in iterating over IBreakpointsTargetDMContext
Change-Id: I802ad946347c01d466f5011883ad644b8f31aca1
2018-03-05 20:06:22 +00:00
Jonah Graham
a819504873 Bug 530377: Fix corrupt bp state & add test for fast bp events.
This generally required adding RequestMonitors everywhere possible
and then holding up processing future bp events until previous
ones were finished.

Change-Id: Icc641071249f7f8c619f0592e07772e47645c9db
2018-03-02 08:22:41 +00:00
Jonah Graham
3afc828ae0 [releng] Bump version to 9.5.0
Change-Id: Ie342f02f7aae633f41a7ab7d39c21e056793a04a
2018-02-13 11:25:08 +00:00
Simon Marchi
fadd0a5015 Update GDB versions in download-build-gdb.sh
- 8.0.1 is out now, so we should use this instead of 8.0.
- 8.1 is out, so add it.

Change-Id: Iba8a0cf453dfd0b2e488fd89f7412a02aac421f6
Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
2018-02-12 11:40:51 -05:00
Jonah Graham
65157ef4d5 Bug 530635: Add ability to do "set remotetimeout" via UI
Change-Id: Iaeaea1e8656d85cb854a5b27f5f212fa37a3159d
2018-02-06 09:08:39 -05:00
Jonah Graham
ee784263c2 Bug 530371: fix device disposed SWTException on shutdown
Change-Id: I2cb4bf5da4ce35d8b7da4a31d0fa2845c9587985
2018-01-26 10:12:40 -05:00
John Dallaway
a08cc01f56 Bug 527419: Process async output with no variable
Change-Id: I4deb2b9db4421016b27e01353b0ae4745b139361
Signed-off-by: John Dallaway <john@dallaway.org.uk>
2017-11-18 02:26:13 -05:00
Jonah Graham
2173d1dd52 Bug 500988: better handle race condition in SourceContainer
Instead of an indiscriminate NPE at termination of a launch, handle it
more cleanly with a friendly error message.

Change-Id: Ie37e675c3f5e4883c0b160bfe86c4848f1983fa7
2017-11-15 10:46:38 +00:00
Doug Schaefer
15c8bad95d Serial Flash Target and Launch. Clean up Generic Launch.
Adds target, launch classes, and launch bar support for targets
intended to upload their code to flash using a Serial Port. The
port is co-ordinated with the Serial Terminal so that the terminal
is paused during the upload.

Also cleaned up the Generic Launch so it's not using the
External Tools launch which has a number of UX issues. This
simplifies the settings and gives us more control. And it's made
reusable for the Serial Flash launch.

Change-Id: I31e9970243fbf1cf22d027bbdb892fde104dbefe
2017-11-13 15:56:57 -05:00