[Lldb-commits] [PATCH] D146668: [lldb-server] Use Platform plugin corresponding to the host

Alex Langford via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Wed Mar 22 16:23:25 PDT 2023


bulbazord added a comment.
Herald added a subscriber: JDevlieghere.

With this patch:

  alex at ubuntu:~/llvm-project/build$ ./bin/lldb foo
  (lldb) target create "foo"
  Current executable set to '/home/alex/llvm-project/build/foo' (aarch64).
  (lldb) r
  Process 19623 launched: '/home/alex/llvm-project/build/foo' (aarch64)
  Process 19623 stopped
  * thread #1, name = 'foo', stop reason = signal SIGSEGV: invalid permissions for mapped object (fault address: 0xfffff7ff6000)
      frame #0: 0x0000aaaaaaaa0808 foo`crash() at foo.cpp:5:7
     2
     3    void crash() {
     4            int *ptr = static_cast<int *>(mmap(nullptr, sizeof(int), PROT_NONE, MAP_PRIVATE | MAP_ANONYMOUS, 0, 0));
  -> 5            *ptr = 0x12345678;
     6            munmap(ptr, sizeof(int));
     7    }
     8
  (lldb)


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D146668/new/

https://reviews.llvm.org/D146668



More information about the lldb-commits mailing list