<div class="chatlog__message-group">
  <div id="chatlog__message-container-1276129055220961301" class="chatlog__message-container" data-message-id="1276129055220961301">
    <div class="chatlog__message">
      <div class="chatlog__message-aside"><img class="chatlog__avatar" src="https://cdn.discordapp.com/avatars/310258733890535426/8fffd5befbc057dcd546b39b0259e66a.png?size=512" alt="Avatar" loading="lazy"></div>
      <div class="chatlog__message-primary">
        <div class="chatlog__header"><span class="chatlog__author" title="iceman5499" data-user-id="310258733890535426">Iceman</span> <a href="/channels/306246042817396737?category=main&amp;channel=linux-swift&amp;message_id=1276129055220961301"><span class="chatlog__timestamp" title="Thursday, August 22, 2024 10:41 AM"></span></a><a href="#chatlog__message-container-1276129055220961301">8/22/2024 10:41 AM</a></div>
        <div class="chatlog__content chatlog__markdown"><span class="chatlog__markdown-preserve"><code class="chatlog__markdown-pre chatlog__markdown-pre--multiline nohighlight">(lldb) breakpoint set -n setenv Breakpoint 1: no locations (pending). WARNING: Unable to resolve breakpoint to any actual locations. (lldb) breakpoint set -r '^\$ss11CommandLine.*' Breakpoint 2: no locations (pending). WARNING: Unable to resolve breakpoint to any actual locations. (lldb) run Process 8380 launched: '/empty-args-test/.build/debug/App' (aarch64) 17 locations added to breakpoint 2 1 location added to breakpoint 1 Process 8380 stopped * thread #1, name = 'App', stop reason = breakpoint 1.1 frame #0: 0x0000fffff58ac9f4 libc.so.6`__setenv(name="ZES_ENABLE_SYSMAN", value="1", replace=1) at setenv.c:255:6 (lldb) c Process 8380 resuming :smiling_imp: use 'setenv' in static constructor Process 8380 stopped * thread #1, name = 'App', stop reason = breakpoint 1.1 frame #0: 0x0000fffff58ac9f4 libc.so.6`__setenv(name="FOO", value="BAR", replace=1) at setenv.c:255:6 (lldb) c Process 8380 resuming a.cpp: ***GRABBING ARGV for 8380*** a.cpp: envp = 0xaaaaaafee220 a.cpp: envp = 0xaaaaaafee220, stack is from 0xfffffffdf000 to 0x1000000000000 ARGV is at (nil) with count 0 a.cpp: ***ARGV GRABBED*** Hello, World! Process 8380 stopped * thread #1, name = 'App', stop reason = breakpoint 2.10 frame #0: 0x0000fffff7c20dec libswiftCore.so`$ss11CommandLineO9argumentsSaySSGvgZ libswiftCore.so`$ss11CommandLineO9argumentsSaySSGvgZ: -&gt; 0xfffff7c20dec &lt;+0&gt;: stp x29, x30, [sp, #-0x10]! 0xfffff7c20df0 &lt;+4&gt;: adrp x0, 795 0xfffff7c20df4 &lt;+8&gt;: add x0, x0, #0x60 0xfffff7c20df8 &lt;+12&gt;: adrp x1, 0</code> main.swiftの中が走るまでの間に<code class="chatlog__markdown-pre chatlog__markdown-pre--inline">CommandLine</code>に誰も触ってないな・・・</span></div>
      </div>
    </div>
  </div>
</div>