Qt Creator "change display for type" not working



  • I'm using Qt Creator 4.2.0 for STM32 development.

    The compiler is arm-none-eabi-gcc 5.3 and the debugger is arm-none-eabi-gdb 7.10.1.

    During debug session, I tried to change display for type uint32_t to hexadecimal in locals view, but it didn't work. Changing for some basic types e.g. int also didn't work, the values were still displayed in decimal.

    Changing individual items do have the desired effect, though.

    Here are the debugger log outputs:

    <113python theDumper.fetchVariables({"autoderef":0,"context":"","displaystringlimit":"100","dyntype":0,"expanded":["inspect","return","local.usbep.*","watch","local","local.usbep"],"fancy":1,"formats":{"local.usbep.*.DIEPCTL":23},"nativemixed":0,"partialvar":"","passexceptions":"1","qobjectnames":1,"resultvarname":"","stringcutoff":"10000","token":113,"typeformats":{"local.ep":23,"local.usbep.*.DIEPCTL":23},"watchers":[]})
    >&"python theDumper.fetchVariables({\"autoderef\":0,\"context\":\"\",\"displaystringlimit\":\"100\",\"dyntype\":0,\"expanded\":[\"inspect\",\"return\",\"local.usbep.*\",\"watch\",\"local\",\"local.usbep\"],\"fancy\":1,\"formats\":{\"local.usbep.*.DIEPCTL\":23},\"nativemixed\":0,\"partialvar\":\"\",\"passexceptions\":\"1\",\"qobjectnames\":1,\"resultvarname\":\"\",\"stringcutoff\":\"10000\",\"token\":113,\"typeformats\":{\"local.ep\":23,\"local.usbep.*.DIEPCTL\":23},\"watchers\":[]})\n"
    
    >~"data=[{iname=\"local.ep\",name=\"ep\",numchild=\"0\",type=\"uint32_t\",value=\"0\",},{iname=\"local.usbep\",name=\"usbep\",address=\"0x2002ff84\",numchild=\"1\",children=[{name=\"*\",address=\"0x50000900\",address=\"0x50000900\",numchild=\"1\",sortable=\"1\",children=[{name=\"DIEPCTL\",address=\"0x50000900\",address=\"0x50000900\",numchild=\"0\",type=\"uint32_t\",value=\"163840\",},{name=\"Reserved04\",address=\"0x50000904\",address=\"0x50000904\",numchild=\"0\",type=\"uint32_t\",value=\"0\",},{name=\"DIEPINT\",address=\"0x50000908\",address=\"0x50000908\",numchild=\"0\",type=\"uint32_t\",value=\"8384\",},{name=\"Reserved0C\",address=\"0x5000090c\",address=\"0x5000090c\",numchild=\"0\",type=\"uint32_t\",value=\"0\",},{name=\"DIEPTSIZ\",address=\"0x50000910\",address=\"0x50000910\",numchild=\"0\",type=\"uint32_t\",value=\"524288\",},{name=\"DIEPDMA\",address=\"0x50000914\",address=\"0x50000914\",numchild=\"0\",type=\"uint32_t\",value=\"28049536\",},{name=\"DTXFSTS\",address=\"0x50000918\",address=\"0x50000918\",numchild=\"0\",type=\"uint32_t\",value=\"47\",},{name=\"Reserved18\",address=\"0x5000091c\",address=\"0x5000091c\",numchild=\"0\",type=\"uint32_t\",value=\"11272320\",},],type=\"USB_OTG_INEndpointTypeDef\",value=\"\",},],type=\"USB_OTG_INEndpointTypeDef*\",value=\"0x50000900\",},],typeinfo=[],partial=\"0\",counts={'nostruct-2': 9, 'cannotBeQObject': 9},timimgs=[]\n"
    >~",time=\"0\"\n"
    >113^done
    

Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.