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

35735 commits

Author SHA1 Message Date
Jonah Graham
2443cfbeff Bug 572880: Display an ellipsis if opcode is wider than column
Instead of silently having opcode bytes not display, show an ellipsis
in the last column of the opcodes if the length required for that line
is too long.

Change-Id: If1379846c2dd7111324933c2bd72244f6abade02
2021-05-23 00:25:59 -04:00
Jonah Graham
17cabff257 Add missing imports for Javadocs
These imports are only used for Javadocs, which is why it was sort
of ok that they were missing until now.

Change-Id: Ia941ca55c56a101766b709290b40609c20fdda9d
2021-05-19 23:26:40 -04:00
Jonah Graham
e44ef41078 Bug 573646: Restore to correct secondary tab
The handling of ssecondary ids was problematic, special cases were
not well documented and depending on code paths, a secondary ID
of null would mean different things.

This commit fixes that documentation, defines shared constants, and
fixes the logic so secondary id dispayed terminals restore to the
correct location on restart.

Change-Id: Ia87b64f735a37d505e1a5a7b7a4a8e210dfb8c1e
2021-05-19 23:26:07 -04:00
Jonah Graham
df78cd3055 Bug 460495: Save/restore terminal process/args and other settings
Change-Id: Id87d1ade4b58a4abf759c5016dcf4ab24b4b028b
2021-05-19 14:47:53 -04:00
Jonah Graham
a7e14187ea Bug 453696: Save CWD in terminal to restore it
Change-Id: I6a432fcbd40f6b4e991e49ba582b8b9f7cae823e
2021-05-19 12:54:10 -04:00
Jonah Graham
fe2dfb7dd2 Bug 573619: Preserve UI settings in Build Targets (Make) view
This includes saving:
- selection in tree
- expansion in tree
- scroll position

Change-Id: I835d8fabab4f56b01fb0858e92ae63f9e82c9c85
2021-05-19 10:03:25 -04:00
Jonah Graham
c8c65758d5 Bug 338776: Add working set support to Build Targets (Make) view
Change-Id: I3accec157248c474c87d22699c151e4a64ae6f5b
2021-05-19 10:03:25 -04:00
Jonah Graham
7743993a08 Bug 572880: Keep internal representation of opcode as a String
We receive a string from GDB and then display the same string to the
user. So instead of converting it internally into a Byte[] to then
convert it back into a String, keep it as a String.

This fixes a regression where some GDBs' output format was not as space
separated 8-bit-bytes, but as words or similar.

Change-Id: I4ea241ff9ea45165489604fee26a3593ec3f6756
2021-05-19 09:32:42 -04:00
Jonah Graham
02286a6a34 Bug 572878: Rewrite signing of dlls to preserve full file name
This is a fixup of the previous commits which has some basic
shell errors

Change-Id: I9572148d0fa9c6fdad5c6e256d6ccabaed9c8a9c
2021-05-19 08:53:56 -04:00
Jeff Johnston
2ec6d64b1b Bug 568957 - Missing significant macros on hdrs with pragma once syntax
- replace printStackTrace with CCorePlugin.log call

Change-Id: I2eb5398cfbd3ebfbfe3ab02acaf40a748699902a
2021-05-17 21:59:39 -04:00
Jonah Graham
8e3e8366c1 Bug 572878: Preserve file name when passing file to be signed
Do this by using a temp dir to store the unsigned files in rather
than mangling the name

Change-Id: I25d3b1fbb5751f8615266168a919990d9111204c
2021-05-17 21:26:40 -04:00
Jonah Graham
241c3a38fd Bug 572878: Preserve file extension when passing file to be signed
Change-Id: I28d15a6430ac3860ba65f6414498793e22dffee0
2021-05-17 21:01:58 -04:00
Jonah Graham
3f5438aad8 Bug 572878: Fail build if curl fails by having curl return error code
Change-Id: Iad5c276f0fbbda96a22d8fbf55d06485cf63f1d4
2021-05-17 20:42:47 -04:00
Jonah Graham
f07ba87a12 Bug 572582: Increase minimum fully supported version of GDB to 8.0
Eclipse CDT supports GDB version 6.6 and newer. Some features
in Eclipse CDT require newer versions of GDB. The Eclipse CDT
project focuses its testing time on GDB version 8.0 and newer.

