1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00
Commit graph

1255 commits

Author SHA1 Message Date
Simon Marchi
cb16665cc7 Bug 293832 - [dsf-gdb] Ask gdb for variable value, even if it is a complex type
Currently, CDT does not ask GDB for the value of the variables it
believes to be of complex types, such as structures. However, as
described in the bug, it assumes that a typedefed pointer is a complex
structure. Because of that, it displays a value of "{...}" for it
instead of the pointer value.

By asking GDB for the value of the variable even if it's of a complex
type, CDT will always display the right thing for the value. This will
cause a few more -var-evaluate-expression calls, but their number is
still limited to what is visible in the variables view. So the impact
should be negligible.

Screenshot of before/after:
	http://i.imgur.com/Sx5ZPfO.png

It is still impossible to edit the value, but this would be addressed in
another patch.

Change-Id: I92e6ead6351677e098a56d4af5bdb85fc61df080
Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
2015-05-04 16:03:18 -04:00
Marc Khouzam
d533adec3c Bug 407340 - Keep showing in the Debug view a process that has exited
Change-Id: Ib4a1c80d99b1a311c781ea1f481943982cdf0cbd
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2015-05-01 15:41:58 -04:00
Marc Khouzam
1ac11fc4bf Bug 463975 - Show exit code in console when doing a Run
Change-Id: I97fe993e33f1774133aa7cfd488e6e549dae2e0a
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2015-05-01 11:27:01 -04:00
Simon Marchi
c4f5c35620 [dsf-gdb] debug tests: Remove useless try/catch
The try/catch doesn't add anything. If getStackTrace throws, the test
will fail and will show the useful stack trace.

Change-Id: Icf453ff2ca6c10a32f264fece0f0db9af8049612
Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
2015-05-01 10:10:58 -04:00
Marc Khouzam
2c70025486 Wrong error code used.
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2015-04-30 11:41:06 -04:00
Marc Khouzam
bd66f35865 Bug 464636 - Modernize Run launch
Change-Id: I1c7a4cbbcd00f3967fe9cdbc1fc4b6e0b4d4d14f
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2015-04-30 09:17:51 -04:00
Marc Khouzam
0c2af8d5ce Bug 464056 - Wrong exit code returned in some multi-process cases
Change-Id: I71c3aca8c8c98494408d2a7677d2837768592b09
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2015-04-24 15:51:26 -04:00
Marc Khouzam
7320ded57d Typo
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2015-04-24 10:49:48 -04:00
Marc Khouzam
230a67daa5 Typo
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2015-04-24 10:30:09 -04:00
Marc Khouzam
493e6b3fac Cosmetics
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2015-04-22 13:09:34 -04:00
Marc Khouzam
d92be4a40e Clarify where the extra tab comes from
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2015-04-22 13:06:14 -04:00
Marc Khouzam
52b36d6b0a Bug 464636 - Re-create dsf.gdb CMainTab for backwards compatibility
Change-Id: Ibf3f2ee8722ceeb5609389ce0f5a131841d3950b
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2015-04-22 11:02:40 -04:00
Marc Khouzam
6b134ee043 Bug 464636 - Move CMainTab from o.e.cdt.dsf.gdb to
o.e.cdt.launch.CMainTab2

Change-Id: I5f0cf6d03858e78d95da5356dad36930ed4877b2
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2015-04-22 11:00:36 -04:00
Marc Khouzam
7d3c3bcfe8 Bug 464636 - Example of adding a tab to the Run launch
Change-Id: I6d557ca787b3bf400e6bfbb3f9a6b219ecb003f9
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2015-04-22 10:40:04 -04:00
Marc Khouzam
479cd95c3a Cosmetics
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2015-04-21 16:07:16 -04:00
Marc Khouzam
da1993169d Typo
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2015-04-20 10:37:35 -04:00
Marc Dumais
9cc312e1fe Bug 462353 - [visualizer] Add support for persistent List<T> and
Map<String,T> parameters in PersistentSettingsManager

