]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
port from v3.2.x
authorAlan T. DeKok <aland@freeradius.org>
Wed, 8 Jan 2025 20:09:11 +0000 (15:09 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 8 Jan 2025 20:36:21 +0000 (15:36 -0500)
scripts/osx/debug.md [new file with mode: 0644]
scripts/osx/debug.plist [new file with mode: 0644]

diff --git a/scripts/osx/debug.md b/scripts/osx/debug.md
new file mode 100644 (file)
index 0000000..ea75c2b
--- /dev/null
@@ -0,0 +1,38 @@
+# Debugging on OSX
+
+We assume that all of the code is in a particular path:
+
+```
+FR_PATH=$(HOME)/
+```
+
+The program has to be signed:
+
+````
+cd $(FR_PATH)
+codesign -s - -v -f --entitlements ./scripts/osx/debug.plist ./build/bin/local/radiusd
+```
+
+
+Start it up in Xcode with a full path to the executable:
+`$(FR_PATH)/build/bin/local/radiusd`.  Usually done via `open
+./build/bin/local` and then dragging the `radius` program to the file selector in Xcode.
+
+Set command-line arguments:
+
+```
+-fxx -l stdout -m -d $(FR_PATH)/raddb -D $(FR_PATH)/share
+```
+
+And environment variables.
+
+```
+DYLD_FALLBACK_LIBRARY_PATH=$(FR_PATH)/build/lib/.libs>
+FR_LIBRARY_PATH=$(FR_PATH)/build/lib/local/.libs
+```
+
+Pass signals in `lldb` directly to the program:
+
+```
+(lldb) pro hand -p true -s false SIGHUP
+```
diff --git a/scripts/osx/debug.plist b/scripts/osx/debug.plist
new file mode 100644 (file)
index 0000000..5458a4b
--- /dev/null
@@ -0,0 +1 @@
+<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "https://www.apple.com/DTDs/PropertyList-1.0.dtd"><plist version="1.0"><dict><key>com.apple.security.get-task-allow</key><true/></dict></plist>