Sampler with C giving <Game Symbol Not Found>

Hi!

TL;DR - sampler (C/Device) gives me Game Symbol not found. I'm doing things in a pretty vanilla way.

Deets:

Wanting to profile my tech demo C game. Using SDK Version 2.3.1 (165008), M1 Mac Mini running Sonoma 14.3

I start my game in the simulator, Command-U to run it on a device. Then open the Sampler window, selected Choose Game, navigated to my Game.pdx bundle directory, and then started the sample.

SDK calls are profiled ok, but the majority of samples are going to (unknown) 0x00000082. Screenshot at dropbox

It's a Hello_World copy-pasta, using the plain make files. Below are the build lines (I see -g's there, so assuming debug symbols are available for use). gcc version: arm-none-eabi-gcc GNU Tools for Arm Embedded Processors 9-2019-q4-major 9.2.1 20191025 (release) ARM/arm-9-branch revision 277599

I tried restarting the simulator and the device, but no change in behavior.

Thanks!
++md

detected_OS is "Darwin"
mkdir -p build
mkdir -p build/dep
mkdir -p `dirname build/src/main.o`
/usr/local/bin/arm-none-eabi-gcc -g3 -c -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-sp-d16 -D__FPU_USED=1 -O2 -falign-functions=16 -fomit-frame-pointer -gdwarf-2 -Wall -Wno-unused -Wstrict-prototypes -Wno-unknown-pragmas -fverbose-asm -Wdouble-promotion -mword-relocations -fno-common -ffunction-sections -fdata-sections -Wa,-ahlms=build/main.lst -DTARGET_PLAYDATE=1 -DTARGET_EXTENSION=1  -MD -MP -MF build/dep/main.o.d -I . -I . -I /Users/markd/Developer/PlaydateSDK/C_API src/main.c -o build/src/main.o
/usr/local/bin/arm-none-eabi-gcc -g3 build/src/main.o build//Users/markd/Developer/PlaydateSDK/C_API/buildsupport/setup.o -nostartfiles -mthumb -mcpu=cortex-m7 -mfloat-abi=hard -mfpu=fpv5-sp-d16 -D__FPU_USED=1 -T/Users/markd/Developer/PlaydateSDK/C_API/buildsupport/link_map.ld -Wl,-Map=build/pdex.map,--cref,--gc-sections,--no-warn-mismatch,--emit-relocs    -o build/pdex.elf
cp build/pdex.elf Source
clang -g -g -dynamiclib -rdynamic -lm -DTARGET_SIMULATOR=1 -DTARGET_EXTENSION=1 -I . -I /Users/markd/Developer/PlaydateSDK/C_API -o build/pdex.dylib src/main.c /Users/markd/Developer/PlaydateSDK/C_API/buildsupport/setup.c
cp build/pdex.dylib Source
/Users/markd/Developer/PlaydateSDK/bin/pdc  Source Render.pdx

and boot messages in the console:

echo off
target=dvt1
build=5cf1e016-2.3.1-release.165008-buildbot-240207
boot_build=5cf1e016-2.3.1-release.165008-buildbot
SDK=2.3.1
pdxversion=20300
serial#=PDU1-Y011370
cc=9.2.1 20191025 (release) [ARM/arm-9-branch revision 277599]
pcbver=0x01
time and date set

Yay solved!

When going "choose game", choose the pdx.elf in the build directory, rather than the game bundle.

2 Likes