Change-Id: I77fc411e7484e41a9b66bf388a4120bc51a78549
2015-04-17 14:59:36 -04:00
Marc Khouzam
d071e969b7 Bug 462623: Split GdbAdapterFactory to allow overriding
Change-Id: Icb9b8d03c070afa8bdea5218d5d4a1aad5d86ebb
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2015-04-17 11:24:08 -04:00
Marc Khouzam
3f8305fc0f Move to new getAdapter() signature using generics
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2015-04-15 15:39:36 -04:00
Marc Khouzam
7c8b2459d5 Move to new getAdapter() signature using generics
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2015-04-15 13:36:20 -04:00
Marc Khouzam
39fa80d9de Update to use generics
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2015-04-15 13:19:11 -04:00
Simon Marchi
84a53f8d80 [dsf-gdb] Remove usage of AsyncCompletionWaitor in MIMemoryTest.asynchronousReadWrite
Change-Id: I700736eea51f5aa5292143e11a259c958af2a68e
Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
2015-04-13 11:05:42 -04:00
Sergey Prigogin
20328a9961 Revert "Bug 462353 - [visualizer] Add support for persistent List<T> and
Map<String,T> parameters in PersistentSettingsManager"

This reverts commit e329e6a518.

Change-Id: I8aef5384e73a62a3efc21ea046a71a1bf5f5e1d6
2015-04-12 15:43:20 -07:00
Marc Dumais
9ea9dd867c Bug 464184 - Update GDBHardwareAndOS service to take advantage of GDB
providing CPU/core info

Change-Id: I9d6ce989d9b71e7dd83f3d395da972d43486345c
2015-04-10 14:51:28 -04:00
Marc Khouzam
db8179004f Bug 463977 - Exit code not always displayed in console
Change-Id: I6342cd55530eeb1ea9faf52cd26884065f069ebd
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2015-04-09 15:16:19 -04:00
Marc Dumais
e329e6a518 Bug 462353 - [visualizer] Add support for persistent List<T> and
Map<String,T> parameters in PersistentSettingsManager

Change-Id: I64d44e112c3c9e2d24e7fcc62a3a6be7d865d6ac
2015-04-09 09:39:25 -04:00
Marc Khouzam
b31476c87b Address minor review comments from review 41198
Change-Id: I8d5ddd9426babd0577e1f8fb5e4fdb6b7b7dfbe3
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2015-04-07 03:00:58 -04:00
Vladimir Prus
1502c78cd6 Expose raw varobj fields in MIVariableObject.
Presently, the field from MI are parsed in MIVar, then copied to
MIVariableManager.MIVariableObject, and then to ExprMetaGetVarInfo.
As result, although MI allows additional fields, a custom IDE cannot
access them, even though all of the above classes are in dsf.gdb
package.

This package firstly eliminates some code duplication, and then make
raw MITuple be propagated along the chain.

Change-Id: I57436fef65aaaf4805422df34466d10f2a205920
2015-04-06 20:51:54 +03:00
Marc Khouzam
9f27d7cc20 Bug 435144: Fix bp for GDB 7.0 and 7.1
Change-Id: Ia84bc47ff1b5711f2e27700c5b3356b73a704256
2015-03-27 11:42:43 -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
Mikhail Khodjaiants
3c13a71017 Revert "Bug 462988 - Register grouping should work with different implementations of IRegisters service"
This reverts commit 404c093923.
2015-03-24 15:23:43 -04:00
Mikhail Khodjaiants
404c093923 Bug 462988 - Register grouping should work with different
implementations of IRegisters service
2015-03-24 15:16:38 -04:00
Marc Khouzam
89cb33363e Use Diamond operator to simplify code
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2015-03-20 10:57:02 -04:00
Marc Khouzam
b26c273112 Bug 459114 - More cleanup of async handling for Multicore
Visualizer

This commit migrates the MulticoreVisualizer class to use the standard
DSF programming paradigm, which is to use RequestMonitors.  It also
renames some methods to better fit in that programming model.

Change-Id: Ie00a5dcb810fb13a4ac526ff221cc10bd52a3fca
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2015-03-20 10:07:28 -04:00
Marc-Andre Laperle
8f2d399431 Upgrade maven plugin versions
I used this command to print a summary of the updates:
mvn versions:display-plugin-updates -Djava.net.useSystemProxies | grep "\\->" | sort | uniq

The command reports which maven plugin versions are outdated per cdt project (pom.xml). The extra grep and sort are just to make it display as a short summary.

