Re: [lldb-dev] First hand support for musl-libc

2016-08-11 Thread Hans Wennborg via lldb-dev
On Thu, Aug 11, 2016 at 9:28 AM, Pavel Labath wrote: > On 10 August 2016 at 22:34, Dangling Pointer > wrote: >> Thanks Pavel! I see the changes made in master branch. >> >> >> By any change can these be back-ported to release38 and 39 branches? Since >> llvm38 is the one aports is offering. >> >

Re: [lldb-dev] LLDB Evolution

2016-08-11 Thread Ted Woodward via lldb-dev
ary Turner via lldb-dev > mailto:lldb-dev@lists.llvm.org> > wrote: > > On Wed, Aug 10, 2016 at 10:37 PM Chris Lattner <mailto:clatt...@apple.com> > wrote: > >> On Aug 9, 2016, at 3:01 PM, Zachary Turner via lldb-dev >> mailto:lldb-dev@lists.llvm.org&g

Re: [lldb-dev] LLDB Evolution

2016-08-11 Thread Jim Ingham via lldb-dev
t; - Will we stop using _sp and _up on the end of shared and unique > pointers? > > -- > Qualcomm Innovation Center, Inc. > The Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a > Linux Foundation Collaborative Project > > From: lldb-dev [mailto:lldb-d

Re: [lldb-dev] LLDB Evolution

2016-08-11 Thread Chris Lattner via lldb-dev
lldb > coding conventions doc. > > Jim > > > On Aug 11, 2016, at 11:20 AM, Zachary Turner via lldb-dev > > mailto:lldb-dev@lists.llvm.org>> wrote: > > > > On Wed, Aug 10, 2016 at 10:37 PM Chris Lattner > <mailto:clatt...@apple.com>>

Re: [lldb-dev] LLDB Evolution

2016-08-11 Thread Greg Clayton via lldb-dev
> On Aug 11, 2016, at 12:19 PM, Ted Woodward via lldb-dev > wrote: > > I don’t think we can completely get rid of the lldb coding conventions doc; > we’ll need this type of thing as long as we use swig: > > · enumerations that might end up being in the lldb S

Re: [lldb-dev] LLDB Evolution

2016-08-11 Thread Zachary Turner via lldb-dev
On Thu, Aug 11, 2016 at 3:28 PM Greg Clayton wrote: > > > - Will we stop putting m_ at the front of class ivars and g_ at > the front of globals? > > I believe these make things much clearer and I would love to see llvm and > clang adopt some way to identify member variables. "m_" might

Re: [lldb-dev] LLDB Evolution

2016-08-11 Thread Greg Clayton via lldb-dev
> On Aug 11, 2016, at 3:40 PM, Zachary Turner wrote: > > > On Thu, Aug 11, 2016 at 3:28 PM Greg Clayton wrote: > > > - Will we stop putting m_ at the front of class ivars and g_ at > > the front of globals? > > I believe these make things much clearer and I would love to see llvm a

Re: [lldb-dev] LLDB Evolution

2016-08-11 Thread Zachary Turner via lldb-dev
On Thu, Aug 11, 2016 at 4:05 PM Greg Clayton wrote: > > If we go camel case then debugger_sp would become DebuggerSP. > The problem is that's already the name of the typedef in lldb-forward.h :( Unless we get rid of all those (also not entirely opposed to that TBH).

Re: [lldb-dev] LLDB Evolution

2016-08-11 Thread Chris Lattner via lldb-dev
> On Aug 11, 2016, at 3:40 PM, Zachary Turner via lldb-dev > wrote: > > > On Thu, Aug 11, 2016 at 3:28 PM Greg Clayton <mailto:gclay...@apple.com>> wrote: > > > - Will we stop putting m_ at the front of class ivars and g_ at > > the fron

Re: [lldb-dev] First hand support for musl-libc

2016-08-12 Thread Pavel Labath via lldb-dev
Hi, I do run a basic set of tests (compile+run test suite) on linux from time to time, but unfortunately I don't have time to be more active in this. I have just completed the test on the release branch with these changes cherry-picked and it seems to working fine. But I certainly agree that the r

Re: [lldb-dev] LLDB Evolution

2016-08-12 Thread Pavel Labath via lldb-dev
On 12 August 2016 at 00:54, Chris Lattner via lldb-dev wrote: > I recommend approaching this in three steps: > > 1) get the less-controversial changes done that Greg was outlining. > 2) start a discussion in the llvm community about the concept of a > member/global prefix. >

Re: [lldb-dev] LLDB Evolution

2016-08-12 Thread Jim Ingham via lldb-dev
> On Aug 12, 2016, at 5:23 AM, Pavel Labath via lldb-dev > wrote: > > On 12 August 2016 at 00:54, Chris Lattner via lldb-dev > wrote: >> I recommend approaching this in three steps: >> >> 1) get the less-controversial changes done that Greg was outlining. >

Re: [lldb-dev] First hand support for musl-libc

2016-08-12 Thread Hans Wennborg via lldb-dev
I've merged r277997, r277999 and r278001 to 3.9 in r278540. Cheers, Hans On Fri, Aug 12, 2016 at 1:02 AM, Pavel Labath wrote: > Hi, > > I do run a basic set of tests (compile+run test suite) on linux from > time to time, but unfortunately I don't have time to be more active in > this. I have jus

