[Lldb-commits] [PATCH] D27459: Add a more succinct logging syntax

2017-01-17 Thread Zachary Turner via Phabricator via lldb-commits
zturner added inline comments. Comment at: source/Core/Log.cpp:78 + char *text; + vasprintf(&text, format, args); + message << text; dancol wrote: > I usually implement printf-into-std::string by using `vsnprintf` to figure > out how many characters we genera

[Lldb-commits] [PATCH] D27459: Add a more succinct logging syntax

2017-01-17 Thread Daniel Colascione via Phabricator via lldb-commits
dancol added inline comments. Comment at: source/Core/Log.cpp:78 + char *text; + vasprintf(&text, format, args); + message << text; I usually implement printf-into-std::string by using `vsnprintf` to figure out how many characters we generate, using `std::str

[Lldb-commits] [PATCH] D27459: Add a more succinct logging syntax

2017-01-17 Thread Greg Clayton via Phabricator via lldb-commits
clayborg accepted this revision. clayborg added a comment. This revision is now accepted and ready to land. Looks good. https://reviews.llvm.org/D27459 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/l

[Lldb-commits] [PATCH] D27459: Straw-man proposal for new logging syntax

2017-01-17 Thread Pavel Labath via Phabricator via lldb-commits
labath updated this revision to Diff 84690. labath added a comment. Final version. No real changes, just removed usage changes in NativeProcessLinux I will put in as sepearate patches. https://reviews.llvm.org/D27459 Files: include/lldb/Core/Log.h source/Commands/CommandObjectLog.cpp sour

[Lldb-commits] [PATCH] D28808: Fix a bug where lldb does not respect the packet size.

2017-01-17 Thread Greg Clayton via Phabricator via lldb-commits
clayborg requested changes to this revision. clayborg added a comment. This revision now requires changes to proceed. We need to check stub_max_size to make sure we don't get an integer underflow. Comment at: source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp:3999 + //

[Lldb-commits] [PATCH] D28804: Provide a substitute to load command of gdb

2017-01-17 Thread Greg Clayton via Phabricator via lldb-commits
clayborg requested changes to this revision. clayborg added a comment. This revision now requires changes to proceed. We need to agree on options names and move the object file loading code into ObjectFile.cpp. See inlined comments. Comment at: source/Commands/CommandObjectTar

[Lldb-commits] [PATCH] D28758: Fix typos and update "GDB To LLDB Command Map" to be a bit more clear

2017-01-17 Thread Jim Ingham via Phabricator via lldb-commits
jingham accepted this revision. jingham added a comment. This revision is now accepted and ready to land. This looks fine to me. Thanks for cleaning this up! Repository: rL LLVM https://reviews.llvm.org/D28758 ___ lldb-commits mailing list lldb-

[Lldb-commits] [PATCH] D28808: Fix a bug where lldb does not respect the packet size.

2017-01-17 Thread Hafiz Abid Qadeer via Phabricator via lldb-commits
abidh created this revision. LLDB was using packet size advertised by the target as the max memory size to write in one go. It is wrong because packets have other overhead apart from memory payload. Also memory transferred through 'm' and 'M' packets needs 2 bytes in packet to transfer 1 of mem

[Lldb-commits] [PATCH] D28804: Provide a substitute to load command of gdb

2017-01-17 Thread Hafiz Abid Qadeer via Phabricator via lldb-commits
abidh created this revision. For bare-metal targets, lldb was missing a command like 'load' in gdb which can be used to create executable image on the target. This was discussed in http://lists.llvm.org/pipermail/lldb-dev/2016-December/011752.html This diff adds an option to "target module load

[Lldb-commits] [PATCH] D28775: [cmake] Make lldb build with the android ndk toolchain file

2017-01-17 Thread Pavel Labath via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL292212: [cmake] Make lldb build with the android ndk toolchain file (authored by labath). Changed prior to commit: https://reviews.llvm.org/D28775?vs=84571&id=84651#toc Repository: rL LLVM https://r

[Lldb-commits] [lldb] r292212 - [cmake] Make lldb build with the android ndk toolchain file

2017-01-17 Thread Pavel Labath via lldb-commits
Author: labath Date: Tue Jan 17 05:55:00 2017 New Revision: 292212 URL: http://llvm.org/viewvc/llvm-project?rev=292212&view=rev Log: [cmake] Make lldb build with the android ndk toolchain file Summary: The NDK cmake toolchain file defines CMAKE_SYSTEM_NAME=Android, so switch the build to use that

[Lldb-commits] [PATCH] D28775: [cmake] Make lldb build with the android ndk toolchain file

2017-01-17 Thread Tamas Berghammer via Phabricator via lldb-commits
tberghammer accepted this revision. tberghammer added a comment. This revision is now accepted and ready to land. LGTM https://reviews.llvm.org/D28775 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/li