Change-Id: I6abec0c1d510aac4599fb0d573d443807ee84a7b
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2015-03-16 16:56:27 -04:00
Jesper Eskilson
f9e7d5d156 Added o.e.c.examples.dsf.gdb as friend.
Change-Id: I75e714dcde1dd1bb32bf202c177e6ab371722d6c
Signed-off-by: Jesper Eskilson <jesper.eskilson@iar.com>
2015-03-11 16:29:41 -04:00
Marc Khouzam
7a245a2520 Bug 460837 - Provide setter for m_loadMetersEnabled
Change-Id: Ia7e4077146bead882a1dc5d21a04d176e54e07ac
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2015-03-04 11:48:08 -05:00
Matthew Khouzam
f517c704bc replace size()|length() > 0 with !isEmpty()
isEmpty is garantied to be as fast or faster than size and
length. It is also easier to read.

Change-Id: Ia768910c21313666aeab774963c0b6e82d825b44
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
2015-03-04 10:33:47 -05:00
Marc Dumais
9105e2d42c Bug 460476 - [visualizer] make showing debug actions in toolbar
configurable

Change-Id: I860a0268c727f482fcc136031f8bd0cc11315831
2015-03-04 07:03:51 -05:00
Marc Dumais
d38aa32296 Bug 460837 - [visualizer] Add persistent information storage in the MV
Change-Id: I18bf08043c17f3bf4c1a2da86cbd6ef5b46d0120
2015-03-04 06:59:44 -05:00
Simon Marchi
539660d4f7 [dsf-gdb] gdb download script: add examples and print help if unsupported version is given
I got a feedback that the error message when passing an unsupported
version should be more helpful.

Change-Id: I3c925c500d6de787ca9bfce421eda6109e9f6415
Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
2015-02-26 18:26:42 -05:00
Marc Dumais
2ec6e11b2b Bug 460737 - [visualizer] enable MV to know which (cloned) instance it
is

Change-Id: I586dedab6df808f9e68600fa55fa1169b44defaf
2015-02-26 15:07:53 -05:00
Simon Marchi
0ba2118dc9 [dsf-gdb] debug tests: Adjust buffer sizes in MIMemoryTest to take word size into account
Change-Id: I1ffa59165c713609b25b9331c3d245094df4544e
Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
2015-02-24 22:26:43 -05:00
Marc Khouzam
9c05b3506a Add test suite for GDB 7.9 and move Automated Suite to use GDB 7.9
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2015-02-20 16:01:33 -05:00
Marc Khouzam
74bd3e0c66 Update script to support GDB 7.9
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2015-02-20 15:58:34 -05:00
Simon Marchi
7402cd3123 [dsf-gdb] Put back event assert in
MIMemoryTest.writeCharVarying{Address,Offset}

When we switched SyncUtil.readMemory to use queries, it exposed a race
condition with the asserts that check for the number of event received.
Basically, nothing guarantees that when the assert is evaluated the
event had the time to arrive.

We now use a ServiceEventWaitor to wait until the event arrives (with a
timeout, of course).

At the same time, rename word_size to wordSize.

Change-Id: I6f4b51e22f46625e20bbbdbac91cf70cfd864e5e
Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
2015-02-20 14:27:39 -05:00
Simon Marchi
7328220fe6 [dsf-gdb] Add expected message in MIMemoryTest.writeWithInvalidAddress
Change-Id: Id1f46c879669e3a428bbc8039ff6363be35a9cb6
Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
2015-02-20 14:14:00 -05:00
Simon Marchi
18a8a45323 debug tests: add missing massageTimeout
Change-Id: I6be611a345de90f36996151fb910449292938f15
Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
2015-02-20 14:09:12 -05:00
Marc Khouzam
61ee8133f2 Small cleanup in the tests.
Change-Id: I3236c0efc3de5dbc9b21ed33afbbaeb1439f4864
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2015-02-20 14:07:17 -05:00
Simon Marchi
6f0f5d1cc4 debug tests: Move some tests from AsyncCompletionWaitor to Query
Change-Id: Ic9860c369c8cc0cf4bf9d72d83c09e60a119e9b6
Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
2015-02-20 14:05:51 -05:00