{"action":"created","issue":{"url":"https://api.github.com/repos/ARMmbed/mbed-drivers/issues/154","repository_url":"https://api.github.com/repos/ARMmbed/mbed-drivers","labels_url":"https://api.github.com/repos/ARMmbed/mbed-drivers/issues/154/labels{/name}","comments_url":"https://api.github.com/repos/ARMmbed/mbed-drivers/issues/154/comments","events_url":"https://api.github.com/repos/ARMmbed/mbed-drivers/issues/154/events","html_url":"https://github.com/ARMmbed/mbed-drivers/issues/154","id":134814394,"number":154,"title":"Printing stack trace on crash.","user":{"login":"javier-moreno-tridonic-com","id":14233019,"avatar_url":"https://avatars.githubusercontent.com/u/14233019?v=3","gravatar_id":"","url":"https://api.github.com/users/javier-moreno-tridonic-com","html_url":"https://github.com/javier-moreno-tridonic-com","followers_url":"https://api.github.com/users/javier-moreno-tridonic-com/followers","following_url":"https://api.github.com/users/javier-moreno-tridonic-com/following{/other_user}","gists_url":"https://api.github.com/users/javier-moreno-tridonic-com/gists{/gist_id}","starred_url":"https://api.github.com/users/javier-moreno-tridonic-com/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/javier-moreno-tridonic-com/subscriptions","organizations_url":"https://api.github.com/users/javier-moreno-tridonic-com/orgs","repos_url":"https://api.github.com/users/javier-moreno-tridonic-com/repos","events_url":"https://api.github.com/users/javier-moreno-tridonic-com/events{/privacy}","received_events_url":"https://api.github.com/users/javier-moreno-tridonic-com/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ARMmbed/mbed-drivers/labels/mirrored","name":"mirrored","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-02-19T09:27:23Z","updated_at":"2016-02-23T16:16:32Z","closed_at":null,"body":"I don't know if this is the proper repo to open this issue. But since I assume that mbed_die is intended to crash the program on demand here it goes.\r\n\r\nFrom our personal experience we found out that for debugging purposes and long term test, will be very interesting to be able to log the stack trace in case of error or crash.\r\n\r\nTypically on unix systems that can be achieved with \"execinfo.h\" library. But AFAIK there is no such library available in the GNU tools for ARM embedded.\r\n\r\nDoes mbedos provides a mean to achieve this? If not, is there anything planned or a way to achieve it?"},"comment":{"url":"https://api.github.com/repos/ARMmbed/mbed-drivers/issues/comments/187769287","html_url":"https://github.com/ARMmbed/mbed-drivers/issues/154#issuecomment-187769287","issue_url":"https://api.github.com/repos/ARMmbed/mbed-drivers/issues/154","id":187769287,"user":{"login":"meriac","id":408576,"avatar_url":"https://avatars.githubusercontent.com/u/408576?v=3","gravatar_id":"","url":"https://api.github.com/users/meriac","html_url":"https://github.com/meriac","followers_url":"https://api.github.com/users/meriac/followers","following_url":"https://api.github.com/users/meriac/following{/other_user}","gists_url":"https://api.github.com/users/meriac/gists{/gist_id}","starred_url":"https://api.github.com/users/meriac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meriac/subscriptions","organizations_url":"https://api.github.com/users/meriac/orgs","repos_url":"https://api.github.com/users/meriac/repos","events_url":"https://api.github.com/users/meriac/events{/privacy}","received_events_url":"https://api.github.com/users/meriac/received_events","type":"User","site_admin":false},"created_at":"2016-02-23T16:16:32Z","updated_at":"2016-02-23T16:16:32Z","body":"@javier-moreno-tridonic-com No, what I propose is a uvisor independent driver that maps debug outputs / stack traces to whatever hardware you have. For many devices this simply means UART debug output. uVisor would just utilise that driver for solving the same problem you have - but you should be fine with using the same driver with some OS-specific code in case you don't have uVisor around."}}