java.io.File is used to store the path to the cross tools.
getAbsolutePath is invoked before variables are expanded. Hence File
cannot see the path is already absolute and therefore prepends CWD.
Reverted to getPath, since conversion to full path would not make sense
anyway.
Change-Id: I13e5b2c0d7747741926a88e120d13003b910e8c6
Signed-off-by: Morten Kristiansen <millibit@gmail.com>
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>
As it is now, if you pass a start address but no end address (null), the
disassembled range will be [startAddress, $pc + 100], which does not
quite make sense.
I think the intention was to have the default end address be whatever
the start address is, + 100.
Change-Id: I1399cc116ecde6cfbdb2f1ec54a181e64a7f4c5f
Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
Reduce function complexity and comply with java coding styles.
Convert some larger ifs to switches for performance sake.
Change-Id: Ief2672141511a1373cdd8a98e0fa2eeb564816e1
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Both Jetty 8 and Jetty 9 were getting included in the target platform. It seems
that those two versions can't co-exist and Eclipse fails to start.
Change-Id: I33e94458b34c339f8bffa5f64830958fe00a2e2d
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
basically for the code like
if (a) return 1; else return 2;
a++; // this should be a dead code node
but we don't check connector node of "if" and don't add
it to dead nodes graph resulting it this code not being marked as dead,
which can lead to false positives or false negatives for checkers that
use that. Same apply for other control statements...
Change-Id: Iafb4b48ca960f0ffab2c0265285a31cb08eb0d11
Choose version 2.5.2 which is what is supported by CDT's HIPP. Note that by removing the version altogether, the latest available findBugs would be selected. However, this could lead to different results between manual builds and HIPP builds, which is why I thought it would be better to specify the version explicitly.
FindBugs can be run by adding the string
findbugs:findbugs
as a maven parameter, either in a local maven build, or on HIPP.
Add releng/findbugs-exclude.xml to control the errors shown by FindBugs.
The content of that file was copied from the TM project, but should
eventually be ajusted for CDT.
Change-Id: Ibc8348b9286f00580a4079a7ca3c669708bc6194
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
There is a superfluous LINE_MAIN_BEFORE_THREAD_START that is causing
problems, remove it.
Change-Id: I57c4637ada0b5efda2848029e5216a13cf638067
Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
Requires a couple of changes in the autotools plug-ins. Change the
4.5 target to refer to the remote 2.0 build and update the pom to
use the 4.5 target.
Also fixes autotools test so they run on the Mac.
Change-Id: I145de3ea3f14d61ffba7354ad0fa3e0ec2467e26
This permits derived classes to reimplement the logic for getting
expression value without copy-pasting the logic for getting type.
Change-Id: I21b048afaee8433d17e873b7aaf4f7b118edd107
This reverts commit a3147f85b0.
The regression manifests itself only during indexing but doesn't produce unresolved symbols in C++ editor. Restoring the original change since the regression is relatively benign. Will continue to investigate.
Change-Id: I1fdfb4c31a0d5c08c3bc88baaf11d36c708cd883
Java classes are defined and a pretty simple native library for
Mac is there. Tested with Arduino so I know reading works. This
implementation should work for Linux as well. Windows is going to
be the hard one.
Not checking in the binaries yet until I get more testing with them.
Also remove ppc native libraries for Mac since that hasn't been
supported in a long time.
Change-Id: If4ffbc6e73a7656a47c2f45b875be0842c482b05