[lldb-dev] [Bug 43588] New: argv[0] is always passed as absolute

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


            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]'

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

(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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20191007/75498c6a/attachment.html>

More information about the lldb-dev mailing list