Skip to content

Commit 2e32fe9

Browse files
committed
Merge pull request atomvm#2049 from bettio/enable-crash-dumps-on-embedded-plat
Enable/Make AVM_PRINT_PROCESS_CRASH_DUMPS work on embedded platforms These changes are made under both the "Apache 2.0" and the "GNU Lesser General Public License 2.1 or later" license terms (dual license). SPDX-License-Identifier: Apache-2.0 OR LGPL-2.1-or-later
2 parents 64badd3 + 9ce39ee commit 2e32fe9

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

src/platforms/esp32/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,5 +85,6 @@ option(AVM_DISABLE_SMP "Disable SMP." OFF)
8585
option(AVM_USE_32BIT_FLOAT "Use 32 bit floats." OFF)
8686
option(AVM_VERBOSE_ABORT "Print module and line number on VM abort" OFF)
8787
option(AVM_CREATE_STACKTRACES "Create stacktraces" ON)
88+
option(AVM_PRINT_PROCESS_CRASH_DUMPS "Print crash reports when processes die with non-standard reasons" ON)
8889

8990
add_subdirectory(tools)

src/platforms/rp2/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ option(AVM_WAIT_BOOTSEL_ON_EXIT "Wait in BOOTSEL rather than shutdown on exit" O
6767
option(AVM_REBOOT_ON_NOT_OK "Reboot Pico if result is not ok" OFF)
6868
option(AVM_CREATE_STACKTRACES "Create stacktraces" ON)
6969
option(AVM_DISABLE_JIT "Disable just in time compilation." ON)
70+
option(AVM_PRINT_PROCESS_CRASH_DUMPS "Print crash reports when processes die with non-standard reasons" ON)
7071
if(CMAKE_SYSTEM_PROCESSOR MATCHES "^cortex-m.+$")
7172
# We only have armv6m for now, which all cortex-m should support
7273
if (NOT AVM_DISABLE_JIT)

src/platforms/stm32/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ option(AVM_ENABLE_LOG_LINES "Include source and line info for all enbled levels"
3636
option(AVM_CONFIG_REBOOT_ON_NOT_OK "Reboot when application exits with non 'ok' return" OFF)
3737
option(AVM_DISABLE_GPIO_NIFS "Disable GPIO nifs (input and output)" OFF)
3838
option(AVM_DISABLE_GPIO_PORT_DRIVER "Disable GPIO 'port' driver (input, output, and interrupts)" OFF)
39+
option(AVM_PRINT_PROCESS_CRASH_DUMPS "Print crash reports when processes die with non-standard reasons" ON)
3940

4041
set(AVM_DISABLE_SMP ON FORCE)
4142
set(AVM_DISABLE_TASK_DRIVER ON FORCE)

0 commit comments

Comments
 (0)