Re: [lldb-dev] [llvm-dev] [RFC] Runtime checks for ABI breaking build of LLVM

2016-11-18 Thread Mehdi Amini via lldb-dev
> On Nov 18, 2016, at 3:45 PM, Mehdi Amini wrote: > > Hi, > > I had to revert it, because it breaks building LLDB on MacOS. > > It turns out it would break any client that is including llvm-config.h but > not linking to libLLVMSupport. > So either: > > - we shouldn’t allow to include llvm-co

Re: [lldb-dev] Bug in OptionValuePathMappings::SetValueFromString

2016-11-18 Thread Zachary Turner via lldb-dev
BTW, this exact same code seems to have been copied either to or from OptionValueFileSpecList::SetValueFromString, as it appears to have the same bug. Again, not sure how to see it fail in the debugger, but maybe someone knows? On Fri, Nov 18, 2016 at 1:07 PM Zachary Turner wrote: > Also, I jus

Re: [lldb-dev] Bug in CommandObjectFrameVariable::DoExecute()

2016-11-18 Thread Enrico Granata via lldb-dev
On 11/18/16 3:55 PM, Zachary Turner via lldb-dev wrote: On line 708 of CommandObjectFrame.cpp, I'm looking at this code: options.SetRootValueObjectName(name_cstr); This code occurs inside the else block of an if/else. name_cstr is declared prior to the if/else block and initialized to nullptr

[lldb-dev] Refactoring in LLDB Windows Plugin

2016-11-18 Thread Adrian McCarthy via lldb-dev
If you're not working in LLDB's Windows process plugin, you probably don't care about this message. FYI: I'm doing some refactoring (actually unfactoring) in the Windows process plugin. It'll take a series patches over a few days next week. If you're planning on working in this area, please let

[lldb-dev] Bug in CommandObjectFrameVariable::DoExecute()

2016-11-18 Thread Zachary Turner via lldb-dev
On line 708 of CommandObjectFrame.cpp, I'm looking at this code: options.SetRootValueObjectName(name_cstr); This code occurs inside the else block of an if/else. name_cstr is declared prior to the if/else block and initialized to nullptr, but is only ever set to something other than nullptr in t

Re: [lldb-dev] [llvm-dev] [RFC] Runtime checks for ABI breaking build of LLVM

2016-11-18 Thread Mehdi Amini via lldb-dev
Hi, I had to revert it, because it breaks building LLDB on MacOS. It turns out it would break any client that is including llvm-config.h but not linking to libLLVMSupport. So either: - we shouldn’t allow to include llvm-config.h without linking to LLVM, in which case I need to look a bit close

Re: [lldb-dev] Bug in CommandObjectThreadUntil

2016-11-18 Thread Jim Ingham via lldb-dev
Obviously a bug. Fixed in r287386. Jim > On Nov 18, 2016, at 11:47 AM, Zachary Turner via lldb-dev > wrote: > > CommandObjectThreadUntil::DoExecute() has the following code: > > for (size_t i = 0; i < num_args; i++) { > uint32_t line_number; > line_number = String

Re: [lldb-dev] Bug in OptionValuePathMappings::SetValueFromString

2016-11-18 Thread Zachary Turner via lldb-dev
Also, I just noticed the loop only runs one time, so it appears equivalent to m_path_mappings.Remove(remove_indexes.size() - 1, m_notify_changes); which seems completely wrong On Fri, Nov 18, 2016 at 1:05 PM Zachary Turner wrote: > In the switch / case handler for eVarSetOperationRemove, there

[lldb-dev] Bug in OptionValuePathMappings::SetValueFromString

2016-11-18 Thread Zachary Turner via lldb-dev
In the switch / case handler for eVarSetOperationRemove, there is the following code: if (num_remove_indexes) { // Sort and then erase in reverse so indexes are always valid std::sort(remove_indexes.begin(), remove_indexes.end()); for (size_t j = num_remove_indexes -

[lldb-dev] Bug in CommandObjectThreadUntil

2016-11-18 Thread Zachary Turner via lldb-dev
CommandObjectThreadUntil::DoExecute() has the following code: for (size_t i = 0; i < num_args; i++) { uint32_t line_number; line_number = StringConvert::ToUInt32(command.GetArgumentAtIndex(0), UINT32_MAX); if (li

[lldb-dev] Extern globals showing up as locals

2016-11-18 Thread Sam McCall via lldb-dev
I'm seeing particular globals spuriously being reported as local variables: they're returned by SBFrame::GetVariables(true, true, false, true) because their scope is eValueTypeVariableLocal. I've tracked down the problem but don't know DWARF well enough to determine the right fix. Anyone want to h