forked from OSchip/llvm-project
468ca490c6
Summary: Normally, on linux we retrieve the process ID from the LinuxProcStatus stream (which is just the contents of /proc/%d/status pseudo-file). However, this stream is not strictly required (it's a breakpad extension), and we are encountering a fair amount of minidumps which do not have it present. It's not clear whether this is the case with all these minidumps, but the two known situations where this stream can be missing are: - /proc filesystem not mounted (or something to that effect) - process crashing after exhausting (almost) all file descriptors (so the minidump writer may not be able to open the /proc file) Since this is a corner case which will become less and less relevant (crashpad-generated minidumps should not suffer from this problem), I work around this problem by hardcoding the PID to 1 in these cases. The same thing is done by the gdb plugin when talking to a stub which does not report a process id (e.g. a hardware probe). Reviewers: jingham, clayborg Subscribers: markmentovai, lldb-commits Tags: #lldb Differential Revision: https://reviews.llvm.org/D70238 |
||
---|---|---|
.. | ||
Inputs | ||
Windows | ||
breakpad-symbols.test | ||
disassemble-no-module.yaml | ||
dump-all.test | ||
fb-dump.test | ||
lit.local.cfg | ||
memory-region-from-module.yaml | ||
memory-region.yaml | ||
no-process-id.yaml |