Skip to content

Commit 5eef7bf

Browse files
committed
Add instruction for debugging posix application with LLDB
1 parent fbaeba3 commit 5eef7bf

File tree

1 file changed

+5
-0
lines changed
  • portable/ThirdParty/GCC/Posix

1 file changed

+5
-0
lines changed

portable/ThirdParty/GCC/Posix/port.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@
4848
* stdio (printf() and friends) should be called from a single task
4949
* only or serialized with a FreeRTOS primitive such as a binary
5050
* semaphore or mutex.
51+
*
52+
* Note: When using LLDB (the default debugger on macOS) with this port,
53+
* suppress SIGUSR1 to prevent debugger interference. This can be
54+
* done by adding the following line to ~/.lldbinit:
55+
* `process handle SIGUSR1 -n true -p true -s false`
5156
*----------------------------------------------------------*/
5257
#ifdef __linux__
5358
#define _GNU_SOURCE

0 commit comments

Comments
 (0)