[lldb-dev] FW: Search C++ "virtual" objects

2016-08-12 Thread Lei Kong via lldb-dev
On Linux, given a core dump file, an executable and its symbols, is it possible to do the following in LLDB (maybe with a LLDB extension)? 1. Get the list of all C++ virtual types (classes with virtual function table) 2. Search the whole address space to find all instances of such objects? (false

Re: [lldb-dev] Search C++ "virtual" objects

2016-08-12 Thread Greg Clayton via lldb-dev
> On Aug 12, 2016, at 4:55 PM, Lei Kong via lldb-dev > wrote: > > On Linux, given a core dump file, an executable and its symbols, is it > possible to do the following in LLDB (maybe with a LLDB extension)? > > 1. Get the list of all C++ virtual types (classes

Re: [lldb-dev] LLDB Evolution

2016-08-15 Thread Pavel Labath via lldb-dev
erent files, but it should be manageable. pl On 12 August 2016 at 18:13, Jim Ingham wrote: > >> On Aug 12, 2016, at 5:23 AM, Pavel Labath via lldb-dev >> wrote: >> >> On 12 August 2016 at 00:54, Chris Lattner via lldb-dev >> wrote: >>> I recommend appr

Re: [lldb-dev] LLDB Evolution

2016-08-15 Thread David Jones via lldb-dev
On Mon, Aug 15, 2016 at 2:36 AM, Pavel Labath via lldb-dev < lldb-dev@lists.llvm.org> wrote: > I've sampled the python code from the llvm repository, and it seems to > be using a mixture of 4-, 2-, and even 8- character indent, with 4 > being the most prevalent. So, I thin

Re: [lldb-dev] Search C++ "virtual" objects

2016-08-15 Thread Lei Kong via lldb-dev
lvm.org> Subject: Re: [lldb-dev] Search C++ "virtual" objects > On Aug 12, 2016, at 4:55 PM, Lei Kong via lldb-dev > wrote: > > On Linux, given a core dump file, an executable and its symbols, is it > possible to do the following in LLDB (maybe with a LLDB ext

Re: [lldb-dev] Search C++ "virtual" objects

2016-08-15 Thread Lei Kong via lldb-dev
Should I use lldb::SBTarget::GetModuleAtIndex() to get all modules and then lldb::SBModule::GetSymbolAtIndex() to go through all symbols? Thanks. Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10 From: Lei Kong via lldb-dev<mailto:lldb-dev@lists.llvm.

Re: [lldb-dev] LLDB Evolution

2016-08-15 Thread Chris Lattner via lldb-dev
> On Aug 15, 2016, at 8:50 AM, David Jones via lldb-dev > wrote: > > On Mon, Aug 15, 2016 at 2:36 AM, Pavel Labath via lldb-dev > mailto:lldb-dev@lists.llvm.org>> wrote: > I've sampled the python code from the llvm repository, and it seems to > be using

[lldb-dev] Code Coverage with GCOV

2016-08-16 Thread Ravitheja Addepally via lldb-dev
Hello, I was trying to get Code Coverage for LLDB with GCOV on Linux by adding the corresponding flags in the CMake files, but I am facing problem with lldb-server, which does not give seem to generate the gcda files. The host side does generate the gcov files although. The lldb-server does

[lldb-dev] Breakpoint + callback performance ... Can it be faster?

2016-08-16 Thread Benjamin Dicken via lldb-dev
I recently started using lldb to write a basic instrumentation tool for tracking the values of variables at various code-points in a program. I've been working with lldb for less than two weeks, so I am pretty new. Though, I have used and written llvm passes in the past, so I'm familiar with the cl

Re: [lldb-dev] Breakpoint + callback performance ... Can it be faster?

2016-08-16 Thread Jim Ingham via lldb-dev
text-switches and packet traffic while you were running in the hot parts of your code. This is a decent chunk of work, however. Jim > On Aug 16, 2016, at 9:57 AM, Benjamin Dicken via lldb-dev > wrote: > > I recently started using lldb to write a basic instrumentation tool for

Re: [lldb-dev] Code Coverage with GCOV

2016-08-16 Thread Vedant Kumar via lldb-dev
, you may want to double-check that the gcda files are being written to the right directory. best, vedant > On Aug 16, 2016, at 7:58 AM, Ravitheja Addepally via lldb-dev > wrote: > > Hello, >I was trying to get Code Coverage for LLDB with GCOV on Linux by > adding the

Re: [lldb-dev] Breakpoint + callback performance ... Can it be faster?

2016-08-16 Thread Benjamin Dicken via lldb-dev
r. This would eliminate some of > the context-switches and packet traffic while you were running in the hot > parts of your code. This is a decent chunk of work, however. > > Jim > > > > On Aug 16, 2016, at 9:57 AM, Benjamin Dicken via lldb-dev < > lldb-dev@lists.llv

Re: [lldb-dev] Breakpoint + callback performance ... Can it be faster?

2016-08-16 Thread Jim Ingham via lldb-dev
g like the gdb > "tracepoints" were you can upload instructions to perform "experiments" when > a breakpoint is hit to the lldb-server instance. The work to perform the > experiment and the results would all be kept in the lldb-server instance till > a real breakpoi

Re: [lldb-dev] Search C++ "virtual" objects

2016-08-16 Thread Greg Clayton via lldb-dev
> On Aug 15, 2016, at 4:59 PM, Lei Kong wrote: > > Should I use lldb::SBTarget::GetModuleAtIndex() to get all modules and then > lldb::SBModule::GetSymbolAtIndex() to go through all symbols? > Thanks. This is the only way right now as we don't have a SBModule::FindSymbols that takes a regular

Re: [lldb-dev] Breakpoint + callback performance ... Can it be faster?

2016-08-16 Thread Benjamin Dicken via lldb-dev
tion we've toyed with on and off is something like the gdb > "tracepoints" were you can upload instructions to perform "experiments" > when a breakpoint is hit to the lldb-server instance. The work to perform > the experiment and the results would all be kept in t

Re: [lldb-dev] Search C++ "virtual" objects

2016-08-17 Thread Lei Kong via lldb-dev
m> Cc: Lei Kong via lldb-dev<mailto:lldb-dev@lists.llvm.org> Subject: Re: [lldb-dev] Search C++ "virtual" objects > On Aug 15, 2016, at 4:59 PM, Lei Kong wrote: > > Should I use lldb::SBTarget::GetModuleAtIndex() to get all modules and then > lldb::SBModule

Re: [lldb-dev] Breakpoint + callback performance ... Can it be faster?

2016-08-17 Thread Pavel Labath via lldb-dev
16 August 2016 at 21:43, Benjamin Dicken via lldb-dev wrote: > > > On Tue, Aug 16, 2016 at 11:06 AM, Jim Ingham wrote: >> >> >> > On Aug 16, 2016, at 10:42 AM, Benjamin Dicken >> > wrote: >> > >> > Thanks for the quick reply. >> >

Re: [lldb-dev] Code Coverage with GCOV

2016-08-17 Thread Ravitheja Addepally via lldb-dev
xt and > cmake/modules/HandleLLVMOptions.cmake). > > Also, you may want to double-check that the gcda files are being written > to the > right directory. > > best, > vedant > > > > On Aug 16, 2016, at 7:58 AM, Ravitheja Addepally via lldb-dev < > lldb-dev@lists.ll

[lldb-dev] showing CPU register flags

2016-08-17 Thread Giusti, Valentina via lldb-dev
Hi everyone, I am currently implementing the support for the Intel MPX registers in LLDB. This register set includes 2 registers, BNDSTATUS and BNDCFGU, which store information about the status and configuration of the MPX feature in several fields. I think that it would be useful for the user

Re: [lldb-dev] Code Coverage with GCOV

2016-08-17 Thread Vedant Kumar via lldb-dev
w the LLVM_BUILD_INSTRUMENTED cmake option is implemented to > double-check that you've got something reasonable (see: llvm/CMakeLists.txt > and > cmake/modules/HandleLLVMOptions.cmake). > > Also, you may want to double-check that the gcda files are being written to > the > rig

Re: [lldb-dev] showing CPU register flags

2016-08-17 Thread Jim Ingham via lldb-dev
terValues really want to be scalars, so they don't provide a natural way to do this. You would probably have to convert "register read" over to use the ValueObject for this project to be worth doing. Jim > On Aug 17, 2016, at 8:17 AM, Giusti, Valentina via lldb-dev > wrote:

Re: [lldb-dev] Search C++ "virtual" objects

2016-08-17 Thread Greg Clayton via lldb-dev
nt: Tuesday, August 16, 2016 11:42 AM > To: Lei Kong > Cc: Lei Kong via lldb-dev > Subject: Re: [lldb-dev] Search C++ "virtual" objects > > > > On Aug 15, 2016, at 4:59 PM, Lei Kong wrote: > > > > Should I use lldb::SBTarget::GetModuleAtIndex() to ge

Re: [lldb-dev] showing CPU register flags

2016-08-17 Thread Greg Clayton via lldb-dev
> On Aug 17, 2016, at 8:17 AM, Giusti, Valentina via lldb-dev > wrote: > > Hi everyone, > > I am currently implementing the support for the Intel MPX registers in LLDB. > This register set includes 2 registers, BNDSTATUS and BNDCFGU, which store > informat

Re: [lldb-dev] showing CPU register flags

2016-08-18 Thread Giusti, Valentina via lldb-dev
Thanks for your replies! @Greg, I think I will start by trying your approach and then I will get back to you with some feedback in a couple of days. Cheers, - Valentina > -Original Message- > > I am currently implementing the support for the Intel MPX registers in LLDB. > This register

Re: [lldb-dev] LLDB Evolution

2016-08-18 Thread Kate Stone via lldb-dev
veryone who has chimed in with suggestions, and with contributions to ensure that include ordering doesn’t become an issue on other platforms. Kate Stone k8st...@apple.com <mailto:k8st...@apple.com>  Xcode Low Level Tools > On Aug 15, 2016, at 8:50 AM, David Jones via lldb-dev > wro

Re: [lldb-dev] lldb remote debuting failing

2016-08-18 Thread Greg Clayton via lldb-dev
> On Aug 18, 2016, at 2:37 AM, via lldb-dev wrote: > > Hi All, > > I am trying to remote debug. My code is on 10.11 and my test machine is > 10.12, Sierra. I am using Xcode 5 on both machines. I am following below > steps for remote debugging: > Test mach

[lldb-dev] [3.9 Release] Release Candidate 2 has been tagged

2016-08-18 Thread Hans Wennborg via lldb-dev
Dear testers, 3.9.0-rc2 was just tagged from the 3.9 branch at r279183. This is a release candidate in the very real sense that if nothing new comes up, this is be what the final release looks like. There are currently no open release blockers, and no patches in my merge-queue. Please build, tes

Re: [lldb-dev] LLDB Evolution

2016-08-19 Thread Pavel Labath via lldb-dev
s. > > Kate Stone k8st...@apple.com >  Xcode Low Level Tools > > On Aug 15, 2016, at 8:50 AM, David Jones via lldb-dev > wrote: > > On Mon, Aug 15, 2016 at 2:36 AM, Pavel Labath via lldb-dev > wrote: >> >> I've sampled the python code from the llvm rep

[lldb-dev] LLDB Evolution: Next Phase

2016-08-19 Thread Kate Stone via lldb-dev
swift-lldb repository on GitHub. Any concerns? Kate Stone k8st...@apple.com <mailto:k8st...@apple.com>  Xcode Low Level Tools > On Aug 18, 2016, at 11:15 AM, Kate Stone via lldb-dev > wrote: > > If there’s consensus on a reasonable automated formatting solution for Python &g

Re: [lldb-dev] [Release-testers] [3.9 Release] Release Candidate 2 has been tagged

2016-08-19 Thread Renato Golin via lldb-dev
On 19 August 2016 at 02:51, Hans Wennborg via Release-testers wrote: > This is a release candidate in the very real sense that if nothing new > comes up, this is be what the final release looks like. There are > currently no open release blockers, and no patches in my merge-queue. ARM binaries go

Re: [lldb-dev] [Release-testers] [3.9 Release] Release Candidate 2 has been tagged

2016-08-20 Thread Bernhard Rosenkränzer via lldb-dev
Hi, built successfully and passed initial tests on OpenMandriva x86_64, aarch64, i586 and armv7hnl. ttyl bero On 19 August 2016 at 03:51, Hans Wennborg via Release-testers < release-test...@lists.llvm.org> wrote: > Dear testers, > > 3.9.0-rc2 was just tagged from the 3.9 branch at r279183. > > T

Re: [lldb-dev] [Release-testers] [3.9 Release] Release Candidate 2 has been tagged

2016-08-20 Thread Dimitry Andric via lldb-dev
On 19 Aug 2016, at 03:51, Hans Wennborg via Release-testers wrote: > > 3.9.0-rc2 was just tagged from the 3.9 branch at r279183. > > This is a release candidate in the very real sense that if nothing new > comes up, this is be what the final release looks like. There are > currently no open rel

Re: [lldb-dev] [Release-testers] [3.9 Release] Release Candidate 2 has been tagged

2016-08-20 Thread Sylvestre Ledru via lldb-dev
Le 19/08/2016 à 03:51, Hans Wennborg via Release-testers a écrit : Dear testers, 3.9.0-rc2 was just tagged from the 3.9 branch at r279183. This is a release candidate in the very real sense that if nothing new comes up, this is be what the final release looks like. There are currently no open r

Re: [lldb-dev] LLDB Evolution: Next Phase

2016-08-22 Thread Pavel Labath via lldb-dev
On 19 August 2016 at 22:10, Kate Stone via lldb-dev wrote: > Following up from yesterday, everything now builds and runs cleanly with the > configuration described below on macOS. I did have to make one set of minor > changes to preserve #include ordering, but that’s already committed

[lldb-dev] Linux ELF header e_ident[EI_OSABI] value

2016-08-22 Thread Howard Hellyer via lldb-dev
I've been trying to understand why some Linux core files fail to load in lldb. The problem seems to be that in the ELF header Linux uses the ELFOSABI_NONE (0x0) value rather than ELFOSABIT_LINUX (0x3).If I either change the e_ident[EI_OSABI] byte to 0x3 in the header or the code in ArchSpec.cp

Re: [lldb-dev] Linux ELF header e_ident[EI_OSABI] value

2016-08-22 Thread Greg Clayton via lldb-dev
> On Aug 22, 2016, at 6:00 AM, Howard Hellyer via lldb-dev > wrote: > > I've been trying to understand why some Linux core files fail to load in > lldb. > > The problem seems to be that in the ELF header Linux uses the ELFOSABI_NONE > (0x0) value rather th

Re: [lldb-dev] [Release-testers] [3.9 Release] Release Candidate 2 has been tagged

2016-08-22 Thread Hans Wennborg via lldb-dev
On Sat, Aug 20, 2016 at 2:45 PM, Sylvestre Ledru wrote: > Le 19/08/2016 à 03:51, Hans Wennborg via Release-testers a écrit : >> >> Dear testers, >> >> 3.9.0-rc2 was just tagged from the 3.9 branch at r279183. >> >> This is a release candidate in the very real sense that if nothing new >> comes up,

[lldb-dev] [3.9 Release] Release Candidate 2 source and binaries available

2016-08-22 Thread Hans Wennborg via lldb-dev
We're getting close to the final release. I know the schedule on the web page says 'final' should be tagged today, but I still think it should be possible to get there this week. Source and binaries for LLVM-3.9.0-rc2 are now available at http://llvm.org/pre-releases/3.9.0/#rc2 Please try it out

Re: [lldb-dev] Linux ELF header e_ident[EI_OSABI] value

2016-08-22 Thread Ted Woodward via lldb-dev
n Center, Inc. The Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project -Original Message- From: lldb-dev [mailto:lldb-dev-boun...@lists.llvm.org] On Behalf Of Greg Clayton via lldb-dev Sent: Monday, August 22, 2016 11:00 AM To: Howard

[lldb-dev] LLVM Social in Berlin, Germany. 25.08.2016

2016-08-22 Thread Alex Denisov via lldb-dev
Hello everybody, Just want to let you know that the first LLVM Social in Berlin will happen this Thursday, 19:00 CET. The place is a nice co-working space/cafe called Betahaus: https://www.google.com/maps?f=q&hl=en&q=Prinzessinnenstrasse+19-20+10969,+,+Berlin,+de Looking forward to meet you all

Re: [lldb-dev] [Release-testers] [3.9 Release] Release Candidate 2 source and binaries available

2016-08-22 Thread Renato Golin via lldb-dev
Hi Hans, I did upload the aarch64 binary, didn't you find it? Maybe I uploaded the wrong one? Cheers, Renato On 22 Aug 2016 7:55 p.m., "Hans Wennborg via Release-testers" < release-test...@lists.llvm.org> wrote: > We're getting close to the final release. I know the schedule on the > web page s

Re: [lldb-dev] [Release-testers] [3.9 Release] Release Candidate 2 source and binaries available

2016-08-22 Thread Hans Wennborg via lldb-dev
I replied on the "has been tagged" thread; I couldn't find the binary on the sftp. Maybe you uploaded the wrong version, or in some other folder? On Mon, Aug 22, 2016 at 4:01 PM, Renato Golin wrote: > Hi Hans, > > I did upload the aarch64 binary, didn't you find it? Maybe I uploaded the > wrong o

Re: [lldb-dev] Linux ELF header e_ident[EI_OSABI] value

2016-08-23 Thread Ed Maste via lldb-dev
On 22 August 2016 at 16:03, Ted Woodward via lldb-dev wrote: > > We don't want to make ELFOSABI_NONE mean Linux. ELFOSABI_NONE is historically > ELFOSABI_SYSV, and used by a lot of things. So not all core files identified > as ELFOSABI_NONE are Linux. Indeed, and that's

Re: [lldb-dev] LLDB Evolution: Next Phase

2016-08-23 Thread Ed Maste via lldb-dev
On 19 August 2016 at 17:10, Kate Stone via lldb-dev wrote: > > Sept 5th Trunk closes for commits while reformatting takes place and is > validated before re-opening trunk. This is fine with me. As for validation, from my perspective I want to make sure the FreeBSD build-only buildbot

Re: [lldb-dev] Linux ELF header e_ident[EI_OSABI] value

2016-08-23 Thread Howard Hellyer via lldb-dev
> I would change it so that the "os" doesn't get set to anything when > it detects this in the core file. When an OS is not specified, the > llvm::Triple will return OSUnknown as the enumeration value for the > OS _and_ the llvm::StringRef value will return an empty string. This > is known in LL

Re: [lldb-dev] Linux ELF header e_ident[EI_OSABI] value

2016-08-23 Thread Howard Hellyer via lldb-dev
"Ted Woodward" wrote on 22/08/2016 21:03:02: > We don't want to make ELFOSABI_NONE mean Linux. ELFOSABI_NONE is > historically ELFOSABI_SYSV, and used by a lot of things. So not all > core files identified as ELFOSABI_NONE are Linux. I agree that other OS's may use it or have used it in the p

Re: [lldb-dev] LLDB Evolution: Next Phase

2016-08-23 Thread Zachary Turner via lldb-dev
Should we consider adding git hyper-blame to llvm and recommending its usage? https://commondatastorage.googleapis.com/chrome-infra-docs/flat/depot_tools/docs/html/git-hyper-blame.html On Tue, Aug 23, 2016 at 6:44 AM Ed Maste via lldb-dev < lldb-dev@lists.llvm.org> wrote: > On 19 Augus

Re: [lldb-dev] LLDB Evolution: Next Phase

2016-08-23 Thread Ed Maste via lldb-dev
On 23 August 2016 at 11:55, Zachary Turner wrote: > > Should we consider adding git hyper-blame to llvm and recommending its usage? Nifty, I hadn't encountered git hyper-blame before. Thanks Zach. If I understand correctly all we need to do is add a `.git-blame-ignore-revs` file to the lldb root

Re: [lldb-dev] LLDB Evolution: Next Phase

2016-08-23 Thread Zachary Turner via lldb-dev
Pretty much, yea. On Tue, Aug 23, 2016 at 12:24 PM Ed Maste wrote: > On 23 August 2016 at 11:55, Zachary Turner wrote: > > > > Should we consider adding git hyper-blame to llvm and recommending its > usage? > > Nifty, I hadn't encountered git hyper-blame before. Thanks Zach. > > If I understand

Re: [lldb-dev] LLDB Evolution: Next Phase

2016-08-24 Thread Pavel Labath via lldb-dev
2016 at 20:34, Zachary Turner via lldb-dev wrote: > Pretty much, yea. > > On Tue, Aug 23, 2016 at 12:24 PM Ed Maste wrote: >> >> On 23 August 2016 at 11:55, Zachary Turner wrote: >> > >> > Should we consider adding git hyper-blame to llvm and recomm

[lldb-dev] [3.9 Release] Release Candidate 3 has been tagged

2016-08-24 Thread Hans Wennborg via lldb-dev
Dear testers, 3.9.0-rc3 was just tagged from the branch at r279704. This one is very similar to rc2. These are the only new commits: r279224 - Minor change to OpenCL release notes r279260 - [lld] Add a note that 3.9 is a major milestone for us r279468, r279474 - Fix gather-root.ll SLP vectorizer

Re: [lldb-dev] [Release-testers] [3.9 Release] Release Candidate 3 has been tagged

2016-08-24 Thread Ben Pope via lldb-dev
On Thursday, August 25, 2016 11:42 AM, Hans Wennborg via Release-testers wrote: Dear testers, 3.9.0-rc3 was just tagged from the branch at r279704. Please take this for a spin. If there are no hiccups, the plan is to promote this to 'final' on Friday and ship the release early next week. Ubun

Re: [lldb-dev] [Release-testers] [3.9 Release] Release Candidate 3 has been tagged

2016-08-25 Thread Renato Golin via lldb-dev
On 25 August 2016 at 04:42, Hans Wennborg via Release-testers wrote: > Dear testers, > > 3.9.0-rc3 was just tagged from the branch at r279704. ARM and AArch64 seem fine, binaries uploaded: ARM sha1sum: d1bc90d475f8d764f1ff7524ba2f3e26acb8a463 AArch64 sha1sum: 5e4e3bdf747aa2ac50c588cea5d67f896376

Re: [lldb-dev] Linux ELF header e_ident[EI_OSABI] value

2016-08-25 Thread Todd Fiala via lldb-dev
eral times. On Tue, Aug 23, 2016 at 6:49 AM, Howard Hellyer via lldb-dev < lldb-dev@lists.llvm.org> wrote: > "Ted Woodward" wrote on 22/08/2016 21:03:02: > > > We don't want to make ELFOSABI_NONE mean Linux. ELFOSABI_NONE is > > historically ELFOSABI_SYSV,

Re: [lldb-dev] LLDB Evolution

2016-08-25 Thread Todd Fiala via lldb-dev
On Mon, Aug 8, 2016 at 2:57 PM, Zachary Turner via lldb-dev < lldb-dev@lists.llvm.org> wrote: > > > On Mon, Aug 8, 2016 at 2:40 PM Kate Stone via lldb-dev < > lldb-dev@lists.llvm.org> wrote: > >> LLDB has come a long way since the project was first announced. As

Re: [lldb-dev] LLDB Evolution

2016-08-25 Thread Zachary Turner via lldb-dev
t one implementation of that, but you could design one that has build commands, c++ source, and Python all in one file, or even intermingled like in an lldbinline test On Thu, Aug 25, 2016 at 12:54 PM Todd Fiala wrote: > On Mon, Aug 8, 2016 at 2:57 PM, Zachary Turner via lldb-dev < > lldb-dev@

Re: [lldb-dev] [Release-testers] [3.9 Release] Release Candidate 3 has been tagged

2016-08-25 Thread Dimitry Andric via lldb-dev
On 25 Aug 2016, at 05:42, Hans Wennborg via Release-testers wrote: > > 3.9.0-rc3 was just tagged from the branch at r279704. > > This one is very similar to rc2. These are the only new commits: > > r279224 - Minor change to OpenCL release notes > r279260 - [lld] Add a note that 3.9 is a major

Re: [lldb-dev] Linux ELF header e_ident[EI_OSABI] value

2016-08-26 Thread Howard Hellyer via lldb-dev
Todd Fiala wrote on 25/08/2016 20:42:31: > FWIW, I've taken a few whacks at getting Linux detected better over > the last few years, and haven't yet found a reliable way to detect > it from quite a few samples of cores from a number of different > systems. We can spend more time looking into

[lldb-dev] Watching reads/writes on optimized variables?

2016-08-26 Thread Christian Convey via lldb-dev
Hi guys, I'm trying to use watchpoints to detect user-space reads/writes of an arbitrary C/C++ program variable. For example: void foo() { int x; // <-- I'm interested in 'x' x = 10; // <-- I want to detect this for (int i = 0; i < 4; ++i) { x = i; // <-- And th

Re: [lldb-dev] Linux ELF header e_ident[EI_OSABI] value

2016-08-26 Thread Ted Woodward via lldb-dev
That works fine for host debug, but not so much for embedded. On Hexagon, we support 2 OS cases - standalone (which means no OS, or an OS that lldb doesn't know anything about) and Linux. Both our standalone simulator and our Linux generate core dumps using ELFOSABI_NONE. We run lldb on both x86 Li

Re: [lldb-dev] Watching reads/writes on optimized variables?

2016-08-26 Thread Greg Clayton via lldb-dev
> On Aug 26, 2016, at 7:25 AM, Christian Convey via lldb-dev > wrote: > > Hi guys, > > I'm trying to use watchpoints to detect user-space reads/writes of an > arbitrary C/C++ program variable. > > For example: > void foo() { > int x; // &

Re: [lldb-dev] Linux ELF header e_ident[EI_OSABI] value

2016-08-26 Thread Greg Clayton via lldb-dev
There shouldn't be a problem figuring this out right? Greg > On Aug 26, 2016, at 8:17 AM, Ted Woodward via lldb-dev > wrote: > > That works fine for host debug, but not so much for embedded. On Hexagon, we > support 2 OS cases – standalone (which means no OS, or an OS that

Re: [lldb-dev] Watching reads/writes on optimized variables?

2016-08-26 Thread Christian Convey via lldb-dev
Hi Greg, >> >> Does anyone know of a way to minimize or eliminate this problem? > > Just take the address of your variable at some point in your code and it will > force it into memory. Thanks for your idea. I can see why taking the variable's address (in an expression that's not optimized awa

Re: [lldb-dev] Watching reads/writes on optimized variables?

2016-08-26 Thread Greg Clayton via lldb-dev
Maybe the volatile keyword? volatile int x = 10; > On Aug 26, 2016, at 9:27 AM, Christian Convey > wrote: > > Hi Greg, > > >>> >>> Does anyone know of a way to minimize or eliminate this problem? >> >> Just take the address of your variable at some point in your code and it >> will force

Re: [lldb-dev] Linux ELF header e_ident[EI_OSABI] value

2016-08-26 Thread Ted Woodward via lldb-dev
ble file from the target and also check the target's architecture or the main executable's architecture. There shouldn't be a problem figuring this out right? Greg > On Aug 26, 2016, at 8:17 AM, Ted Woodward via lldb-dev > wrote: > > That works fine for host debug,

[lldb-dev] Passing std::atomics by value

2016-08-26 Thread Zachary Turner via lldb-dev
I recently updated to Visual Studio 2015 Update 3, which has improved its diagnostics. As a result of this, LLDB is uncompilable due to a slew of errors of the following nature: D:\src\llvm\tools\lldb\include\lldb/Target/Process.h(3256): error C2719: 'default_stop_addr': formal parameter with req

Re: [lldb-dev] Passing std::atomics by value

2016-08-26 Thread Greg Clayton via lldb-dev
> On Aug 26, 2016, at 10:51 AM, Zachary Turner via lldb-dev > wrote: > > I recently updated to Visual Studio 2015 Update 3, which has improved its > diagnostics. As a result of this, LLDB is uncompilable due to a slew of > errors of the following nature: > > D:\src

Re: [lldb-dev] Passing std::atomics by value

2016-08-26 Thread Greg Clayton via lldb-dev
> On Aug 26, 2016, at 11:24 AM, Greg Clayton via lldb-dev > wrote: > >> >> On Aug 26, 2016, at 10:51 AM, Zachary Turner via lldb-dev >> wrote: >> >> I recently updated to Visual Studio 2015 Update 3, which has improved its >> diagnostics. As

Re: [lldb-dev] Passing std::atomics by value

2016-08-26 Thread Zachary Turner via lldb-dev
tee that a function parameter is 8-byte aligned without allocating from the heap, which is obviously impossible for a stack variable. On Fri, Aug 26, 2016 at 11:29 AM Greg Clayton wrote: > > > On Aug 26, 2016, at 11:24 AM, Greg Clayton via lldb-dev < > lldb-dev@lists.llvm.org> wr

Re: [lldb-dev] Passing std::atomics by value

2016-08-26 Thread Jim Ingham via lldb-dev
> On Aug 26, 2016, at 11:36 AM, Zachary Turner via lldb-dev > wrote: > > The thing is, the code is already full of data races. I think the > std::atomic is actually used incorrectly and is not even doing anything. > > That said, consider darwin on 32-bit, where I believ

Re: [lldb-dev] Passing std::atomics by value

2016-08-26 Thread Adrian McCarthy via lldb-dev
ess the data through accessors. On Fri, Aug 26, 2016 at 11:36 AM, Zachary Turner via lldb-dev < lldb-dev@lists.llvm.org> wrote: > The thing is, the code is already full of data races. I think the > std::atomic is actually used incorrectly and is not even doing anything. > > That

Re: [lldb-dev] Passing std::atomics by value

2016-08-26 Thread Jim Ingham via lldb-dev
> On Aug 26, 2016, at 11:44 AM, Adrian McCarthy via lldb-dev > wrote: > > Methods like Address::SetOffset and Address::Slide seem to have data races > despite m_offset being atomic. Callers of those methods would have to > guarantee that nothing else is trying to write to

Re: [lldb-dev] Passing std::atomics by value

2016-08-26 Thread Zachary Turner via lldb-dev
nction signature, so they can both figure out where the actual struct > lives in the argument slot based on the alignment of the stack slot. > > Jim > > > > > > On Fri, Aug 26, 2016 at 11:29 AM Greg Clayton > wrote: > > > > > On Aug 26, 2016, at 11:24 AM,

Re: [lldb-dev] Passing std::atomics by value

2016-08-26 Thread Jim Ingham via lldb-dev
r wrote: > > It could, in theory, it just doesn't. I compiled a quick program using > i686-darwin as the target and the generated assembly makes no attempt to pad > the arguments. > > I'll post some code later > > On Fri, Aug 26, 2016 at 11:42 AM Jim Ingham

Re: [lldb-dev] Passing std::atomics by value

2016-08-26 Thread Ted Woodward via lldb-dev
urora Forum, a Linux Foundation Collaborative Project -Original Message- From: lldb-dev [mailto:lldb-dev-boun...@lists.llvm.org] On Behalf Of Jim Ingham via lldb-dev Sent: Friday, August 26, 2016 2:32 PM To: Zachary Turner Cc: LLDB Subject: Re: [lldb-dev] Passing std::atomics by value

Re: [lldb-dev] Passing std::atomics by value

2016-08-26 Thread Zachary Turner via lldb-dev
Incidentally, it seems copy and assignment of std::atomics are deleted functions, so the C++ standard is telling you you're not really supposed to do this. I honestly don't believe this should be a std::atomic at all. On Fri, Aug 26, 2016 at 12:54 PM Ted Woodward via lldb-dev

Re: [lldb-dev] Passing std::atomics by value

2016-08-26 Thread Greg Clayton via lldb-dev
the only class that is causing problems? Greg > On Aug 26, 2016, at 10:51 AM, Zachary Turner via lldb-dev > wrote: > > I recently updated to Visual Studio 2015 Update 3, which has improved its > diagnostics. As a result of this, LLDB is uncompilable due to a slew of > errors

Re: [lldb-dev] Passing std::atomics by value

2016-08-26 Thread Zachary Turner via lldb-dev
h that. > > Is Address the only class that is causing problems? > > Greg > > > On Aug 26, 2016, at 10:51 AM, Zachary Turner via lldb-dev < > lldb-dev@lists.llvm.org> wrote: > > > > I recently updated to Visual Studio 2015 Update 3, which has improved > it

Re: [lldb-dev] Passing std::atomics by value

2016-08-26 Thread Mehdi Amini via lldb-dev
> On Aug 26, 2016, at 1:02 PM, Zachary Turner via lldb-dev > wrote: > > It seems to be. I will also make the copy constructor =delete() to make sure > this cannot happen again. Just curious: if a member has a deleted copy-ctor (like std::atomic right?), isn’t the c

Re: [lldb-dev] Passing std::atomics by value

2016-08-26 Thread Zachary Turner via lldb-dev
oblem. On Fri, Aug 26, 2016 at 1:11 PM Mehdi Amini wrote: > On Aug 26, 2016, at 1:02 PM, Zachary Turner via lldb-dev < > lldb-dev@lists.llvm.org> wrote: > > It seems to be. I will also make the copy constructor =delete() to make > sure this cannot happen again. > > >

Re: [lldb-dev] Passing std::atomics by value

2016-08-26 Thread Zachary Turner via lldb-dev
the problem. > > On Fri, Aug 26, 2016 at 1:11 PM Mehdi Amini wrote: > >> On Aug 26, 2016, at 1:02 PM, Zachary Turner via lldb-dev < >> lldb-dev@lists.llvm.org> wrote: >> >> It seems to be. I will also make the copy constructor =delete() to make >> sure

Re: [lldb-dev] Passing std::atomics by value

2016-08-26 Thread Mehdi Amini via lldb-dev
mp; rhs) : > m_section_wp (rhs.m_section_wp), > m_offset(rhs.m_offset.load()) // this is the std::atomic<> > { > } > > circumventing the problem. > > On Fri, Aug 26, 2016 at 1:11 PM Mehdi Amini <mailto:mehdi.am...@apple.com>> wrote: >

Re: [lldb-dev] [3.9 Release] Release Candidate 3 has been tagged

2016-08-26 Thread Hans Wennborg via lldb-dev
On Wed, Aug 24, 2016 at 8:42 PM, Hans Wennborg wrote: > Please take this for a spin. If there are no hiccups, the plan is to > promote this to 'final' on Friday and ship the release early next > week. Windows is ready: 12f424c28f22b1c60f531da2f4ba86e5cdd1ca9c LLVM-3.9.0-rc3-win32.exe e840f6b729d

[lldb-dev] [3.9 Release] Release Candidate 3 source and binaries available

2016-08-26 Thread Hans Wennborg via lldb-dev
We're very very close to the final release. Source and binaries for LLVM-3.9.0-rc3 are available at http://llvm.org/pre-releases/3.9.0/#rc3 This release candidate is almost the same as rc2, with the following additional commits: r279224 - Minor change to OpenCL release notes r279260 - [lld] Add a

Re: [lldb-dev] [cfe-dev] [3.9 Release] Release Candidate 3 source and binaries available

2016-08-26 Thread Hans Wennborg via lldb-dev
On Fri, Aug 26, 2016 at 3:23 PM, Dan Walmsley via cfe-dev wrote: >Are these new RC3 Windows binaries now with asserts disabled? Yes. Thanks, Hans > From: Hans Wennborg via cfe-dev > Sent: 26 August 2016 22:30 > To: llvm-dev; cfe-dev; LLDB Dev; openmp-dev (openmp-...@lists.llvm.org) > Cc: Re

Re: [lldb-dev] Passing std::atomics by value

2016-08-26 Thread Greg Clayton via lldb-dev
> Address (const Address& rhs) : > m_section_wp (rhs.m_section_wp), > m_offset(rhs.m_offset.load()) // this is the std::atomic<> > { > } > > circumventing the problem. > > On Fri, Aug 26, 2016 at 1:11 PM Mehdi Amini wrote: >>

Re: [lldb-dev] Passing std::atomics by value

2016-08-26 Thread Zachary Turner via lldb-dev
t;> > > { > > } > > > > circumventing the problem. > > > > On Fri, Aug 26, 2016 at 1:11 PM Mehdi Amini > wrote: > >> On Aug 26, 2016, at 1:02 PM, Zachary Turner via lldb-dev < > lldb-dev@lists.llvm.org> wrote: > >> > >&g

<    32   33   34   35   36   37   38   39   40   41   >