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

Bug 326878

Summary: [tests] Registers JUnit test fail with GDB 7.2
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: john.cortell, malaperle, pawel.1.piech
Version: 8.0Flags: john.cortell: review+
Target Milestone: 8.0   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Fix marc.khouzam: iplog-

Description Marc Khouzam CLA 2010-10-03 23:54:03 EDT
The Registers JUnit tests fail when using GDB 7.2.  This is because the new GDB lists more registers than the previous version.
Comment 1 Marc Khouzam CLA 2011-01-22 21:57:31 EST
Created attachment 187375 [details]
Fix

Fixed by updating the list of registers to match what gdb returns in version 7.2
Comment 2 Marc Khouzam CLA 2011-01-22 22:00:41 EST
Committed to HEAD.

John, can you check if the JUnits test now work with GDB 7.2 on Windows. 
(No hurry)

I think you can get MinGW GDB 7.2 at http://sourceforge.net/projects/mingw/files/MinGW/BaseSystem/GDB/

The entire Suite_7_2 should pass except two tests in Expressions which we don't have a fix for yet.

Thanks
Comment 4 Marc-André Laperle CLA 2011-01-23 00:45:37 EST
(In reply to comment #2)
> The entire Suite_7_2 should pass except two tests in Expressions which we don't
> have a fix for yet.

I ran it multiple times and it passes except the two tests but once I got an error in MIMemoryTest.asynchronousReadWrite but I can't reproduce it right now.
Comment 5 Marc Khouzam CLA 2011-01-24 11:55:21 EST
(In reply to comment #4)
> (In reply to comment #2)
> > The entire Suite_7_2 should pass except two tests in Expressions which we don't
> > have a fix for yet.
> 
> I ran it multiple times and it passes except the two tests but once I got an
> error in MIMemoryTest.asynchronousReadWrite but I can't reproduce it right now.

Thanks M-A!  I would like to encourage this behavior.  If you can run tests or verify fixes, although I can't put you as an official reviewer, your help is very valuable.
Comment 6 Marc-André Laperle CLA 2011-01-24 17:43:00 EST
(In reply to comment #5)
> Thanks M-A!  I would like to encourage this behavior.  If you can run tests or
> verify fixes, although I can't put you as an official reviewer, your help is
> very valuable.

Sure! Feel free to CC me. BTW, it looks like python is supported now in MinGW's gdb, I see gdb-python27.exe! I'll give that a try.
Comment 7 John Cortell CLA 2011-01-28 15:17:59 EST
Looks good.