From 07dbcee626c35fbc2cd4cda75783dbc9f84594a2 Mon Sep 17 00:00:00 2001 From: baohongde Date: Fri, 5 Jun 2020 17:06:40 +0800 Subject: [PATCH] components/bt: assert in host, to coredump param --- components/bt/bt.c | 12 ++++++++++++ components/bt/lib | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/components/bt/bt.c b/components/bt/bt.c index ca397d6676..3236a2a21d 100644 --- a/components/bt/bt.c +++ b/components/bt/bt.c @@ -1385,6 +1385,18 @@ esp_err_t esp_ble_scan_dupilcate_list_flush(void) return ESP_OK; } +/** + * This function re-write controller's function, + * As coredump can not show paramerters in function which is in a .a file. + * + * After coredump fixing this issue, just delete this function. + */ +void IRAM_ATTR r_assert(const char *condition, int param0, int param1, const char *file, int line) +{ + __asm__ __volatile__("ill\n"); +} + + #define BT_IS_ALIVE true #define BT_NOT_ALIVE false diff --git a/components/bt/lib b/components/bt/lib index c832b171c1..ba4826d620 160000 --- a/components/bt/lib +++ b/components/bt/lib @@ -1 +1 @@ -Subproject commit c832b171c12858be3cbca91ec9398aa30efdd7fb +Subproject commit ba4826d6202abea4821e48817c979ee137c8dbdc