[Lldb-commits] [lldb] r357513 - [NativePDB] Don't fail on import modules.

2019-04-02 Thread Zachary Turner via lldb-commits
Author: zturner Date: Tue Apr 2 12:39:45 2019 New Revision: 357513 URL: http://llvm.org/viewvc/llvm-project?rev=357513&view=rev Log: [NativePDB] Don't fail on import modules. A recent patch to LLD started emitting information about import modules. These are represented as compile units in the PD

[Lldb-commits] [lldb] r356682 - Move the rest of the sections over to DWARFContext.

2019-03-21 Thread Zachary Turner via lldb-commits
Author: zturner Date: Thu Mar 21 09:34:58 2019 New Revision: 356682 URL: http://llvm.org/viewvc/llvm-project?rev=356682&view=rev Log: Move the rest of the sections over to DWARFContext. This is mostly mechanical, and just moves the remaining non-DWO related sections over to DWARFContext. Differe

[Lldb-commits] [lldb] r356612 - Introduce DWARFContext.

2019-03-20 Thread Zachary Turner via lldb-commits
Author: zturner Date: Wed Mar 20 13:49:25 2019 New Revision: 356612 URL: http://llvm.org/viewvc/llvm-project?rev=356612&view=rev Log: Introduce DWARFContext. LLVM's DWARF parsing library has a class called DWARFContext which holds all of the various DWARF data sections and lots of other informati

[Lldb-commits] [lldb] r356509 - Delete more dead code.

2019-03-19 Thread Zachary Turner via lldb-commits
Author: zturner Date: Tue Mar 19 13:08:56 2019 New Revision: 356509 URL: http://llvm.org/viewvc/llvm-project?rev=356509&view=rev Log: Delete more dead code. All of this is code that is unreferenced. Removing as much of this as possible makes it more easy to determine what functionality is missin

[Lldb-commits] [lldb] r356495 - Remove some dead DWARF enum -> string conversion functions.

2019-03-19 Thread Zachary Turner via lldb-commits
Author: zturner Date: Tue Mar 19 11:32:43 2019 New Revision: 356495 URL: http://llvm.org/viewvc/llvm-project?rev=356495&view=rev Log: Remove some dead DWARF enum -> string conversion functions. Modified: lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFDefines.cpp lldb/trunk/source/Plugins

[Lldb-commits] [lldb] r356490 - Delete dead code.

2019-03-19 Thread Zachary Turner via lldb-commits
Author: zturner Date: Tue Mar 19 11:06:32 2019 New Revision: 356490 URL: http://llvm.org/viewvc/llvm-project?rev=356490&view=rev Log: Delete dead code. Most of these are Dump functions that are never called, but there is one instance of entire unused classes (DWARFDebugMacinfo and DWARFDebugMacin

[Lldb-commits] [lldb] r356469 - Remove a couple of log statements.

2019-03-19 Thread Zachary Turner via lldb-commits
Author: zturner Date: Tue Mar 19 09:26:08 2019 New Revision: 356469 URL: http://llvm.org/viewvc/llvm-project?rev=356469&view=rev Log: Remove a couple of log statements. These log statements have questionable value, and hinder the effort of separating the high and low level DWARF parsing interface

[Lldb-commits] [lldb] r356284 - Abbreviation declarations are required to have non-null tags.

2019-03-15 Thread Zachary Turner via lldb-commits
Author: zturner Date: Fri Mar 15 11:00:43 2019 New Revision: 356284 URL: http://llvm.org/viewvc/llvm-project?rev=356284&view=rev Log: Abbreviation declarations are required to have non-null tags. Treat a null tag as an error. Modified: lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFAbbrevia

[Lldb-commits] [lldb] r356278 - Return Error and Expected from more DWARF interfaces.

2019-03-15 Thread Zachary Turner via lldb-commits
Author: zturner Date: Fri Mar 15 10:32:05 2019 New Revision: 356278 URL: http://llvm.org/viewvc/llvm-project?rev=356278&view=rev Log: Return Error and Expected from more DWARF interfaces. This continues the work of introducing Error and Expected into the DWARF parsing interfaces, this time for th

Re: [Lldb-commits] [PATCH] D59370: Return llvm::Error and llvm::Expected from some DWARF parsing functions

2019-03-14 Thread Zachary Turner via lldb-commits
On Thu, Mar 14, 2019 at 11:48 AM Greg Clayton via Phabricator < revi...@reviews.llvm.org> wrote: > clayborg accepted this revision. > clayborg added a comment. > This revision is now accepted and ready to land. > > As long as there is not a large performance regress when parsing large > DWARF file

[Lldb-commits] [lldb] r356190 - Return llvm::Error and llvm::Expected from DWARF parsing code.

2019-03-14 Thread Zachary Turner via lldb-commits
Author: zturner Date: Thu Mar 14 12:05:55 2019 New Revision: 356190 URL: http://llvm.org/viewvc/llvm-project?rev=356190&view=rev Log: Return llvm::Error and llvm::Expected from DWARF parsing code. The goal here is to improve our error handling and error recovery while parsing DWARF, while at the

Re: [Lldb-commits] [lldb] r356171 - [Python] Start eradicating unneeded LLDB_DISABLE_PYTHON guards.

2019-03-14 Thread Zachary Turner via lldb-commits
Make sure to run the test suite after these kinds of changes. You might be surprised. On Thu, Mar 14, 2019 at 10:21 AM Davide Italiano via lldb-commits < lldb-commits@lists.llvm.org> wrote: > Author: davide > Date: Thu Mar 14 10:23:08 2019 > New Revision: 356171 > > URL: http://llvm.org/viewvc/l

[Lldb-commits] [lldb] r355975 - Remove support for DWARF64.

