mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #12101 from rajkan01/feature_crash_report_fix
Bare metal: Retrieve error context after crashpull/12132/head
commit
806ad39648
|
|
@ -13,9 +13,6 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
#if !defined(MBED_CONF_RTOS_PRESENT)
|
||||
#error [NOT_SUPPORTED] crash_reporting test cases require a RTOS to run.
|
||||
#else
|
||||
#include "mbed.h"
|
||||
#include "mbed_error.h"
|
||||
#include "mbed_crash_data_offsets.h"
|
||||
|
|
@ -83,4 +80,3 @@ int main(void)
|
|||
}
|
||||
|
||||
#endif // !MBED_CONF_PLATFORM_CRASH_CAPTURE_ENABLED
|
||||
#endif // !defined(MBED_CONF_RTOS_PRESENT)
|
||||
|
|
|
|||
|
|
@ -76,6 +76,7 @@ int $Super$$main(void);
|
|||
int $Sub$$main(void)
|
||||
{
|
||||
mbed_main();
|
||||
mbed_error_initialize();
|
||||
return $Super$$main();
|
||||
}
|
||||
|
||||
|
|
@ -109,6 +110,7 @@ void software_init_hook(void)
|
|||
int __wrap_main(void)
|
||||
{
|
||||
mbed_main();
|
||||
mbed_error_initialize();
|
||||
return __real_main();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue