llvm-project/lldb
Walter Erquinigo a80c6c7d36 [trace] clear any existing tracing sessions before relaunching the binary
There's a bug caused when a process is relaunched: the target, which
doesn't change, keeps the Trace object from the previous process, which
is already defunct, and causes segmentation faults when it's attempted
to be used.
A fix is to clean up the Trace object when the target is disposing of
the previous process during relaunches.

A way to reproduce this:
```
lldb a.out
b main
r
process trace start
c
r
process trace start
```

Differential Revision: https://reviews.llvm.org/D122176
2022-03-21 16:03:37 -07:00
..
bindings [lldb] Expose diagnostic events through the SB API 2022-03-16 15:03:31 -07:00
cmake [lldb] Add support for a "global" lldbinit file 2022-02-18 12:30:22 +01:00
docs [simple] fix formatting in the intel-pt doc 2022-03-21 15:56:55 -07:00
examples [lldb/crashlog] Create artificial frames for non-crashed scripted threads 2022-03-16 15:50:10 -07:00
include/lldb [trace] Use vector instead of ArrayRef when reading data 2022-03-21 16:03:37 -07:00
packages/Python/lldbsuite Revert "[lldb/test] Add events listener helper class to lldbtest" 2022-03-21 08:32:16 +01:00
resources [lldb] Remove stale LLDB-Info.plist 2021-01-08 10:12:16 -08:00
scripts Prefer /usr/bin/env xxx over /usr/bin/xxx where xxx = perl, python, awk 2021-02-25 11:32:27 +01:00
source [trace] clear any existing tracing sessions before relaunching the binary 2022-03-21 16:03:37 -07:00
test [trace] clear any existing tracing sessions before relaunching the binary 2022-03-21 16:03:37 -07:00
third_party/Python/module [lldb][NFC] Inclusive language: replace master/slave names for ptys 2021-11-12 10:54:18 -06:00
tools [lldb/driver] Fix SIGTSTP handling 2022-03-09 14:31:17 +01:00
unittests Fix e6c84f82b8 2022-03-21 15:02:02 -07:00
utils [lldb] Match test dependencies name to other LLVM projects. 2021-05-21 00:10:27 -07:00
.clang-format
.clang-tidy [lldb] Replace default bodies of special member functions with = default; 2021-07-02 11:31:16 -07:00
.gitignore
CMakeLists.txt [cmake] Make include(GNUInstallDirs) always below project(..) 2022-01-20 18:59:17 +00:00
CODE_OWNERS.txt [CODE OWNERS] Add wallace as code owner 2022-01-12 12:36:30 -08:00
LICENSE.TXT
use_lldb_suite_root.py