2019-03-12 Thread Zachary Turner via lldb-commits
Author: zturner Date: Tue Mar 12 13:51:05 2019 New Revision: 355975 URL: http://llvm.org/viewvc/llvm-project?rev=355975&view=rev Log: Remove support for DWARF64. LLVM doesn't produce DWARF64, and neither does GCC. LLDB's support for DWARF64 is only partial, and if enabled appears to also not wor

[Lldb-commits] [lldb] r355973 - Move ElaboratingDIEIterator into implementation file.

2019-03-12 Thread Zachary Turner via lldb-commits
Author: zturner Date: Tue Mar 12 13:50:29 2019 New Revision: 355973 URL: http://llvm.org/viewvc/llvm-project?rev=355973&view=rev Log: Move ElaboratingDIEIterator into implementation file. This is not used outside of the private implementation of the class, so hiding in the implementation file is

[Lldb-commits] [lldb] r355974 - Remove DWARFDIECollection.

2019-03-12 Thread Zachary Turner via lldb-commits
Author: zturner Date: Tue Mar 12 13:50:46 2019 New Revision: 355974 URL: http://llvm.org/viewvc/llvm-project?rev=355974&view=rev Log: Remove DWARFDIECollection. This is a very thin wrapper over a std::vector and does not seem to provide any real value over just using a container directly. Differ

Re: [Lldb-commits] [PATCH] D59235: Remove Support for DWARF64

2019-03-12 Thread Zachary Turner via lldb-commits
+1. I’ve seen some of the changes in llvm that have changed asserts to return a default value. IMHO these should be changed to return Expected instead On Tue, Mar 12, 2019 at 1:16 PM Jonas Devlieghere via Phabricator < revi...@reviews.llvm.org> wrote: > JDevlieghere added a comment. > > In D59235#

Re: [Lldb-commits] [PATCH] D59235: Remove Support for DWARF64

2019-03-12 Thread Zachary Turner via lldb-commits
Fair enough, a FIXME sounds reasonable. On Tue, Mar 12, 2019 at 10:33 AM Jan Kratochvil via Phabricator < revi...@reviews.llvm.org> wrote: > jankratochvil added inline comments. > > > > Comment at: lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugRanges.cpp:263 >uint64_t length

Re: [Lldb-commits] [PATCH] D59217: Fix/unify SBType comparison

2019-03-11 Thread Zachary Turner via lldb-commits
On Mon, Mar 11, 2019 at 4:15 PM Jim Ingham via lldb-commits < lldb-commits@lists.llvm.org> wrote: > Just to be precise: TypeImpl stores a TypePair for the static type and a > CompilerType for the dynamic type. These two have different meanings. > There's no assumption about the relationship betwe

Re: [Lldb-commits] [PATCH] D59165: Remove DWARFDIECollection

2019-03-08 Thread Zachary Turner via lldb-commits
Yes, it’s not the case here but even it were, just because the Python interface exposes this api doesn’t mean we have to use it internally. Regardless, this particular class is completely private and has no analogue in the SB API On Fri, Mar 8, 2019 at 4:53 PM Adrian Prantl via Phabricator < revi.

[Lldb-commits] [lldb] r355730 - Remove dependency edges from Host to Target/Core.

2019-03-08 Thread Zachary Turner via lldb-commits
Author: zturner Date: Fri Mar 8 12:56:10 2019 New Revision: 355730 URL: http://llvm.org/viewvc/llvm-project?rev=355730&view=rev Log: Remove dependency edges from Host to Target/Core. After recent changes, Host is now dependency-free. Modified: lldb/trunk/source/Host/CMakeLists.txt lldb/

[Lldb-commits] [lldb] r355656 - [lldb-vscode] Report an error if an invalid program is specified.

2019-03-07 Thread Zachary Turner via lldb-commits
Author: zturner Date: Thu Mar 7 16:11:27 2019 New Revision: 355656 URL: http://llvm.org/viewvc/llvm-project?rev=355656&view=rev Log: [lldb-vscode] Report an error if an invalid program is specified. Previously if an invalid program was specified, there was a bug which, when we attempted to launc

[Lldb-commits] [lldb] r355637 - [lldb-vscode] Support running in server mode on Windows.

2019-03-07 Thread Zachary Turner via lldb-commits
Author: zturner Date: Thu Mar 7 13:23:21 2019 New Revision: 355637 URL: http://llvm.org/viewvc/llvm-project?rev=355637&view=rev Log: [lldb-vscode] Support running in server mode on Windows. Windows can't use standard i/o system calls such as read and write to work with sockets, it instead needs

[Lldb-commits] [lldb] r355559 - Pass /bigobj for SBReproducer.cpp with MSVC

2019-03-06 Thread Zachary Turner via lldb-commits
Author: zturner Date: Wed Mar 6 14:42:34 2019 New Revision: 39 URL: http://llvm.org/viewvc/llvm-project?rev=39&view=rev Log: Pass /bigobj for SBReproducer.cpp with MSVC /BIGOBJ is used to bypass certain COFF file format limitations and is used with, unsurprisingly, very big object files.

[Lldb-commits] [lldb] r355557 - [lldb-vscode] Correctly propagate errors back to VS Code.

2019-03-06 Thread Zachary Turner via lldb-commits
Author: zturner Date: Wed Mar 6 14:30:06 2019 New Revision: 37 URL: http://llvm.org/viewvc/llvm-project?rev=37&view=rev Log: [lldb-vscode] Correctly propagate errors back to VS Code. Modified: lldb/trunk/tools/lldb-vscode/lldb-vscode.cpp Modified: lldb/trunk/tools/lldb-vscode/lldb-v

[Lldb-commits] [lldb] r355536 - Try again to fix OSX compilation failure.

2019-03-06 Thread Zachary Turner via lldb-commits
Author: zturner Date: Wed Mar 6 11:14:41 2019 New Revision: 355536 URL: http://llvm.org/viewvc/llvm-project?rev=355536&view=rev Log: Try again to fix OSX compilation failure. Modified: lldb/trunk/source/Plugins/SymbolVendor/MacOSX/SymbolVendorMacOSX.cpp Modified: lldb/trunk/source/Plugins/S

