[lldb-dev] GitHub Survey Online

2016-10-17 Thread Renato Golin via lldb-dev
Folks, After a number of months in preparation and just two weeks away from the US Dev. Meeting, where we'll hold a BoF to discuss the Git migration, here's how you'll voice your concerns: https://goo.gl/forms/ZYs0Wv9g0w0ikCRQ2 The survey is meant to be a channel for people and companies/project

Re: [lldb-dev] add custom vendor commands

2016-10-17 Thread Greg Clayton via lldb-dev
> On Oct 13, 2016, at 2:24 AM, Giusti, Valentina via lldb-dev > wrote: > > Hello all, > > Background: > Intel CPUs that support MPX have a limited number of bound registers. For any > program that has more objects than fit into these registers, the bounds must > be kept elsewhere. For this

Re: [lldb-dev] unaligned cast in TCPSocket::Connect

2016-10-17 Thread Greg Clayton via lldb-dev
> On Oct 13, 2016, at 10:52 AM, Ted Woodward via lldb-dev > wrote: > > TCPSocket::Connect has this line: > host_str = ::inet_ntoa (*(struct in_addr > *)*host_entry->h_addr_list); > > host_entry->h_addr_list is a char**, while struct in_addr contains a > uint32_t. Casting like th

Re: [lldb-dev] LLDB can't find source...but it can?

2016-10-17 Thread Greg Clayton via lldb-dev
This is a compiler bug. > On Oct 14, 2016, at 12:14 PM, Ted Woodward > wrote: > >> Probably a debug info problem. Before we know to look for addresses within >> a compile unit, the compile unit must claim it has a function that contains >> this >> address. So check the DWARF in the compile un

Re: [lldb-dev] LLDB can't find source...but it can?

2016-10-17 Thread Ted Woodward via lldb-dev
What's the compiler bug? I see a DW_AT_subprogram entry for main_gdbserver, and linetable entries for the addresses of main_gdbserver. I've found that getting DWARF compiler bugs fixed can be...challenging. The better I can narrow it down for the compiler engineers, the better. This is clang

Re: [lldb-dev] LLDB can't find source...but it can?

2016-10-17 Thread Greg Clayton via lldb-dev
Send me the file offline. I will help narrow it down for you. > On Oct 17, 2016, at 9:58 AM, Ted Woodward wrote: > > What's the compiler bug? I see a DW_AT_subprogram entry for main_gdbserver, > and linetable entries for the addresses of main_gdbserver. > > I've found that getting DWARF compi

[lldb-dev] File::Read does not read everything

2016-10-17 Thread Eugene Birukov via lldb-dev
Hello, I am using LLDB 3.9 on Linux Ubuntu. I am loading a 5GiB core which is located on Windows file share mounted on Linux via mount.cifs. I see that we successfully allocated memory and are trying to fill it in one read. Unfortunately pread returns 2GiB and we never check for short read her

Re: [lldb-dev] File::Read does not read everything

2016-10-17 Thread Greg Clayton via lldb-dev
It is probably best to make the code loop as long as "bytes_reads > 0" and we haven't read "num_bytes" yet. The darwin kernel has a INT32_MAX read size which gets set to MAX_READ_SIZE, but we need to do that because if you try to read more than that it reads nothing. So MAX_READ_SIZE is more for

Re: [lldb-dev] File::Read does not read everything

2016-10-17 Thread Eugene Birukov via lldb-dev
Here is what I am running now: diff --git a/source/Host/common/File.cpp b/source/Host/common/File.cpp index 89587a9..a4ac25e 100644 --- a/source/Host/common/File.cpp +++ b/source/Host/common/File.cpp @@ -771,21 +771,34 @@ File::Read (void *buf, size_t &num_bytes, off_t &offset) int fd = GetD

Re: [lldb-dev] File::Read does not read everything

2016-10-17 Thread Zachary Turner via lldb-dev
Can you upload a diff (with context) to phabricator and add lldb-commits as a subscriber and myself / Greg as reviewers? On Mon, Oct 17, 2016 at 4:59 PM Eugene Birukov via lldb-dev < lldb-dev@lists.llvm.org> wrote: > Here is what I am running now: > > > diff --git a/source/Host/common/File.cpp b/

Re: [lldb-dev] File::Read does not read everything

2016-10-17 Thread Eugene Birukov via lldb-dev
Sorry for noob's question: what is "phabricator"? Sure, I will do it as soon as I understand what you want me to do :) Sent from Outlook From: Zachary Turner Sent: Monday, October 17, 2016 5:01 PM To: Eugene Birukov; Greg Clayton Cc:

Re: [lldb-dev] File::Read does not read everything

2016-10-17 Thread Zachary Turner via lldb-dev
http://reviews.llvm.org. Create an account there and upload patch On Mon, Oct 17, 2016 at 5:15 PM Eugene Birukov wrote: > Sorry for noob's question: what is "phabricator"? > > Sure, I will do it as soon as I understand what you want me to do :) > > > Sent from Outlook >

Re: [lldb-dev] File::Read does not read everything

2016-10-17 Thread Eugene Birukov via lldb-dev
Done. https://reviews.llvm.org/D25712 Sent from Outlook From: Zachary Turner Sent: Monday, October 17, 2016 5:24 PM To: Eugene Birukov; Greg Clayton Cc: LLDB Subject: Re: [lldb-dev] File::Read does not read everything http://reviews.l