Launch application in gdb with non-path name
<p>I am trying to launch a legacy application in GDB, and it requires that it's <code>argv[0]</code> value not contain anything other than alphanumeric characters.</p>

<p>Whenever I launch the program in GDB it seems that it expands the name to be the full path before running the program, so I get an error like (because it can't deal with the slashes):</p>

<p>"Cannot find /home/user/myapp ..."</p>

<p>Is it possible to run a program in GDB with a relative path, so that it will just see "myapp"?</p>