[Lldb-commits] [lldb] r355531 - Try to fix OSX compilation failure.

2019-03-06 Thread Zachary Turner via lldb-commits
Author: zturner Date: Wed Mar 6 10:44:27 2019 New Revision: 355531 URL: http://llvm.org/viewvc/llvm-project?rev=355531&view=rev Log: Try to fix OSX compilation failure. Modified: lldb/trunk/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp Modified: lldb/trunk/source/Plugins/Process/MacOS

[Lldb-commits] [lldb] r355528 - Resubmit "Don't include UnixSignals.h from Host."

2019-03-06 Thread Zachary Turner via lldb-commits
Author: zturner Date: Wed Mar 6 10:20:23 2019 New Revision: 355528 URL: http://llvm.org/viewvc/llvm-project?rev=355528&view=rev Log: Resubmit "Don't include UnixSignals.h from Host." This was reverted because it breaks the GreenDragon bot, but the reason for the breakage is lost, so I'm resubmit

Re: [Lldb-commits] [PATCH] D58972: Introduce the "Formats" module and move LinuxProcMaps parser to it

2019-03-05 Thread Zachary Turner via lldb-commits
How about SerializationFormats? On Tue, Mar 5, 2019 at 12:22 PM Pavel Labath via Phabricator < revi...@reviews.llvm.org> wrote: > labath added a comment. > > FileFormats wouldn't be generic enough to capture the gdb-remote or > debug-info-server protocol code. However, even calling gdb-remote prot

[Lldb-commits] [lldb] r355342 - Move ProcessInfo from Host to Utility.

2019-03-04 Thread Zachary Turner via lldb-commits
Author: zturner Date: Mon Mar 4 13:51:03 2019 New Revision: 355342 URL: http://llvm.org/viewvc/llvm-project?rev=355342&view=rev Log: Move ProcessInfo from Host to Utility. There are set of classes in Target that describe the parameters of a process - e.g. it's PID, name, user id, and similar. Ho

[Lldb-commits] [lldb] r355329 - Fix Windows build after UserIDResolver patch.

2019-03-04 Thread Zachary Turner via lldb-commits
Author: zturner Date: Mon Mar 4 11:57:04 2019 New Revision: 355329 URL: http://llvm.org/viewvc/llvm-project?rev=355329&view=rev Log: Fix Windows build after UserIDResolver patch. That patch added a function to HostInfo that returns an instance of UserIDResolver, but this function was unimplement

[Lldb-commits] [lldb] r355037 - Remove dependency from Host -> Core.

2019-02-27 Thread Zachary Turner via lldb-commits
Author: zturner Date: Wed Feb 27 13:53:08 2019 New Revision: 355037 URL: http://llvm.org/viewvc/llvm-project?rev=355037&view=rev Log: Remove dependency from Host -> Core. I wasn't actually trying to eliminate this one, but looks like it happened as a side effect of moving Symbols out of Host. Mo

Re: [Lldb-commits] [lldb] r354711 - Revert r354706 - lit touched my thigh

2019-02-25 Thread Zachary Turner via lldb-commits
While it’s a good chuckle, can you elaborate on what exactly the commit message means? On Fri, Feb 22, 2019 at 5:07 PM Jim Ingham via lldb-commits < lldb-commits@lists.llvm.org> wrote: > Author: jingham > Date: Fri Feb 22 17:08:17 2019 > New Revision: 354711 > > URL: http://llvm.org/viewvc/llvm-pr

[Lldb-commits] [lldb] r354168 - Don't include UnixSignals.h from Host.

2019-02-15 Thread Zachary Turner via lldb-commits
Author: zturner Date: Fri Feb 15 12:43:56 2019 New Revision: 354168 URL: http://llvm.org/viewvc/llvm-project?rev=354168&view=rev Log: Don't include UnixSignals.h from Host. Host had a function to get the UnixSignals instance corresponding to the current host architecture. This means that Host ha

Re: [Lldb-commits] [PATCH] D58219: [dotest] Fix compiler version number comparison

2019-02-13 Thread Zachary Turner via lldb-commits
Try `import distutils.LooseVersion` and use that to do the comparison. On Wed, Feb 13, 2019 at 4:49 PM Frederic Riss via Phabricator < revi...@reviews.llvm.org> wrote: > friss created this revision. > friss added reviewers: zturner, labath. > Herald added a reviewer: serge-sans-paille. > Herald ad

Re: [Lldb-commits] [PATCH] D56904: [NativePDB] Process virtual bases in the correct order

2019-02-11 Thread Zachary Turner via lldb-commits
lgtm! On Mon, Feb 11, 2019 at 7:19 AM Aleksandr Urakov via Phabricator < revi...@reviews.llvm.org> wrote: > aleksandr.urakov added a comment. > > Thanks for the help with the tests, it looks like they are ok now! So can > we proceed with this patch? > > > Repository: > rLLDB LLDB > > CHANGES SI

Re: [Lldb-commits] [PATCH] D57809: [build.py] Add `VCINSTALLDIR` to default variables

2019-02-11 Thread Zachary Turner via lldb-commits
Lgtm! On Mon, Feb 11, 2019 at 12:11 AM Aleksandr Urakov via Phabricator < revi...@reviews.llvm.org> wrote: > aleksandr.urakov added a comment. > > Zachary, can you take a look? please? > > > Repository: > rLLDB LLDB > > CHANGES SINCE LAST ACTION > https://reviews.llvm.org/D57809/new/ > > https

Re: [Lldb-commits] [PATCH] D56904: [NativePDB] Process virtual bases in the correct order

