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.kratochvil@redhat.com
CC jdevlieghere@apple.com, llvm-bugs@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].