[lldb-dev] [patch] Avoid crash when connecting to gdbserver

Abid, Hafiz Hafiz_Abid at mentor.com
Thu Aug 15 06:04:50 PDT 2013


Hi All,
I noticed a crash when I connect to gdbserver without first loading a file.  This is on x86_64 with Ubuntu 12.04.

./lldb
(lldb) gdb-remote 10000
Segmentation fault (core dumped)

The attached patch adds a check to avoid the crash. Does it look ok?

Regards,
Abid
-------------- next part --------------
A non-text attachment was scrubbed...
Name: crash.patch
Type: application/octet-stream
Size: 661 bytes
Desc: crash.patch
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20130815/f2ecbba5/attachment.obj>


More information about the lldb-dev mailing list