2019-02-05 Thread Zachary Turner via lldb-commits
Yes, clang tries to find the visual studio installation, because that is how it can find headers and libs. Can you make a separate patch with the changes to build.py and upload that? On Tue, Feb 5, 2019 at 2:34 AM Aleksandr Urakov via Phabricator < revi...@reviews.llvm.org> wrote: > aleksandr.ur

Re: [Lldb-commits] [PATCH] D57213: [Scalar] Add support for 512-bits values.

2019-01-30 Thread Zachary Turner via lldb-commits
Oh I guess because one of them has const values? Oh well, ignore my suggestion then :) On Wed, Jan 30, 2019 at 10:50 AM Davide Italiano via Phabricator < revi...@reviews.llvm.org> wrote: > davide marked an inline comment as done. > davide added inline comments. > > > > Comment a

[Lldb-commits] [lldb] r352557 - Fix some warnings in building LLDB.

2019-01-29 Thread Zachary Turner via lldb-commits
Author: zturner Date: Tue Jan 29 14:55:21 2019 New Revision: 352557 URL: http://llvm.org/viewvc/llvm-project?rev=352557&view=rev Log: Fix some warnings in building LLDB. Differential Revision: https://reviews.llvm.org/D57413 Modified: lldb/trunk/source/Commands/CommandObjectReproducer.cpp

Re: [Lldb-commits] [PATCH] D57275: [testsuite] Remove seven dependency

2019-01-26 Thread Zachary Turner via lldb-commits
Huh, that’s a coincidence. I chose the name because it was “like six”, but I guess someone else chose it for the same reason On Sat, Jan 26, 2019 at 2:18 PM Jonas Devlieghere wrote: > > > On Fri, Jan 25, 2019 at 8:44 PM Zachary Turner via lldb-commits < > lldb-commits@lists.

Re: [Lldb-commits] [PATCH] D57275: [testsuite] Remove seven dependency

2019-01-25 Thread Zachary Turner via lldb-commits
The idea behind seven is that it’s a place to put stuff that we need for py2/py3 interoperability that doesn’t already exist in six. Yes, maybe there’s only one thing there now, but there could be more over time. At least that was the thinking when I created it. It seems like there’s two separate

Re: [Lldb-commits] [lldb] r351250 - Simplify Value::GetValueByteSize()

2019-01-16 Thread Zachary Turner via lldb-commits
Note that the PDB code runs on all platforms, not just Windows. You can reproduce it by just running the affected test on darwin, as long as you've built lld. On Wed, Jan 16, 2019 at 8:50 AM Pavel Labath via lldb-commits < lldb-commits@lists.llvm.org> wrote: > On 16/01/2019 17:38, Adrian Prantl

[Lldb-commits] [lldb] r351133 - [SymbolFile] Remove SymbolContext parameter from FindTypes.

2019-01-14 Thread Zachary Turner via lldb-commits
Author: zturner Date: Mon Jan 14 14:41:21 2019 New Revision: 351133 URL: http://llvm.org/viewvc/llvm-project?rev=351133&view=rev Log: [SymbolFile] Remove SymbolContext parameter from FindTypes. This parameter was only ever used with the Module set, and since a SymbolFile is tied to a module, the

[Lldb-commits] [lldb] r351132 - [SymbolFile] Remove the SymbolContext parameter from FindNamespace.

2019-01-14 Thread Zachary Turner via lldb-commits
Author: zturner Date: Mon Jan 14 14:41:00 2019 New Revision: 351132 URL: http://llvm.org/viewvc/llvm-project?rev=351132&view=rev Log: [SymbolFile] Remove the SymbolContext parameter from FindNamespace. Every callsite was passing an empty SymbolContext, so this parameter had no effect. Inside the

[Lldb-commits] [lldb] r351131 - [SymbolFile] Rename ParseFunctionBlocks to ParseBlocksRecursive.

2019-01-14 Thread Zachary Turner via lldb-commits
Author: zturner Date: Mon Jan 14 14:40:41 2019 New Revision: 351131 URL: http://llvm.org/viewvc/llvm-project?rev=351131&view=rev Log: [SymbolFile] Rename ParseFunctionBlocks to ParseBlocksRecursive. This method took a SymbolContext but only actually cared about the case where the m_function membe

[Lldb-commits] [lldb] r350950 - Fix build breaks after the ParseCompileUnit changes.

2019-01-11 Thread Zachary Turner via lldb-commits
Author: zturner Date: Fri Jan 11 10:35:58 2019 New Revision: 350950 URL: http://llvm.org/viewvc/llvm-project?rev=350950&view=rev Log: Fix build breaks after the ParseCompileUnit changes. The addition of SymbolFileBreakpad crossed paths with my change, so this interface needs to be fixed up as wel

lldb-commits@lists.llvm.org

2019-01-11 Thread Zachary Turner via lldb-commits
Author: zturner Date: Fri Jan 11 10:03:20 2019 New Revision: 350943 URL: http://llvm.org/viewvc/llvm-project?rev=350943&view=rev Log: [SymbolFile] Make ParseCompileUnitXXX accept a CompileUnit&. Previously all of these functions accepted a SymbolContext&. While a CompileUnit is one member of a Sy

[Lldb-commits] [lldb] r350889 - Change SymbolFile::ParseTypes to ParseTypesForCompileUnit.

2019-01-10 Thread Zachary Turner via lldb-commits
Author: zturner Date: Thu Jan 10 12:57:50 2019 New Revision: 350889 URL: http://llvm.org/viewvc/llvm-project?rev=350889&view=rev Log: Change SymbolFile::ParseTypes to ParseTypesForCompileUnit. The function SymbolFile::ParseTypes previously accepted a SymbolContext. This makes it extremely difficu

[Lldb-commits] [lldb] r350888 - [NativePDB] Add support for parsing typedef records.

2019-01-10 Thread Zachary Turner via lldb-commits
Author: zturner Date: Thu Jan 10 12:57:32 2019 New Revision: 350888 URL: http://llvm.org/viewvc/llvm-project?rev=350888&view=rev Log: [NativePDB] Add support for parsing typedef records. Typedefs are represented as S_UDT records in the globals stream. This creates a strange situation where "types

