about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2018-08-22 03:01:14 +0000
committerbors <bors@rust-lang.org>2018-08-22 03:01:14 +0000
commit786ccc336dc684cdb00402e84abe4a9bc53857cf (patch)
tree4132434226fb51ce9a13b30fbb48bf290974c9b4 /src/liballoc
parenta79cffb8b8330527d262bdde56387d45ac46dd44 (diff)
parentd6426e8a25baa3011b9db14aca660b39b9867578 (diff)
downloadrust-786ccc336dc684cdb00402e84abe4a9bc53857cf.tar.gz
rust-786ccc336dc684cdb00402e84abe4a9bc53857cf.zip
Auto merge of #53477 - ftilde:exec-rust-gdb-lldb, r=michaelwoerister
Exec gdb/lldb in rust-{gdb/lldb} wrapper scripts

This way, the process we get by executing `rust-gdb` or `rust-lldb` (eventually) is an actual `gdb` or `lldb` process and behaves accordingly. Previously (and at least to me unexpectedly) it was just a script waiting for the debugger to exit. Sending a signal (e.g. SIGINT) to the spawned process did therefore not affect the debugger process (which was just a child of the wrapper script).

In order to work around that we `exec` (according to [this](http://pubs.opengroup.org/onlinepubs/009695399/utilities/exec.html) part of the posix shell) and replace the script process with the debugger in the last line of the script. The lldb script had to be modified to not pass the configuration commands via a script file (which in my opinion is cleaner anyway).
Diffstat (limited to 'src/liballoc')
0 files changed, 0 insertions, 0 deletions