DavidSpickett wrote:

Would this be helped with better error messages?

```
$ ./bin/lldb /tmp/test.o --core core.test.o.2152361.tcwg-jade-03-dev.1753366442 
(lldb) target create "/tmp/test.o" --core 
"core.test.o.2152361.tcwg-jade-03-dev.1753366442"
Core file 
'/home/david.spickett/build-llvm-aarch64/core.test.o.2152361.tcwg-jade-03-dev.1753366442'
 (aarc
h64) was loaded.
(lldb) memory region -a
[0x0000000000000000-0x0000aaaadaba8000) ---
[0x0000aaaadaba8000-0x0000aaaadaba9000) r-x PT_LOAD[0]
[0x0000aaaadaba9000-0x0000aaaadabb8000) ---
[0x0000aaaadabb8000-0x0000aaaadabb9000) r--
[0x0000aaaadabb9000-0x0000aaaadabba000) rw- PT_LOAD[1]
[0x0000aaaadabba000-0x0000ffff9c0e0000) ---
[0x0000ffff9c0e0000-0x0000ffff9c268000) r-x PT_LOAD[0]
[0x0000ffff9c268000-0x0000ffff9c277000) ---
[0x0000ffff9c277000-0x0000ffff9c27b000) r--
[0x0000ffff9c27b000-0x0000ffff9c27d000) rw- PT_LOAD[1]
[0x0000ffff9c27d000-0x0000ffff9c289000) rw- PT_LOAD[1]
[0x0000ffff9c289000-0x0000ffff9c294000) ---
[0x0000ffff9c294000-0x0000ffff9c2bf000) r-x PT_LOAD[0]
[0x0000ffff9c2bf000-0x0000ffff9c2ca000) ---
[0x0000ffff9c2ca000-0x0000ffff9c2cc000) rw-
[0x0000ffff9c2cc000-0x0000ffff9c2cd000) r--
[0x0000ffff9c2cd000-0x0000ffff9c2ce000) r-x PT_LOAD[0]
[0x0000ffff9c2ce000-0x0000ffff9c2d0000) r--
[0x0000ffff9c2d0000-0x0000ffff9c2d2000) rw- PT_LOAD[1]
[0x0000ffff9c2d2000-0x0000ffffd6e35000) ---
[0x0000ffffd6e35000-0x0000ffffd6e56000) rw-
[0x0000ffffd6e56000-0xffffffffffffffff) ---
(lldb) memory read 0
error: core file does not contain 0x0
(lldb) memory region 0
[0x0000000000000000-0x0000aaaadaba8000) ---
```
For this ELF core, "does not contain memory data for 0x0" would be a small 
improvement.

Can you get minidumps to return some verbose error as well?

It is a bit weird that `memory region` shows areas that are not mapped in the 
first place. It does not make it obvious which are gaps. Off topic for your 
specific issue though.

https://github.com/llvm/llvm-project/pull/149401
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to