[Lldb-commits] [PATCH] D49207: Get rid of the C-string parameter in DoExecute

2018-07-13 Thread Raphael Isemann via Phabricator via lldb-commits
teemperor added a comment. Sorry, I think I know why this is happening. Give me a bit to make a patch. Repository: rL LLVM https://reviews.llvm.org/D49207 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mai

[Lldb-commits] [PATCH] D49207: Get rid of the C-string parameter in DoExecute

2018-07-13 Thread Stella Stamenova via Phabricator via lldb-commits
stella.stamenova added a comment. I am debugging through it right now, but I believe this change caused several tests on Windows with Python 3 to fail. The failures are all related to UTF-8. For example: UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 0: invalid start by

[Lldb-commits] [PATCH] D49207: Get rid of the C-string parameter in DoExecute

2018-07-12 Thread Raphael Isemann via Phabricator via lldb-commits
This revision was not accepted when it landed; it landed in state "Needs Revision". This revision was automatically updated to reflect the committed changes. Closed by commit rL336955: Get rid of the C-string parameter in DoExecute (authored by teemperor, committed by ). Herald added a subscriber

[Lldb-commits] [PATCH] D49207: Get rid of the C-string parameter in DoExecute

2018-07-12 Thread Raphael Isemann via Phabricator via lldb-commits
teemperor accepted this revision. teemperor added a comment. Davide also approved it offline (thx). https://reviews.llvm.org/D49207 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [PATCH] D49207: Get rid of the C-string parameter in DoExecute

2018-07-12 Thread Jim Ingham via Phabricator via lldb-commits
jingham added a comment. Yeah, you are right about that. The command string presented to commands never contained the command name, that always got stripped off. But I don't think that ever left the command string to be nullptr... So you are right, that was just dead code. https://reviews.

[Lldb-commits] [PATCH] D49207: Get rid of the C-string parameter in DoExecute

2018-07-12 Thread Raphael Isemann via Phabricator via lldb-commits
teemperor added a comment. @jingham I thought the same at first, but giving an error `command.empty()` turns out to be a problem. The command string contains the arguments (but not the command name itself). So when calling for example `bt` we would hit this error (as there are no args, so `com

[Lldb-commits] [PATCH] D49207: Get rid of the C-string parameter in DoExecute

2018-07-11 Thread Jim Ingham via Phabricator via lldb-commits
jingham requested changes to this revision. jingham added a comment. This revision now requires changes to proceed. I think the CommandObjectRegex check that you took out wasn't something devious or clever, but was just an incomplete (and so buggy) version of the check: if (command && command[0]

[Lldb-commits] [PATCH] D49207: Get rid of the C-string parameter in DoExecute

2018-07-11 Thread Raphael Isemann via Phabricator via lldb-commits
teemperor created this revision. teemperor added a reviewer: davide. This patch gets rid of the C-string parameter in the RawCommandObject::DoExecute function, making the code simpler and less memory unsafe. There seems to be a assumption in some command objects that this parameter could be a n