Change-Id: Ifb7cd77c9fae4b9d1b82e0aa8a2cea206a4298b7
2021-05-15 21:15:15 -04:00
Stephan Oostveen
260c1b39f7 Bug 573560: Mark GCC constexpr message as info
A GCC information message starting with 'in constexpr expansion'
was incorrectly parsed as an error.

Change-Id: If6142f8486e97c088315060c826d59e61566692b
Signed-off-by: Stephan Oostveen <stephan.oostveen@nextlevel-electronics.com>
2021-05-15 19:43:18 -04:00
Jonah Graham
381f29b74e Bug 573417: Add https URL for p2 site on CDT installs
Up until now we have added http:// URLs

Change-Id: Ib7c41cd16fed176d66c9377b1bd31ddbac6128d2
2021-05-15 17:59:46 -04:00
Jonah Graham
76bb80f06d Bug 573512: Add verbose option for progress monitor
During operations, such as remove projects, the subtask of a progress
monitor has useful information for users. However during a normal build
there ends up being lots of output that is of little value.

Change-Id: Ie5bf95a743e8909242a0224883fd22e49ff55ed6
2021-05-15 17:57:13 -04:00
Marc Siebenhaar
8b385ffc1f Bug 573512: Added parameter for removing projects from workspace.
This is command line option to -remove and -removeAll projects from
the workspace.

Change-Id: Ice4e7db3485d2a0c698f48dc2aa0662170289f36
2021-05-15 17:57:13 -04:00
Jonah Graham
78b9b1e16c Bug 573498: Fix bg color when hovering over annotations in dark mode
SWT.COLOR_GRAY is gray in dark or light mode, but COLOR_TEXT_DISABLED_BACKGROUND
changes with the theme so always leaves the text legible.

Change-Id: I3d0c2d1a19baa618ef08c5c40e35fbdda11691e2
2021-05-15 16:21:33 -04:00
Jonah Graham
2c63592dd6 Bug 573546: Clear old selection in hover on annotation ruler
The select can be called twice when the expansion first opens,
so clear out the old selection before processing the new one.

If this isn't done, the oldStyles gets set to the highlighted
version on the second call, which prevents deselect from
removing the highlight.

Change-Id: Ibc8ae45d4164d380b7946cd492c29f33c9fac981
2021-05-15 16:21:13 -04:00
Torbjörn Svensson
043651694a Bug 573502: Ensure post-build step is executed last
The post-build step may depend on secondary artifacts of the build and
should thus be executed last.

Contributed by STMicroelectronics

Change-Id: Iaf67f6b3e1fcab008798d2712e15d0a6a46ceae8
Signed-off-by: Torbjörn Svensson <torbjorn.svensson@st.com>
2021-05-14 18:35:54 -04:00
John Dallaway
00204a3c4c Bug 573506: Fix counting of opcode bytes
Change-Id: Ib5d1f1984e064099fc5cb357508359a5805f131c
2021-05-13 13:45:26 -04:00
Torbjörn Svensson
39a5179311 Bug 571134 - Use the builder argument for clean
This allows to clean the correct configuration

Contributed by STMicroelectronics

Change-Id: Ia47f3694809579f8d6fa6d6e6b0dd46f553d256d
Also-by: Torbjörn Svensson <torbjorn.svensson@st.com>
Also-by: Jonah Graham <jonah@kichwacoders.com>
Signed-off-by: Torbjörn Svensson <torbjorn.svensson@st.com>
Signed-off-by: Jonah Graham <jonah@kichwacoders.com>
2021-05-12 12:44:47 -04:00
Lidia Popescu
41de69b06c Bug 572755: Update copyright header from previous work
Signed-off-by: Lidia Popescu <lidia.popescu@windriver.com>
Change-Id: I0286ada79fc7fc7df140475538d52dcb571a1e58
2021-05-12 10:19:07 -04:00
Lidia Popescu
60cb825cb2 Bug 573204: Persisted selection for create new file from template
Each source file could have few custom templates. If user selects a
specific template from the combo box for a specific file type, this
selection will be persistent for next file creation, but only for same
file extension.

