You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2021/02/08 08:07:37 UTC

[GitHub] [mynewt-core] kasjer commented on a change in pull request #2472: MTB in core dump

kasjer commented on a change in pull request #2472:
URL: https://github.com/apache/mynewt-core/pull/2472#discussion_r571844547



##########
File path: hw/scripts/micro-trace-buffer.py
##########
@@ -37,6 +37,12 @@ class MicroTraceBuffer(gdb.Command):
 
     def __init__(self):
         super(MicroTraceBuffer, self).__init__("mtb", gdb.COMMAND_STATUS, gdb.COMPLETE_NONE)
+        try:
+            mtb_state_at_crash = gdb.lookup_symbol("mtb_state_at_crash")[0]

Review comment:
       this can also detect mtb_state_at_crash variable on live system and it this case real addresses should be used




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