[Lldb-commits] [lldb] r228859 - Make PipeWindows::CreateWithUniqueName() use GUIDs on Windows.

2015-02-11 Thread Zachary Turner
Author: zturner Date: Wed Feb 11 12:21:28 2015 New Revision: 228859 URL: http://llvm.org/viewvc/llvm-project?rev=228859view=rev Log: Make PipeWindows::CreateWithUniqueName() use GUIDs on Windows. Patch by Adrian McCarthy Differential Revision: http://reviews.llvm.org/D7509 Modified:

Re: [Lldb-commits] [PATCH] Fix FileSpec::GetPath to return null-terminated strings

2015-02-11 Thread Greg Clayton
Changes requested inline. Comment at: source/API/SBFileSpec.cpp:92-98 @@ -91,8 +91,9 @@ int SBFileSpec::ResolvePath (const char *src_path, char *dst_path, size_t dst_len) { llvm::SmallString64 result(src_path); lldb_private::FileSpec::Resolve (result); size_t

[Lldb-commits] [lldb] r228867 - Fixed SBModule::GetUUIDString() to not use a static character buffer.

2015-02-11 Thread Greg Clayton
Author: gclayton Date: Wed Feb 11 13:16:38 2015 New Revision: 228867 URL: http://llvm.org/viewvc/llvm-project?rev=228867view=rev Log: Fixed SBModule::GetUUIDString() to not use a static character buffer. Rules for returning const char * from functions in the public lldb::SB* API are that you

Re: [Lldb-commits] [PATCH] Merge lldb-platform and lldb-gdbserver into a single binary.

2015-02-11 Thread Tamas Berghammer
REPOSITORY rL LLVM http://reviews.llvm.org/D7545 EMAIL PREFERENCES http://reviews.llvm.org/settings/panel/emailpreferences/ ___ lldb-commits mailing list lldb-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/lldb-commits

Re: [Lldb-commits] [PATCH] Linux - debugging of local processes via lldb-gdbserver

2015-02-11 Thread Greg Clayton
Looks good. I believe doing remote debugging all of the time is the best way to go and what we should encourage people to use it. We might also, in a separate patch, ask the platform for the GDB remote binary. The default implementation would return lldb-gdbserver: virtual Error

Re: [Lldb-commits] [PATCH] Fix argdumper build in cmake (OS X) after r228636

2015-02-11 Thread Ilia K
Enable dwarf test on non-mac platforms http://reviews.llvm.org/D7550 Files: scripts/Python/finish-swig-Python-LLDB.sh scripts/Python/finishSwigPythonLLDB.py test/functionalities/launch_with_glob/TestLaunchWithGlob.py tools/CMakeLists.txt tools/argdumper/CMakeLists.txt EMAIL

Re: [Lldb-commits] [PATCH] Add -exec-arguments command

2015-02-11 Thread Greg Clayton
On Feb 11, 2015, at 2:24 PM, Ilia K ki.s...@gmail.com wrote: In http://reviews.llvm.org/D6965#121476, @clayborg wrote: It would be nice to have lldb_private::Target have its own ProcessLaunchInfo as a member variable and change all storage of settings (target.run-args, target.arg0 etc)

Re: [Lldb-commits] [PATCH] Fix argdumper build in cmake (OS X) after r228636

2015-02-11 Thread Ilia K
In http://reviews.llvm.org/D7550#122016, @zturner wrote: I was objecting to both things actually: 1. Disabled in the CMake build that Ilia ported 2. Test disabled on non mac. We should be enabling tests in all platforms by default, and if it breaks someone should be fixing the tests.

Re: [Lldb-commits] [PATCH] Add -exec-arguments command

2015-02-11 Thread Ilia K
In http://reviews.llvm.org/D6965#121474, @clayborg wrote: You could verify that you can set the args with settings set and then run with your empty SBLaunchInfo and verify that you got the right args? It doesn't work (test MiInterpreterExecTestCase.test_lldbmi_settings_set_target_run_args

[Lldb-commits] [PATCH] Don't use CopyContext in RegisterContextWin

2015-02-11 Thread Adrian McCarthy
Hi zturner, Bug 22410 http://reviews.llvm.org/D7572 Files: include/lldb/Host/windows/windows.h source/Plugins/Process/Windows/x86/RegisterContextWindows_x86.cpp source/Plugins/Process/Windows/x86/RegisterContextWindows_x86.h Index: include/lldb/Host/windows/windows.h

Re: [Lldb-commits] [PATCH] Don't use CopyContext in RegisterContextWin

2015-02-11 Thread Zachary Turner
Comment at: include/lldb/Host/windows/windows.h:22-23 @@ -21,4 +21,2 @@ #undef CreateProcess -#undef LoadImage -#undef GetUserName #undef far What's this part for? Comment at:

Re: [Lldb-commits] [PATCH] Merge lldb-platform and lldb-gdbserver into a single binary.

2015-02-11 Thread Robert Flack
Keep lldb-platform.cpp and lldb-gdbserver.cpp separate but link and call into them from lldb-server.cpp. Also merges changes from ToT. REPOSITORY rL LLVM http://reviews.llvm.org/D7545 Files: source/Plugins/Process/gdb-remote/GDBRemoteCommunication.cpp

Re: [Lldb-commits] [PATCH] Merge lldb-platform and lldb-gdbserver into a single binary.

2015-02-11 Thread Robert Flack
I've kept the two in separate cpp files with a new cpp file for lldb-server which calls the main on one or the other. REPOSITORY rL LLVM Comment at: source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.cpp:493 @@ -492,3 +492,3 @@ // FIXME This looks an awful

[Lldb-commits] [lldb] r228892 - Make a more complete fix for always supplying an execution context when getting byte sizes from types.

2015-02-11 Thread Greg Clayton
Author: gclayton Date: Wed Feb 11 18:34:25 2015 New Revision: 228892 URL: http://llvm.org/viewvc/llvm-project?rev=228892view=rev Log: Make a more complete fix for always supplying an execution context when getting byte sizes from types. There was a test in the test suite that was triggering the

Re: [Lldb-commits] [PATCH] Make TestHelloWorld.py to pass remotely on Linux.

2015-02-11 Thread jingham
It is part of the linker stage so each rebuild should produce an unique UUID. Note, the MacOS X linker actually makes the UUID by checksumming the binary - minus some obvious bits the linker knows to contain timestamps - so if you rebuild the same sources with the same compiler compiler

Re: [Lldb-commits] [PATCH] Make TestHelloWorld.py to pass remotely on Linux.

2015-02-11 Thread Jim Ingham
It is part of the linker stage so each rebuild should produce an unique UUID. Note, the MacOS X linker actually makes the UUID by checksumming the binary - minus some obvious bits the linker knows to contain timestamps - so if you rebuild the same sources with the same compiler compiler

[Lldb-commits] [PATCH] Quiet Coverity

2015-02-11 Thread Justin Hibbits
Hi emaste, Coverity warns that unsigned = 0 is always true, and k_first_gpr_powerpc happens to be 0. Quiet Coverity by changing that comparison instead to a static_assert(), in case things change in the future. REPOSITORY rL LLVM http://reviews.llvm.org/D7576 Files:

Re: [Lldb-commits] [PATCH] RFC: Proposed change in the disassembly default format in lldb

2015-02-11 Thread Jason Molenda
I like your suggestion of showing the comment contents as the operand instead of the raw address (or in addition to the raw address) -- but there are lots of things that can end up in the comments (and llvm can add additional things like hints about what an instruction does) so it might not

Re: [Lldb-commits] [PATCH] RFC: Proposed change in the disassembly default format in lldb

2015-02-11 Thread Jason Molenda
I didn't explain the disassembly-format in my proposal - it already works like you're describing. The current lldb format is ${current-pc-arrow}${addr-file-or-load}{ ${function.name-without-args}${function.concrete-only-addr-offset-no-padding}}: A user can put this in their ~/.lldbinit file

Re: [Lldb-commits] [PATCH] Fix FileSpec::GetPath to return null-terminated strings

2015-02-11 Thread Ilia K
@abidh, Take a look again please. http://reviews.llvm.org/D7553 EMAIL PREFERENCES http://reviews.llvm.org/settings/panel/emailpreferences/ ___ lldb-commits mailing list lldb-commits@cs.uiuc.edu

Re: [Lldb-commits] [PATCH] Fix FileSpec::GetPath to return null-terminated strings

2015-02-11 Thread Hafiz Abid Qadeer
Look good to me. It would be good to fix the similar problem in other places too. One example is SBFileSpec::ResolvePath. http://reviews.llvm.org/D7553 EMAIL PREFERENCES http://reviews.llvm.org/settings/panel/emailpreferences/ ___ lldb-commits

Re: [Lldb-commits] [PATCH] Fix FileSpec::GetPath to return null-terminated strings

2015-02-11 Thread Ilia K
Ok. http://reviews.llvm.org/D7553 EMAIL PREFERENCES http://reviews.llvm.org/settings/panel/emailpreferences/ ___ lldb-commits mailing list lldb-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] r228824 - Add extra check that target was stopped before the *stopped is sent.

2015-02-11 Thread Ilia K
Author: ki.stfu Date: Wed Feb 11 05:24:20 2015 New Revision: 228824 URL: http://llvm.org/viewvc/llvm-project?rev=228824view=rev Log: Add extra check that target was stopped before the *stopped is sent. This patch fixes r228417. It's required because eStateCrushed case wasn't investigated.

[Lldb-commits] [PATCH] Fix FileSpec::GetPath to return null-terminated strings

2015-02-11 Thread Ilia K
Hi abidh, zturner, clayborg, Before this fix the FileSpec::GetPath() returned string which might be without '\0' at the end. It could have happened if the size of buffer for path was less than actual path. Test case: ``` FileSpec test(/path/to/file, false); char buf[]=!!; test.GetPath(buf,

Re: [Lldb-commits] [PATCH] Fix FileSpec::GetPath to return null-terminated strings

2015-02-11 Thread Ilia K
Fix strncpy in all files of the source folder http://reviews.llvm.org/D7553 Files: source/API/SBFileSpec.cpp source/API/SBModule.cpp source/Host/common/FileSpec.cpp source/Host/common/SocketAddress.cpp source/Host/macosx/HostInfoMacOSX.mm source/Host/posix/HostInfoPosix.cpp

[Lldb-commits] [lldb] r228910 - Search through all memory regions of the core file for

2015-02-11 Thread Jason Molenda
Author: jmolenda Date: Thu Feb 12 00:14:23 2015 New Revision: 228910 URL: http://llvm.org/viewvc/llvm-project?rev=228910view=rev Log: Search through all memory regions of the core file for both a user process dyld and for a kernel binary -- we will decide which to prefer after one or both have

Re: [Lldb-commits] [PATCH] RFC: Proposed change in the disassembly default format in lldb

2015-02-11 Thread Zachary Turner
Personally I prefer always seeing the full function name, even if it's messy. As an aside, have you considered embedding the function name directly as the operand to the jump instruction, as opposed to as a comment? For example, instead of this: 0x107915443 +51: callq 0x107d87bb0

Re: [Lldb-commits] [PATCH] Quiet Coverity

2015-02-11 Thread Justin Hibbits
REPOSITORY rL LLVM http://reviews.llvm.org/D7576 Files: lldb/trunk/source/Plugins/Process/Utility/RegisterContextPOSIX_powerpc.cpp Index: lldb/trunk/source/Plugins/Process/Utility/RegisterContextPOSIX_powerpc.cpp === ---

[Lldb-commits] [lldb] r228909 - Cast EOF to get a proper comparison.

2015-02-11 Thread Justin Hibbits
Author: jhibbits Date: Wed Feb 11 23:31:46 2015 New Revision: 228909 URL: http://llvm.org/viewvc/llvm-project?rev=228909view=rev Log: Cast EOF to get a proper comparison. On PowerPC, and maybe some other architectures, 'char' is unsigned. Comparing an unsigned char with a signed int (-1) is

[Lldb-commits] [lldb] r228908 - Quiet Coverity

2015-02-11 Thread Justin Hibbits
Author: jhibbits Date: Wed Feb 11 23:31:31 2015 New Revision: 228908 URL: http://llvm.org/viewvc/llvm-project?rev=228908view=rev Log: Quiet Coverity Summary: Coverity warns that unsigned = 0 is always true, and k_first_gpr_powerpc happens to be 0. Quiet Coverity by changing that comparison

[Lldb-commits] [PATCH] RFC: Proposed change in the disassembly default format in lldb

2015-02-11 Thread Jason Molenda
In r219544 (2014-10-10) I changed the default disassembly format to more closely resemble gdb's disassembly format. After living on this format for a few months, there are obvious shortcomings with C++ and Objective-C programs and I want to try a new approach. Originally lldb's disassembly