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@lists.llvm.org
          Reporter: jan.kratoch...@redhat.com
                CC: jdevliegh...@apple.com, llvm-b...@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 the assignee for the bug.
_______________________________________________
lldb-dev mailing list
lldb-dev@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev

Reply via email to