[Lldb-commits] [lldb] r350773 - Write PDB/variables.test to be more robust.

2019-01-09 Thread Zachary Turner via lldb-commits
Author: zturner Date: Wed Jan 9 15:26:50 2019 New Revision: 350773 URL: http://llvm.org/viewvc/llvm-project?rev=350773&view=rev Log: Write PDB/variables.test to be more robust. CHECK-DAG can't really be mixed with CHECK-NEXT statements because each non DAG check sets a new search-origin for foll

[Lldb-commits] [lldb] r350764 - Change lldb-test to use ParseAllDebugSymbols.

2019-01-09 Thread Zachary Turner via lldb-commits
Author: zturner Date: Wed Jan 9 13:20:44 2019 New Revision: 350764 URL: http://llvm.org/viewvc/llvm-project?rev=350764&view=rev Log: Change lldb-test to use ParseAllDebugSymbols. ParseDeclsForContext was originally created to serve the very specific case where the context is a function block. It

Re: [Lldb-commits] [PATCH] D56461: [NativePDB] Add support for parsing typedefs and make lldb-test work with the native reader.

2019-01-09 Thread Zachary Turner via lldb-commits
Yes I expect someone else to review more thoroughly, but I included you anyway since you may have to dtart caring about this soon :) On Wed, Jan 9, 2019 at 6:39 AM Pavel Labath via Phabricator < revi...@reviews.llvm.org> wrote: > labath added a comment. > > Is there any chance we can get someone w

Re: [Lldb-commits] [PATCH] D56418: Change lldb-test to use ParseAllDebugSymbols instead of ParseDeclsForContext

