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 16:13:16 UTC

[GitHub] [incubator-nuttx] v01d opened a new issue #2388: nuttx-gdbinit uses symbol from unrelated application

v01d opened a new issue #2388:
URL: https://github.com/apache/incubator-nuttx/issues/2388


   When trying to use nuttx-gdbinit, it complains that `g_statenames` is not defined. I found this symbol in `note_main.c` from note app. nuttx-gdbinit facility should not depend an a symbol from an unrelated app. The symbol should either by defined in nuttx itself or inside nuttx-gdbinit.


----------------------------------------------------------------
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



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

Posted by GitBox <gi...@apache.org>.
v01d commented on issue #2388:
URL: https://github.com/apache/incubator-nuttx/issues/2388#issuecomment-732319822


   Ah, the symbol is still visible. I assumed it wouldn't. So maybe this place isn't such a bad place to have it defined I guess.
   I will document that PROCFS needs to be enabled for this to work. Also, I would update openocd to use this then.


----------------------------------------------------------------
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



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

Posted by GitBox <gi...@apache.org>.
v01d closed issue #2388:
URL: https://github.com/apache/incubator-nuttx/issues/2388


   


----------------------------------------------------------------
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



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

Posted by GitBox <gi...@apache.org>.
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



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

Posted by GitBox <gi...@apache.org>.
btashton commented on issue #2388:
URL: https://github.com/apache/incubator-nuttx/issues/2388#issuecomment-732315427


   I think procfs is where is was supposed to be pulled from which is used by the `ps` command.


----------------------------------------------------------------
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



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

Posted by GitBox <gi...@apache.org>.
v01d commented on issue #2388:
URL: https://github.com/apache/incubator-nuttx/issues/2388#issuecomment-732313123


   @masayuki2009 it seems you authored this file. Where is this variable defined for you?


----------------------------------------------------------------
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



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

Posted by GitBox <gi...@apache.org>.
v01d commented on issue #2388:
URL: https://github.com/apache/incubator-nuttx/issues/2388#issuecomment-732316418


   But it is static there as well


----------------------------------------------------------------
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