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

Bug 320769

Summary: ROV tree view should show items in structure element order rather than alphabetic order
Product: [Technology] RTSC Reporter: Alan DeMars <ademars>
Component: ToolsAssignee: Dave Russo <d-russo>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: dfriedland
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard: target:3.25.01

Description Alan DeMars CLA 2010-07-23 16:30:44 EDT
Build Identifier: 

For instance, this struct:

    /*!
     *  Exception Context - Register contents at the time of an exception.
     */ 
    struct ExcContext {
        /* Thread Context */
        BIOS.ThreadType threadType; /* Type of thread executing at */
                                    /* the time the exception occurred */
        Ptr     threadHandle;       /* Handle to thread executing at */
                                    /* the time the exception occurred */
        Ptr     threadStack;        /* Address of stack contents of thread */
                                    /* executing at the time the exception */
                                    /* occurred */

        /* Internal Registers */
        Ptr     r0;
        Ptr     r1;
        Ptr     r2;
        Ptr     r3;
        Ptr     r4;
        Ptr     r5;
        Ptr     r6;
        Ptr     r7;
        Ptr     r8;
        Ptr     r9;
        Ptr     r10;
        Ptr     r11;
        Ptr     r12;
        Ptr     sp;
        Ptr     lr;
        Ptr     pc;
        Ptr     psr;

        /* NVIC registers */
        Ptr     ICSR;
        Ptr     MMFSR;
        Ptr     BFSR;
        Ptr     UFSR;
        Ptr     HFSR;
        Ptr     DFSR;
        Ptr     MMAR;
        Ptr     BFAR;
        Ptr     AFSR;
    }
Is displayed in this order:
AFSR,0x00000000
BFAR,0xe000ed38
BFSR,0x00000004
DFSR,0x00000000
HFSR,0x40000000
ICSR,0x00411803
lr,0x80003e8f
MMAR,0xe000ed34
MMFSR,0x00000000
pc,0x80005844
psr,0x01000200
r0,0x80003e98
r1,0x40000010
r10,0xffffffff
r11,0xffffffff
r12,0x00000000
r2,0x00000000
r3,0x00000000
r4,0xffffffff
r5,0xffffffff
r6,0xffffffff
r7,0xffffffff
r8,0xffffffff
r9,0xffffffff
sp,0x8000d140
threadHandle,0x8000d5dc
threadStack,0x8000c998
threadType,ti.sysbios.BIOS.ThreadType_Task
UFSR,0x00000000



Reproducible: Always
Comment 1 Dave Russo CLA 2013-05-10 17:05:04 EDT
xdc.rov.server.Main is sorting both the children nodes and their fields in TREE views.  Since the client needs control over the order, we should not do this sort (unless asked). Moreover, _only_TREE view is doing this sort and, as a result, the order of items does not match the order of identical items in other views.
Comment 2 Dave Russo CLA 2013-05-10 17:14:09 EDT
fixed in rov-g02 by removing the tree view sorts in xdc.rov.server.Main.xs
Comment 3 Dave Russo CLA 2013-05-11 16:37:17 EDT
fixed in xdctools 3.25.01.54_eng
Comment 4 Alan DeMars CLA 2013-06-06 12:56:40 EDT
Verify Pass

Using xdc tools 3.25.01.54, I now see that the ExcContext is now being rendered in Structure element order:

threadType,ti.sysbios.BIOS.ThreadType_Task
threadHandle,0x2000426c
threadStack,0x20002140
threadStackSize,2048
r0,0x00000016
r1,0x00000000
r2,0x00000000
r3,0x200028f4
r4,0xffffffff
r5,0xffffffff
r6,0xffffffff
r7,0xffffffff
r8,0xffffffff
r9,0xffffffff
r10,0xffffffff
r11,0xffffffff
r12,0x20003e00
sp,0x200028e8
lr,0x000071bb
pc,0x00007268
psr,0x61000000
ICSR,0x00400803
MMFSR,0x00000000
BFSR,0x00000000
UFSR,0x00000001
HFSR,0x40000000
DFSR,0x0000000a
MMAR,0xe000ed34
BFAR,0xe000ed38
AFSR,0x00000000