[llvm-bugs] [Bug 43588] New: argv[0] is always passed as absolute

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Oct 7 06:56:55 PDT 2019


https://bugs.llvm.org/show_bug.cgi?id=43588

            Bug ID: 43588
           Summary: argv[0] is always passed as absolute
           Product: lldb
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: lldb-dev at lists.llvm.org
          Reporter: jan.kratochvil at redhat.com
                CC: jdevlieghere at apple.com, llvm-bugs at lists.llvm.org

echo 'int main(int argc,char **argv){}'|clang -g -x c
-;~/redhat/llvm-monorepo-clangassert/bin/lldb -batch ./a.out -o 'b main' -o r
-o 'p argv[0]'

Actual:
(char *) $0 = "/tmp/a.out"

Expected:
(char *) $0 = "./a.out"

Some debuggee issues being debugged may depend on its argv[0].

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20191007/36a2b9f6/attachment.html>


More information about the llvm-bugs mailing list