Change-Id: I7dde198d6fefdfbbc124b8c52517dfe751009fca
Signed-off-by: Lidia Popescu <lidia.popescu@windriver.com>
2021-05-12 10:16:28 -04:00
Marc Ernst
335437d667 Bug 573157: Add jump to memory from disassembly view context menu entry
Change-Id: I045f3ac24005212d7431d346f0a3a169abbd8de0
2021-05-05 09:36:49 -04:00
Jonah Graham
f877963e37 Bug 573307: Correct since tags
Change-Id: I7dd2bc0a98c36e9c4fd8db19a83a1b87c7fdd791
2021-05-02 23:47:22 -04:00
Fabrizio Iannetti
f13c182df4 Bug 572938 [terminal] reverse linefeed: Honour the scrolling region
The reverse linefeed should scroll down when the cursor is on the
first line of the scrolling region, not only on the first screen
line

Change-Id: I628ab135d48d868bc8e3eacd2ea57dda948873a8
Signed-off-by: Fabrizio Iannetti <fabrizio.iannetti@gmail.com>
2021-05-01 16:25:49 -04:00
Torbjörn SVENSSON
0333e17cfc Bug 573254: Add the missing ITool parameter to toManagedCommandLineInfo
Contributed by STMicroelectronics

Change-Id: I4e9351a8af473bf34f2bc8541461f2b82ffd6262
Signed-off-by: Torbjörn Svensson <torbjorn.svensson@st.com>
2021-05-01 08:28:09 -04:00
Jonah Graham
e2c0b9973f [releng] Update to newest jarsigner maven plug-in
Change-Id: I92a83054bdcf7eea08518e1beda8cc0edf842276
2021-04-29 14:43:03 -04:00
Jonah Graham
919f0a0086 Bug 572875 and Bug 572878: Sign .jnilib/.dll in production builds
Because the dll/jnilib is modified in place, the natives are qualified
with their build date, rather than their git date as the checked-in
libraries are not signed.

Change-Id: I3078f5040f7ef9590bb4ab5d031dcb29b3c3bdde
2021-04-29 14:39:00 -04:00
John Dallaway
cb56590d4c Bug 457697: Avoid unnecessary escaping in GDB MI command
Change-Id: I2c7590190fbce258fb6452f0d555bc276d4a9dda
2021-04-26 18:23:47 +01:00
John Dallaway
5e9fc00242 Bug 572944: Set GDB process attributes
Change-Id: I98350d5307c23f91207d55372cc85319ebe716c4
2021-04-25 14:39:03 -04:00
Torbjörn Svensson
3c58527d53 Bug 350499: Ask user to confirm toolchain change
When a user switches toolchain integration used, all the settings will
be lost. Rather than having the user find this out the hard way, prompt
about it and highlight the implications of changing toolchain.

Contributed by STMicroelectronics

Change-Id: I885bc5544d7222eb1aeee7c92ac98c0d1c083cb1
Signed-off-by: Torbjörn Svensson <torbjorn.svensson@st.com>
2021-04-25 11:26:29 -04:00
Jonah Graham
61d1a02f32 Bug 572938: Tests for scroll reverse
Change-Id: I08a812d9f7847e2fa24dddf0f97efc65cc44d49d
2021-04-23 21:24:45 -04:00
Jonah Graham
b044543451 Bug 573064: Test for full clear - extended "E3" capability
Change-Id: Ic30dac68f870f04808eb9038c2ba61b1da9e983f
2021-04-23 21:24:45 -04:00
Jonah Graham
3e29cd6525 Bug 341721: Test for rename terminal escape sequence
Change-Id: Id03f3d4361d0ac0ac0758c3f00eadbe2d6b568fc
2021-04-23 21:24:45 -04:00
Jonah Graham
a14c962ff2 Bug 573108: Add test harness for VT100Emulator
This contains basic tests so far, as bugs are fixed other tests
can be added here, leading to easier development of escape sequences.