2019-01-08 Thread Zachary Turner via lldb-commits
The same plugin is being used in both cases, the patch only touches the nonnative PDB reader. The followup changes to the plugin itself are necessary because the results were not identical (another reason i want to de-support ParseDeclsForContext at global acope - having 2 implementations of the sa

Re: [Lldb-commits] [PATCH] D56293: Use the minidump exception record if present

2019-01-04 Thread Zachary Turner via lldb-commits
Waiiit a second. Why don't we just teach obj2yaml and yaml2obj to round-trip minidumps? This way you could run it on a minidump, then hand-edit it to customize some bits you want to change, then check in the yaml. On Fri, Jan 4, 2019 at 10:56 AM Greg Clayton wrote: > > On Jan 4, 2019, at 9

Re: [Lldb-commits] [PATCH] D56293: Use the minidump exception record if present

2019-01-04 Thread Zachary Turner via lldb-commits
You're right, it wouldn't. I didn't think of that. I guess the obj -> yaml round-tripping would be the only way in that case, and the tool would need to be fixed first so that it can round trip executable object files. On Fri, Jan 4, 2019 at 9:46 AM Leonard Mosescu wrote: > ouldn’t we have lld

Re: [Lldb-commits] [PATCH] D56315: Add a verbose mode to "image dump line-table" and use it to write a .debug_line test

2019-01-04 Thread Zachary Turner via lldb-commits
It seems like this test could be made to work with non dwarf debug info by compiling a real source file. WDYT? On Fri, Jan 4, 2019 at 5:31 AM Pavel Labath via Phabricator < revi...@reviews.llvm.org> wrote: > labath created this revision. > labath added reviewers: clayborg, zturner. > Herald added

Re: [Lldb-commits] [PATCH] D56293: Use the minidump exception record if present

2019-01-04 Thread Zachary Turner via lldb-commits
For those kinds of cases, we could use obj2yaml and check in yaml right? Fwiw I tried to round-trip an exe through obj->yaml->obj recently and the resulting exe was incorrect but it was close, so I think there’s only some small fixes needed. In regards to your previous response, couldn’t we have l

Re: [Lldb-commits] [PATCH] D56173: Introduce SymbolFileBreakpad and use it to fill symtab

2019-01-03 Thread Zachary Turner via lldb-commits
Ok, lgtm then On Wed, Jan 2, 2019 at 11:53 PM Pavel Labath wrote: > On 02/01/2019 18:32, Zachary Turner wrote: > > Just to be sure, this new test will fail without your Symtab changes > > right? I'm not in a state where I can look at code right now, and you > > say anything that symbolicates an

Re: [Lldb-commits] [PATCH] D56233: [lldb-server] Add initial support for building lldb-server on Windows

2019-01-02 Thread Zachary Turner via lldb-commits
Very excited to see this. I'm technically on vacation so I might not be able to review it immediately, but I'm looking forward to getting to it soon. On Wed, Jan 2, 2019 at 4:36 PM Aaron Smith via Phabricator < revi...@reviews.llvm.org> wrote: > asmith created this revision. > asmith added revie

[Lldb-commits] [lldb] r350262 - Try to fix Green Dragon bot.

2019-01-02 Thread Zachary Turner via lldb-commits
Author: zturner Date: Wed Jan 2 13:04:22 2019 New Revision: 350262 URL: http://llvm.org/viewvc/llvm-project?rev=350262&view=rev Log: Try to fix Green Dragon bot. It doesn't like this std::tie() for some reason, hopefuly this fixes it. Modified: lldb/trunk/source/Plugins/SymbolFile/NativePDB

[Lldb-commits] [lldb] r350244 - Use map::insert instead of try_emplace.

2019-01-02 Thread Zachary Turner via lldb-commits
Author: zturner Date: Wed Jan 2 10:53:11 2019 New Revision: 350244 URL: http://llvm.org/viewvc/llvm-project?rev=350244&view=rev Log: Use map::insert instead of try_emplace. try_emplace is C++17. Modified: lldb/trunk/source/Plugins/SymbolFile/NativePDB/PdbIndex.cpp Modified: lldb/trunk/sour

[Lldb-commits] [lldb] r350243 - [NativePDB] Implement ParseDeclsForContext.

2019-01-02 Thread Zachary Turner via lldb-commits
Author: zturner Date: Wed Jan 2 10:33:54 2019 New Revision: 350243 URL: http://llvm.org/viewvc/llvm-project?rev=350243&view=rev Log: [NativePDB] Implement ParseDeclsForContext. This is a first step towards getting lldb-test symbols working with the native plugin. There is a remaining issue, whi

[Lldb-commits] [lldb] r350242 - [NativePDB] Update function-types-classes test to check VarDecls.

2019-01-02 Thread Zachary Turner via lldb-commits
Author: zturner Date: Wed Jan 2 10:33:32 2019 New Revision: 350242 URL: http://llvm.org/viewvc/llvm-project?rev=350242&view=rev Log: [NativePDB] Update function-types-classes test to check VarDecls. A Previous patch added support for creating VarDecls for global variables. This patch updates th

[Lldb-commits] [lldb] r350240 - [NativePDB] Fix setting breakpoint by file and line.

2019-01-02 Thread Zachary Turner via lldb-commits
Author: zturner Date: Wed Jan 2 10:32:50 2019 New Revision: 350240 URL: http://llvm.org/viewvc/llvm-project?rev=350240&view=rev Log: [NativePDB] Fix setting breakpoint by file and line. There were several problems preventing this from working. The first is that when the PDB had an absolute path

Re: [Lldb-commits] [PATCH] D56173: Introduce SymbolFileBreakpad and use it to fill symtab

2019-01-02 Thread Zachary Turner via lldb-commits
Just to be sure, this new test will fail without your Symtab changes right? I'm not in a state where I can look at code right now, and you say anything that symbolicates an address *can* use the symtab, but I don't know if you really meant *must* use the symtab. On Wed, Jan 2, 2019 at 12:19 AM Pa

Re: [Lldb-commits] [PATCH] D56126: [NativePDB] Add basic support of methods recostruction in AST

2018-12-29 Thread Zachary Turner via lldb-commits
Sorry, this comment was supposed to be deleted after I realized i was wrong. On Sat, Dec 29, 2018 at 9:12 PM Aleksandr Urakov via Phabricator < revi...@reviews.llvm.org> wrote: > aleksandr.urakov marked an inline comment as done. > aleksandr.urakov added inline comments. > > > >

[Lldb-commits] [lldb] r349854 - [NativePDB] Create VarDecls for global variables.

2018-12-20 Thread Zachary Turner via lldb-commits
Author: zturner Date: Thu Dec 20 15:32:37 2018 New Revision: 349854 URL: http://llvm.org/viewvc/llvm-project?rev=349854&view=rev Log: [NativePDB] Create VarDecls for global variables. Previously we would create these for local variables but not for global variables. Also updated existing tests w

[Lldb-commits] [lldb] r349692 - Fix line endings.

2018-12-19 Thread Zachary Turner via lldb-commits
Author: zturner Date: Wed Dec 19 14:50:22 2018 New Revision: 349692 URL: http://llvm.org/viewvc/llvm-project?rev=349692&view=rev Log: Fix line endings. Modified: lldb/trunk/lit/SymbolFile/NativePDB/nested-types.cpp Modified: lldb/trunk/lit/SymbolFile/NativePDB/nested-types.cpp URL: http://l

[Lldb-commits] [lldb] r349675 - [NativePDB] Enable function-level-linking.test in native mode.

2018-12-19 Thread Zachary Turner via lldb-commits
Author: zturner Date: Wed Dec 19 12:00:25 2018 New Revision: 349675 URL: http://llvm.org/viewvc/llvm-project?rev=349675&view=rev Log: [NativePDB] Enable function-level-linking.test in native mode. This test passes with the native reader, so run it in both modes. Modified: lldb/trunk/lit/Symb

[Lldb-commits] [lldb] r349673 - [NativePDB] Fix a use after free and enable corresponding native test.

2018-12-19 Thread Zachary Turner via lldb-commits
Author: zturner Date: Wed Dec 19 11:45:30 2018 New Revision: 349673 URL: http://llvm.org/viewvc/llvm-project?rev=349673&view=rev Log: [NativePDB] Fix a use after free and enable corresponding native test. We had a use after free where we were assigning the result of a function that returned a str

[Lldb-commits] [lldb] r349565 - [NativePDB] Correctly reconstruct DeclContext for nested enums.

2018-12-18 Thread Zachary Turner via lldb-commits
Author: zturner Date: Tue Dec 18 15:12:08 2018 New Revision: 349565 URL: http://llvm.org/viewvc/llvm-project?rev=349565&view=rev Log: [NativePDB] Correctly reconstruct DeclContext for nested enums. We reconstruct the AST hierarchy by trying to hack up a mangled name for the parent type using the

[Lldb-commits] [lldb] r349399 - Fix case of source file in CMakeLists.txt

2018-12-17 Thread Zachary Turner via lldb-commits
Author: zturner Date: Mon Dec 17 13:33:08 2018 New Revision: 349399 URL: http://llvm.org/viewvc/llvm-project?rev=349399&view=rev Log: Fix case of source file in CMakeLists.txt Modified: lldb/trunk/source/Plugins/SymbolFile/NativePDB/CMakeLists.txt Modified: lldb/trunk/source/Plugins/SymbolFi

[Lldb-commits] [lldb] r349383 - [NativePDB] Decouple AST reconstruction from lldb Symbol creation.

2018-12-17 Thread Zachary Turner via lldb-commits
Author: zturner Date: Mon Dec 17 11:43:33 2018 New Revision: 349383 URL: http://llvm.org/viewvc/llvm-project?rev=349383&view=rev Log: [NativePDB] Decouple AST reconstruction from lldb Symbol creation. Previously the code that parsed debug info to create lldb's Symbol objects such as Variable, Typ

[Lldb-commits] [lldb] r349360 - [Clang AST Context] Add a few helper functions.

2018-12-17 Thread Zachary Turner via lldb-commits
Author: zturner Date: Mon Dec 17 08:15:13 2018 New Revision: 349360 URL: http://llvm.org/viewvc/llvm-project?rev=349360&view=rev Log: [Clang AST Context] Add a few helper functions. The first one allows us to add an enumerator to an enum if we already have an APSInt, since ultimately the implemen

Re: [Lldb-commits] [PATCH] D55430: build.py: Implement "gcc" builder

2018-12-14 Thread Zachary Turner via lldb-commits
Don't we print the environment in verbose mode? Can we see that output as well? On Fri, Dec 14, 2018 at 11:53 AM Stella Stamenova wrote: > The verbose output is below. If I run the two commands on the command > line, they both succeed, but when I run them through build.py, the link > command is

Re: [Lldb-commits] [lldb] r349175 - [NativePDB] Fix local-variables.cpp test.

2018-12-14 Thread Zachary Turner via lldb-commits
Ahh, so I misinterpreted what you originally said. There is one Clang AST *per SymboFile*. In PDB land, compile units are often called "modules" so it's easy to get confused. So in my original response, what I actually meant was that there's no notion of a per compile-unit AST. But that also ha

Re: [Lldb-commits] [PATCH] D55575: [NativePDB] Support local variables

2018-12-14 Thread Zachary Turner via lldb-commits
If you do decide to unsilence it, then just mark those skip and file bugs for them being flaky. On Fri, Dec 14, 2018 at 11:11 AM Stella Stamenova wrote: > An unexpected pass makes the bot red. I might un-silence it despite the > couple of issues left anyway, but it’s something to be aware of. >

Re: [Lldb-commits] [PATCH] D55575: [NativePDB] Support local variables

2018-12-14 Thread Zachary Turner via lldb-commits
An unexpected pass won't make the bot red will it? If so, one option is to mark them skip, just to make sure we can get the bot turned on as quickly as possible. On Fri, Dec 14, 2018 at 10:56 AM Stella Stamenova wrote: > It’s actually not green – the unexpected passes are counted as a failure.

Re: [Lldb-commits] [PATCH] D55575: [NativePDB] Support local variables

2018-12-14 Thread Zachary Turner via lldb-commits
I've fixed it. It looks like the bot should be green again once this test starts passing. Can you make it noisy and starting to send emails now? On Fri, Dec 14, 2018 at 10:42 AM Zachary Turner wrote: > Ahh, that seems easy enough to fix. Just need to change the 7 to a > {{.*}}. Since we're a

Re: [Lldb-commits] [lldb] r349175 - [NativePDB] Fix local-variables.cpp test.

2018-12-14 Thread Zachary Turner via lldb-commits
be hard to make this work. On Fri, Dec 14, 2018 at 10:51 AM Pavel Labath wrote: > On 14/12/2018 19:43, Zachary Turner via lldb-commits wrote: > > Author: zturner > > Date: Fri Dec 14 10:43:42 2018 > > New Revision: 349175 > > > > URL: http://llvm.org/view

[Lldb-commits] [lldb] r349175 - [NativePDB] Fix local-variables.cpp test.

2018-12-14 Thread Zachary Turner via lldb-commits
Author: zturner Date: Fri Dec 14 10:43:42 2018 New Revision: 349175 URL: http://llvm.org/viewvc/llvm-project?rev=349175&view=rev Log: [NativePDB] Fix local-variables.cpp test. Since we're actually running an executable on the host now, different versions of Windows could load different system lib

Re: [Lldb-commits] [PATCH] D55575: [NativePDB] Support local variables

2018-12-14 Thread Zachary Turner via lldb-commits
Ahh, that seems easy enough to fix. Just need to change the 7 to a {{.*}}. Since we're actually compiling and running a process on the buildbot, different versions of Windows will affect this. On Fri, Dec 14, 2018 at 10:39 AM Stella Stamenova via Phabricator < revi...@reviews.llvm.org> wrote: >

Re: [Lldb-commits] [PATCH] D55575: [NativePDB] Support local variables

2018-12-14 Thread Zachary Turner via lldb-commits
I can't access the buildbot right now, it's just timing out and never loading the webpage. If you have it open and can paste the output here I can try to figure out what's wrong, otherwise I'll have to wait for it to become available again. On Fri, Dec 14, 2018 at 10:31 AM Stella Stamenova via Ph

Re: [Lldb-commits] [PATCH] D55142: Minidump debugging using the native PDB reader

2018-12-13 Thread Zachary Turner via lldb-commits
That said, as you mentioned this enables other developers to start working on things, and if that means we can get the SymbolVendor in more quickly, then we can get rid of this more quickly. I just really want to converge towards the permanent solution, rather than away from it, so if committing t

Re: [Lldb-commits] [PATCH] D55142: Minidump debugging using the native PDB reader

2018-12-13 Thread Zachary Turner via lldb-commits
The permanent solution would be figuring out what to do about the ObjectFile situation (e.g. do we want to make an ObjectFilePDB or do we want to live in a world where SymbolFiles need not be backed by ObjectFiles?), and then regardless of what we decide there, implementing the SymbolVendor that ca

Re: [Lldb-commits] [PATCH] D55142: Minidump debugging using the native PDB reader

2018-12-13 Thread Zachary Turner via lldb-commits
At this point it seems like perpetuating the hack, or at least even if that's the direction we decide to go longterm, not implementing that solution fully and missing some of the corner cases. So I think I'd rather just go with the original hack of checking the current directory at this point. St

Re: [Lldb-commits] [PATCH] D55142: Minidump debugging using the native PDB reader

2018-12-13 Thread Zachary Turner via lldb-commits
The problems I have with current directory lookup are: * It makes the behavior dependent on the environment, much like using an environment variable. This is a potential source of flakiness in tests, or different behavior on different peoples' machines. * It doesn't match WinDbg or MSVC * It's te

Re: [Lldb-commits] [PATCH] D55142: Minidump debugging using the native PDB reader

2018-12-13 Thread Zachary Turner via lldb-commits
I think we can fix that by changing the line to: ``` if (!object_file || object_file->GetFileSpec() == symbol_fspec) { } ``` On Thu, Dec 13, 2018 at 12:04 PM Pavel Labath wrote: > On 13/12/2018 19:32, Leonard Mosescu wrote: > > What's the consensus? > > > > Personally I think that, even conside

Re: [Lldb-commits] [PATCH] D55142: Minidump debugging using the native PDB reader

2018-12-13 Thread Zachary Turner via lldb-commits
Well, Visual Studio also supports remote debugging, and searching next to the .dmp is just one of several places it looks. And LLDB also supports local debugging, and so looking next to the .dmp file, being consistent with Visual Studio, will be the expected behavior for people using LLDB in local

[Lldb-commits] [lldb] r349067 - [NativePDB] Add support for local variables.

2018-12-13 Thread Zachary Turner via lldb-commits
Author: zturner Date: Thu Dec 13 10:17:51 2018 New Revision: 349067 URL: http://llvm.org/viewvc/llvm-project?rev=349067&view=rev Log: [NativePDB] Add support for local variables. This patch adds support for parsing and evaluating local variables. using the native pdb plugin. Differential Revisio

Re: [Lldb-commits] [PATCH] D55142: Minidump debugging using the native PDB reader

2018-12-13 Thread Zachary Turner via lldb-commits
On irc earlier i was talking about this with Greg and he said it should be fine in his opinion. I’ll point him to this review in the morning so he can comment On Thu, Dec 13, 2018 at 3:30 AM Pavel Labath via Phabricator < revi...@reviews.llvm.org> wrote: > labath added inline comments. > > > =

[Lldb-commits] [lldb] r348941 - [ast] CreateParameterDeclaration should use an appropriate DeclContext.

2018-12-12 Thread Zachary Turner via lldb-commits
Author: zturner Date: Wed Dec 12 09:17:53 2018 New Revision: 348941 URL: http://llvm.org/viewvc/llvm-project?rev=348941&view=rev Log: [ast] CreateParameterDeclaration should use an appropriate DeclContext. Previously CreateParameterDeclaration was always using the translation unit DeclContext. W

Re: [Lldb-commits] [PATCH] D55142: Minidump debugging using the native PDB reader

2018-12-12 Thread Zachary Turner via lldb-commits
There is another option which I was just made aware of. LLDB already has a setting called `target.debug-file-search-paths`. This is basically a symbol path. If you call Symbols::LocateExecutableSymbolFile, it will already add use this setting, and moreover it will implicitly add current working

Re: [Lldb-commits] [PATCH] D55430: build.py: Implement "gcc" builder

2018-12-12 Thread Zachary Turner via lldb-commits
It's fine, I was mostly just curious. On Wed, Dec 12, 2018 at 8:52 AM Pavel Labath via Phabricator < revi...@reviews.llvm.org> wrote: > labath marked an inline comment as done. > labath added inline comments. > > > > Comment at: lldb/trunk/lit/helper/build.py:630 > +a

Re: [Lldb-commits] [PATCH] D55142: Minidump debugging using the native PDB reader

2018-12-11 Thread Zachary Turner via lldb-commits
On Tue, Dec 11, 2018 at 4:22 PM Leonard Mosescu wrote: > I guess I don't see why we need a temporary solution at all. If we can >> have logic that can be rolled into the SymbolVendor when we get it, and >> makes sense there, and is also simple, why not go with it? Failing that, >> doesn't the `

Re: [Lldb-commits] [PATCH] D55142: Minidump debugging using the native PDB reader

2018-12-11 Thread Zachary Turner via lldb-commits
I guess I don't see why we need a temporary solution at all. If we can have logic that can be rolled into the SymbolVendor when we get it, and makes sense there, and is also simple, why not go with it? Failing that, doesn't the `target symbols add` solution also work fine? On Tue, Dec 11, 2018 a

Re: [Lldb-commits] [PATCH] D55142: Minidump debugging using the native PDB reader

2018-12-11 Thread Zachary Turner via lldb-commits
Actually, Adrian just tested this on his machine and it did look in his minidump folder. I don't know why we're seeing different behavior. Either way, regardless of whether MSVC / WinDbg look in the minidump folder, I still think it's a pretty intuitive location to add in the default search path.

Re: [Lldb-commits] [PATCH] D55142: Minidump debugging using the native PDB reader

2018-12-11 Thread Zachary Turner via lldb-commits
Only one way to know for sure, and that's to test it :) So I did. Yes, it will search the directory of the EXE for the PDB. But here, we're talking about a situation where there is no EXE, only a minidump. If there is a minidump and no EXE then neither WinDbg nor VS will search the minidump fol

Re: [Lldb-commits] [PATCH] D55356: Add a method to get the "base" file address of an object file

2018-12-11 Thread Zachary Turner via lldb-commits
On Tue, Dec 11, 2018 at 11:57 AM Pavel Labath wrote: > The part I know nothing about is whether something similar could be done > for PE/COFF files (and I'll need something like that there too). Adrian, > Zachary, what is the relation ship between "image base" of an object > file and its sections

Re: [Lldb-commits] [PATCH] D55142: Minidump debugging using the native PDB reader

2018-12-11 Thread Zachary Turner via lldb-commits
I meant the location of the minidump. So if you have C:\A\B\C\foo.dmp which is the dump file for bar.exe which crashed on another machine, then it would look for C:\A\B\C\bar.pdb. That actually seems like fairly intuitive behavior to me, but maybe I'm in the minority :) We can see what Pavel, Ad

  1   2   3   4   5   6   7   8   9   10   >