-
Notifications
You must be signed in to change notification settings - Fork 217
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Report symEach errors in OS_SymbolTableDump_Impl #888
Comments
Looked up the VxWorks docs for With the way the callback is currently implemented, all errors are currently reported at least via OS_DEBUG() and also possibly translated to an OS_ERROR response already. It looks like this function can also return NULL if the symbol table ID itself was invalid - but this is getting the value direct from vxWorks ( My recommendation is that we leave the call to The only question I can see is whether exceeding the |
Ping @klystron78 - is this response sufficient to close the issue? |
After reviewing the function here -- there are some better return codes we could propagate up the stack. In particular I think if the size limit was insufficient we should not be returning OS_SUCCESS. I will submit a PR to address that shortly. |
Improve the error codes from this function. - Introduces a new error "OS_ERR_OUTPUT_TOO_LARGE" if the size limit was insufficient (instead of OS_SUCCESS). - Return OS_ERROR if an empty file was written - this likely indicates some fundamental issue with the VxWorks symbol table. - Return OS_ERR_NAME_TOO_LONG if one of the symbol names was too long, (instead of generic OS_ERROR). Improve unit test to check for/verify these responses.
Improve the error codes from this function. - Introduces a new error "OS_ERR_OUTPUT_TOO_LARGE" if the size limit was insufficient (instead of OS_SUCCESS). - Return OS_ERROR if an empty file was written - this likely indicates some fundamental issue with the VxWorks symbol table. - Return OS_ERR_NAME_TOO_LONG if one of the symbol names was too long, (instead of generic OS_ERROR). Improve unit test to check for/verify these responses.
Fix #888, better return codes from OS_SymbolTableDump_Impl
Fix nasa#888, Add typedef for function return status codes
Is your feature request related to a problem? Please describe.
Errors not reported:
osal/src/os/vxworks/src/os-impl-symtab.c
Line 262 in ead5723
Describe the solution you'd like
Check for non-NULL, report error (write to file?), return error.
Describe alternatives you've considered
None
Additional context
None
Requester Info
Jacob Hageman - NASA/GSFC, OSAL code review
The text was updated successfully, but these errors were encountered: