You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2020/11/23 17:30:01 UTC

[GitHub] [incubator-nuttx] v01d commented on issue #2388: nuttx-gdbinit uses symbol from unrelated application

v01d commented on issue #2388:
URL: https://github.com/apache/incubator-nuttx/issues/2388#issuecomment-732310158


   Actually, this array is static so I'm not even sure if this is the place where it is supposed to be defined. Also, this same information is defined in three places:
   
   ```
   nuttx/fs/procfs/fs_procfsproc.c:static FAR const char *g_statenames[] =
   apps/examples/thttpd/content/tasks/tasks.c:static const char *g_statenames[] =
   apps/system/sched_note/note_main.c:static FAR const char *g_statenames[] =
   ```
   
   I think the best is to define this information in one place, which will make it available to all required places, including openocd which can be made to retrieve it instead of define it itself.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org