Description of problem: I have a component of type data with legal values { "860" "860P" ...} I can set the default value to "860", but not "860P" Selecting "860P" (or forcing it via other CDL) works fine. Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. Try to change the default value in hal/powerpc/mpc8xx/current/cdl/hal_powerpc_mpc8xx.cdl 2. 3. Actual results: Expected results: Additional info:
Exactly what failure is seen? If you use default_value "860P" then the parser will get confused. The quotes are removed by the Tcl interpreter so libcdl sees 860P, tries to parse it as a number, and fails. You should get a parse error about an invalid character after the number 860. If you use default_value { "860P" } then everything seems to work. The libcdl parser will still see the quotes so it will treat the contents as a string rather than a number.
The error I get does indicate a parsing problem. /work/develop/ecos/packages/hal/powerpc/mpc8xx/current/cdl/hal_powerpc_mpc8xxx.cdl, component CYGHWR_HAL_POWERPC_MPC8XX, property default_value: error Invalid character detected after number 860 ^4^ {860P...} Package CYGPKG_HAL_POWERPC_MPC8xx, 1 error occurred while reading in the CDL data. Using { "860P" } does seem sufficient, I'll just do that and be happy.