Change-Id: Iadd0b24d400f72927c446d61386f19cfd8bd05a0
2021-04-23 21:24:45 -04:00
Jonah Graham
327026010b Bug 573110: Emulator can spin if Reader is ready but not available
The implementation of the read loop in the emulator can spin because
it uses Reader.ready() to determine if there is more data to read.

However the Reader contract does not specify that ready() means
that read() will return a character, simply it means that read()
won't block. As such, if a Reader won't block, but it has no
characters, the inner read loop will spin constantly polling.

The outer loop uses polling too - but it has a wait so that the
CPU does not hit 100% and yields.

Change-Id: Id9b2426c65e6c2a2c3ae817a78d2be435e568c1f
2021-04-23 21:24:45 -04:00
Jonah Graham
4ef3cb7f30 Bug 573109: Add new logging options for terminal
Change-Id: I0c35b7ce0c4350081eac6ace974dbcee3e0f103d
2021-04-23 21:24:45 -04:00
Jonah Graham
b7d017572d Bug 573109: Use new StackWalker API
Java 9+ contains new API for getting/walking stack frames. It is much
faster and has a much cleaner API than using Throwable.getStackTrace

Change-Id: Id0c888aeb06665f10605ce5ab5f0a567249e068c
2021-04-23 21:24:44 -04:00
Jonah Graham
20f73f9c64 Bug 573121: Remove unneeded dependencies in terminal
To enable the terminal to be built independently of the
rest of CDT, remove these unused dependencies.

AFAICT they may date back to a time when some of the
native code was part of the core?

Change-Id: I61505a2bfc6c85f6c2d6efd9d66ac788018f9e82
2021-04-23 21:24:17 -04:00
Jonah Graham
d3b0dd254a Bug 573121: Allow terminal to be built on its own
Change-Id: I74024d0c247159a1adef767e79ad64ab1bfd14b2
2021-04-23 17:38:34 -04:00
Marc Ernst
766d6fec6a Bug 572880: show opcodes in disassembly view as byte sequence
Change-Id: Ib7ad37968ab23ff22cbb1fc110e85b47ffc37ab8
2021-04-23 16:11:35 -04:00
Jonah Graham
6386faff0d Bug 563015: Log exception if process.pid() fails
Change-Id: Ie9888e1e56b19086890caf221f0cbd97eafa817c
2021-04-23 11:21:38 -04:00
Jonah Graham
e033c50e28 Bug 573064: Support full clear - extended "E3" capability
Change-Id: I9d4f7fffb11cc5386eb0a4e5c0445f1fc518b0a5
2021-04-21 15:37:14 -04:00
Fabrizio Iannetti
6dbad0b10e Bug 572938 Terminal: add support for reverse linefeed
Scroll up is not working with `less`, `man`, probably
other programs.

Change-Id: I99d2472ab09df6b79fffbcaa581f3024c44d3ead
Signed-off-by: Fabrizio Iannetti <fabrizio.iannetti@gmail.com>
2021-04-21 15:37:05 -04:00
John Dallaway
97c834c890 Bug 572944: Show GDB path in OS format
Change-Id: I17c34e0c04132122ad972b7d0e5379084b5be622
2021-04-19 13:42:10 -04:00
Lidia Popescu
68c67c5a1b Bug 572755: Sorting for new custom templates
The changes adds sorting for source templates in alphabetic order.
Makes possible to bring to the top the new custom templates provided by
extension points, as the most frequently used ones and to avoid the need
for using the drop down list for the right option.

Change-Id: I931bd2fc08f3e37178a64e4b7908db73af1fbc2c
Signed-off-by: Lidia Popescu <lidia.popescu@windriver.com>
2021-04-19 10:24:18 -04:00
Jonah Graham
b6b66b5457 Bug 568397: Add separate text boxes for separate build command and args
Change-Id: I078a1db23a69dcbde503b1dd5e496705ecccc956
2021-04-12 17:25:15 -04:00