Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 456807

Summary: [junit] Tracepoint tests don't handle 32bit and 64bit machines properly
Product: [Tools] CDT Reporter: Marc Khouzam <marc.khouzam>
Component: cdt-debug-dsf-gdbAssignee: Marc Khouzam <marc.khouzam>
Status: RESOLVED FIXED QA Contact: Marc Khouzam <marc.khouzam>
Severity: normal    
Priority: P3 CC: cdtdoug, pawel.1.piech
Version: 8.5   
Target Milestone: 8.6.0   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Marc Khouzam CLA 2015-01-06 11:02:25 EST
GDB Fast Tracepoints can only be put on instructions of 5-bytes or longer for 64 bit machines and 4-byte or longer for 32bit machine.  This implies that for our unit tests, we have to be careful to properly pick 4-byte or 5-byte instructions for fast tracepoints.

This was not done carefully by the test where tracepoints were set and random lines and we are getting failures because of it.

To fix this we can write the test program carefully and set tracepoints at instructions for which we know the size.
Comment 1 Marc Khouzam CLA 2015-01-06 13:28:51 EST
I've pushed a fix to Gerrit:
  https://git.eclipse.org/r/#/c/39006/
Comment 2 Marc Khouzam CLA 2015-01-07 14:55:08 EST
Committed to master after seeing the relevant tests pass on HIPP.