title: GDB Input Redirection not working on MacOS Big Sur
body: <p>I am using macOS Big Sur, v11.5.2, and GDB v10.2</p>
  <p>I have seen similar issues before, but with no clear answer.
  I am trying to run a program in GDB with input redirection</p>
  <pre><code>sudo gdb ./executable
  r &lt; input.txt
  </code></pre>
  <p>But when I do this the shell hangs, waiting for manual input instead of reading input from the file. I have gone through the process of creating code signing certificate for GDB, running as sudo, but the same issue occurs. </p>
  <p>I also know about MacOS's SIP and how that interferes. <a href="https://sourceware.org/bugzilla/show_bug.cgi?id=23364" rel="nofollow noreferrer">This link</a>, coming from this StackOverflow <a href="https://stackoverflow.com/questions/51492932/gdb-input-redirection-not-working-on-mac-os-high-sierra-10-13-3">post</a> doesn't seem to offer any solutions. At least any solution that maintains the ability to use input/output redirection in GDB. <br/></p>
  <p>If anyone has an answer and can clearly articulate it here, I would greatly appreciate it.</p>