amccarth (Adrian McCarthy)
User

Projects

User does not belong to any projects.

User Details

User Since
Jan 26 2015, 9:26 AM (155 w, 5 d)

Recent Activity

Tue, Jan 9

amccarth committed rL322136: Reland "Emit Function IDs table for Control Flow Guard".
Reland "Emit Function IDs table for Control Flow Guard"
Tue, Jan 9, 3:50 PM
amccarth committed rC322136: Reland "Emit Function IDs table for Control Flow Guard".
Reland "Emit Function IDs table for Control Flow Guard"
Tue, Jan 9, 3:50 PM

Mon, Jan 8

amccarth committed rC322008: Revert "Emit Function IDs table for Control Flow Guard".
Revert "Emit Function IDs table for Control Flow Guard"
Mon, Jan 8, 9:13 AM
amccarth committed rL322008: Revert "Emit Function IDs table for Control Flow Guard".
Revert "Emit Function IDs table for Control Flow Guard"
Mon, Jan 8, 9:13 AM
amccarth committed rL322005: Emit Function IDs table for Control Flow Guard.
Emit Function IDs table for Control Flow Guard
Mon, Jan 8, 8:35 AM
amccarth committed rC322005: Emit Function IDs table for Control Flow Guard.
Emit Function IDs table for Control Flow Guard
Mon, Jan 8, 8:35 AM
amccarth closed D40531: Emit function IDs table for Control Flow Guard.
Mon, Jan 8, 8:35 AM

Fri, Jan 5

amccarth committed rL321911: Re-land "Fix faulty assertion in debug info".
Re-land "Fix faulty assertion in debug info"
Fri, Jan 5, 3:02 PM

Dec 19 2017

amccarth committed rL321125: Revert "Fix faulty assertion in debug info".
Revert "Fix faulty assertion in debug info"
Dec 19 2017, 3:35 PM
amccarth committed rL321122: Fix faulty assertion in debug info.
Fix faulty assertion in debug info
Dec 19 2017, 3:02 PM
amccarth closed D41264: Fix faulty assertion for void type in debug info.
Dec 19 2017, 3:02 PM · debug-info
amccarth added a comment to D40531: Emit function IDs table for Control Flow Guard.

Any other issues here?

Dec 19 2017, 11:58 AM

Dec 18 2017

amccarth updated the summary of D41264: Fix faulty assertion for void type in debug info.
Dec 18 2017, 2:00 PM · debug-info
amccarth updated the diff for D40531: Emit function IDs table for Control Flow Guard.

Adds tests for .symidx directive.

Dec 18 2017, 1:56 PM

Dec 15 2017

amccarth updated the diff for D41264: Fix faulty assertion for void type in debug info.

Made part of the fix more localized, preserving one of the assertions.

Dec 15 2017, 3:36 PM · debug-info
amccarth added a comment to D41264: Fix faulty assertion for void type in debug info.

That seems suspicious. Do you have an llvm IR testcase and does the Verifier accept it?

Dec 15 2017, 9:02 AM · debug-info

Dec 14 2017

amccarth created D41264: Fix faulty assertion for void type in debug info.
Dec 14 2017, 4:54 PM · debug-info

Dec 13 2017

amccarth added a comment to D41157: [cmake] Explicitly set VS 2017 compatibility.

I'm confused by this.

Dec 13 2017, 11:38 AM

Dec 1 2017

amccarth updated the diff for D40531: Emit function IDs table for Control Flow Guard.

Addressed most review comments.

Dec 1 2017, 3:36 PM
amccarth added a comment to D40531: Emit function IDs table for Control Flow Guard.
In D40531#939683, @rnk wrote:

Take a look at llvm/lib/MC/MCParser/COFFAsmParser.cpp and add the .symidx directive following the example of ParseDirectiveSecIdx. You can test it in test/MC/COFF/symidx.s with llvm-readobj.

Dec 1 2017, 3:34 PM

Nov 27 2017

amccarth added a reviewer for D40531: Emit function IDs table for Control Flow Guard: rnk.
Nov 27 2017, 4:54 PM
amccarth created D40531: Emit function IDs table for Control Flow Guard.
Nov 27 2017, 4:53 PM

Nov 22 2017

amccarth added a comment to D40328: Use a single file name to represent a lock.

I share zturner's concerns that file-based lock implementations on Windows are inherently fraught with pitfalls. Can't we use a Mutex or other OS-provided synchronization mechanism? Those will be more efficient, more robust, and they won't leave artifacts if the program is interrupted or crashes.

Nov 22 2017, 8:16 AM

Nov 8 2017

amccarth committed rL317703: NFC: Rename MCSafeSEHFragment to MCSymbolIdFragment.
NFC: Rename MCSafeSEHFragment to MCSymbolIdFragment
Nov 8 2017, 10:57 AM
amccarth closed D39770: NFC: Rename MCSafeSEHFragment to MCSymbolIdFragment by committing rL317703: NFC: Rename MCSafeSEHFragment to MCSymbolIdFragment.
Nov 8 2017, 10:57 AM

Nov 7 2017

amccarth created D39770: NFC: Rename MCSafeSEHFragment to MCSymbolIdFragment.
Nov 7 2017, 4:19 PM

Oct 25 2017

amccarth added a comment to D39263: [support] remove tautological comparison in Support/Windows/Path.inc.

Zach is correct about the overly large reservation in the file mapping and we should fix that too.

Oct 25 2017, 8:29 AM

Oct 10 2017

amccarth added inline comments to D38715: Support: On Windows, use CreateFileW to delete files in sys::fs::remove()..
Oct 10 2017, 11:31 AM
amccarth added a comment to D38716: Support: Have directory_iterator::status() return FindFirstFileEx/FindNextFile results on Windows..

Just a drive-by comment.

Oct 10 2017, 11:16 AM

Oct 9 2017

amccarth committed rL315222: Fix after r315079.
Fix after r315079
Oct 9 2017, 10:51 AM

Oct 6 2017

amccarth added inline comments to D38651: [llvm-rc] Have the tokenizer discard comments.
Oct 6 2017, 4:23 PM

Oct 5 2017

amccarth accepted D37923: Implement interactive command interruption.

LGTM

Oct 5 2017, 3:54 PM
amccarth added a comment to D38570: Support: Rewrite Windows implementation of sys::fs::rename to be more POSIXy..

I'm with Zach in that I'm also concerned about the extra complexity. Then again ReplaceFile does all sorts of extra work we don't need (like preserving file creation times) that could potentially create confusion and even bugs.

Oct 5 2017, 10:32 AM

Sep 21 2017

amccarth committed rL313904: [LLDB] Implement interactive command interruption.
[LLDB] Implement interactive command interruption
Sep 21 2017, 12:38 PM
amccarth closed D37923: Implement interactive command interruption by committing rL313904: [LLDB] Implement interactive command interruption.
Sep 21 2017, 12:38 PM

Sep 20 2017

amccarth accepted D37923: Implement interactive command interruption.

But just a thought: Is it worth doing all the work to scan for line endings for the interruption points? What if, instead, it just printed the next _n_ characters on each iteration until the entire buffer has been printed. Sure, sometimes an interruption will split a line, and sometimes it won't. I'm not sure that's important for interactive usage. It would mean less fiddly code, faster output (because you don't have to scan every character), and a zillion short lines will print as fast as a smaller number of longer lines that represents the same volume of text.

Sep 20 2017, 4:24 PM
amccarth committed rL313785: Fix the SIGINT handlers.
Fix the SIGINT handlers
Sep 20 2017, 11:11 AM
amccarth closed D37926: Fix the SIGINT handlers by committing rL313785: Fix the SIGINT handlers.
Sep 20 2017, 11:11 AM

Sep 19 2017

amccarth committed rL313655: Re-land r313210 - Fix for bug 34532 - A few rough corners related to post….
Re-land r313210 - Fix for bug 34532 - A few rough corners related to post…
Sep 19 2017, 11:09 AM

Sep 18 2017

amccarth committed rL313540: Revert "Fix for bug 34532 - A few rough corners related to post-mortem….
Revert "Fix for bug 34532 - A few rough corners related to post-mortem…
Sep 18 2017, 9:01 AM

Sep 15 2017

amccarth added inline comments to D37923: Implement interactive command interruption.
Sep 15 2017, 1:48 PM
amccarth added a comment to D37923: Implement interactive command interruption.

I haven't looked at the whole patch yet, but it seems the SIGINT fix is well isolated. That should probably be in a separate patch.

Sep 15 2017, 1:16 PM

Sep 13 2017

amccarth committed rL313210: Fix for bug 34532 - A few rough corners related to post-mortem debugging….
Fix for bug 34532 - A few rough corners related to post-mortem debugging…
Sep 13 2017, 3:58 PM
amccarth closed D37651: Fix for bug 34532 - A few rough corners related to post-mortem debugging (core/minidump) by committing rL313210: Fix for bug 34532 - A few rough corners related to post-mortem debugging….
Sep 13 2017, 3:58 PM
amccarth added a comment to D37651: Fix for bug 34532 - A few rough corners related to post-mortem debugging (core/minidump).

@sas: Do the latest changes address your concerns with this patch?

Sep 13 2017, 2:15 PM
amccarth committed rL313192: Mark static member functions as static in CodeViewDebug.
Mark static member functions as static in CodeViewDebug
Sep 13 2017, 1:55 PM
amccarth closed D37715: Mark static member functions as static in CodeViewDebug by committing rL313192: Mark static member functions as static in CodeViewDebug.
Sep 13 2017, 1:55 PM
amccarth accepted D37651: Fix for bug 34532 - A few rough corners related to post-mortem debugging (core/minidump).

LGTM. Thanks for adding the tests.

Sep 13 2017, 10:53 AM
amccarth added a comment to D37715: Mark static member functions as static in CodeViewDebug.
In D37715#868973, @rnk wrote:

Looks good! Make sure to run check-clang and check-llvm. The CGDebugInfo.cpp change might affect clang codegen tests that generate debug info for DWARF.

Sep 13 2017, 9:09 AM

Sep 12 2017

amccarth updated the diff for D37715: Mark static member functions as static in CodeViewDebug.

Adds code-gen test. Corrects problem with first param of static method being
treated as the type of the this pointer. Addresses style suggestions.

Sep 12 2017, 5:10 PM
amccarth added a comment to D37715: Mark static member functions as static in CodeViewDebug.

Good tip on the lowering. Extra test coming momentarily.

Sep 12 2017, 5:09 PM

Sep 11 2017

amccarth added a reviewer for D37715: Mark static member functions as static in CodeViewDebug: rnk.
Sep 11 2017, 3:31 PM
amccarth created D37715: Mark static member functions as static in CodeViewDebug.
Sep 11 2017, 3:25 PM

Sep 8 2017

amccarth added a comment to D37651: Fix for bug 34532 - A few rough corners related to post-mortem debugging (core/minidump).

I think I agree with Jim that it would be better to propagate an error from DoResume than to introduce CanResume. I could imagine situations where DoResume could fail for a reason that CanResume was unable to predict. Having one path for handling failure to resume seems cleaner.

Sep 8 2017, 5:07 PM

Sep 7 2017

amccarth added inline comments to D37602: Properly hook debuginfo-tests up to lit and CMake.
Sep 7 2017, 4:38 PM
amccarth committed rL312735: Fix for bug 34510 - Minidump target does not resolve new symbols correctly.
Fix for bug 34510 - Minidump target does not resolve new symbols correctly
Sep 7 2017, 11:31 AM
amccarth closed D37527: Fix for bug 34510 - Minidump target does not resolve new symbols correctly by committing rL312735: Fix for bug 34510 - Minidump target does not resolve new symbols correctly.
Sep 7 2017, 11:31 AM
amccarth added a comment to D37527: Fix for bug 34510 - Minidump target does not resolve new symbols correctly.

I'll commit it momentarily.

Sep 7 2017, 11:16 AM

Sep 6 2017

amccarth accepted D37527: Fix for bug 34510 - Minidump target does not resolve new symbols correctly.

This looks fine.

Sep 6 2017, 2:12 PM

Sep 5 2017

amccarth added a comment to D37409: [CodeView] Don't output nested typedefs that are scoped to classes..

Nice description of the problem.

Sep 5 2017, 8:32 AM

Aug 31 2017

amccarth added a comment to D37331: [ELF] Prevent crash with binary inputs with non-ascii file names.
In D37331#858023, @ruiu wrote:

Find a unicode character whose encoding contains a byte > 128

Its basically any non-ASCII character. But is it portable? I mean, for example, if Windows crt converts an command line argument into UTF-16 encoding, this test will fail due to the difference of number of underscores.

Aug 31 2017, 1:20 PM

Aug 4 2017

amccarth committed rL310144: Enable llvm-pdbutil to list enumerations using native PDB reader.
Enable llvm-pdbutil to list enumerations using native PDB reader
Aug 4 2017, 3:38 PM
amccarth closed D35738: Enable llvm-pdbutil to list enumerations using native PDB reader by committing rL310144: Enable llvm-pdbutil to list enumerations using native PDB reader.
Aug 4 2017, 3:38 PM
amccarth updated the diff for D35738: Enable llvm-pdbutil to list enumerations using native PDB reader.

Addressed additional feedback.

Aug 4 2017, 1:46 PM
amccarth added inline comments to D35738: Enable llvm-pdbutil to list enumerations using native PDB reader.
Aug 4 2017, 1:16 PM
amccarth added a comment to D35738: Enable llvm-pdbutil to list enumerations using native PDB reader.

PTAL.

Aug 4 2017, 10:30 AM
amccarth updated the diff for D35738: Enable llvm-pdbutil to list enumerations using native PDB reader.

Simplified NativeEnumTypes by moving work to NativeSession which already had
access to Tpi and thus LazyRandomTypeCollection. NativeEnumTypes can now
exactly answer how many objects is knows about because it scans the types
when its constructed and maintains a vector of the relevant TypeIndexes.

Aug 4 2017, 10:01 AM

Aug 2 2017

amccarth added a comment to D35738: Enable llvm-pdbutil to list enumerations using native PDB reader.

I'll ping when it's ready for another look.

Aug 2 2017, 9:59 AM

Aug 1 2017

amccarth updated the diff for D35738: Enable llvm-pdbutil to list enumerations using native PDB reader.

Enable llvm-pdbutil to list enumerations using native PDB reader

Aug 1 2017, 3:50 PM

Jul 28 2017

amccarth added a comment to D35738: Enable llvm-pdbutil to list enumerations using native PDB reader.

I'm reworking NativeEnumTypes per the discussion. I'll have an update on Monday.

Jul 28 2017, 4:54 PM
amccarth added inline comments to D35738: Enable llvm-pdbutil to list enumerations using native PDB reader.
Jul 28 2017, 11:17 AM

Jul 27 2017

amccarth added a comment to D35738: Enable llvm-pdbutil to list enumerations using native PDB reader.

Is it that much extra work to implement children? It would be nice if this could just be feature complete. It seems like all you have to do is read the FieldList member of the CodeView record, load that item, and then create an enumerator that iterates each item and returns a NativeConstantSymbol or whatever we're calling it

Jul 27 2017, 5:01 PM

Jul 21 2017

amccarth created D35738: Enable llvm-pdbutil to list enumerations using native PDB reader.
Jul 21 2017, 3:02 PM

Jul 17 2017

amccarth abandoned D35506: Fix after r308190..

Beaten to it by r308219.

Jul 17 2017, 2:36 PM
amccarth created D35506: Fix after r308190..
Jul 17 2017, 2:09 PM

Jul 12 2017

amccarth committed rL307834: [PDB] Enable NativeSession to create symbols for built-in types on demand.
[PDB] Enable NativeSession to create symbols for built-in types on demand
Jul 12 2017, 12:38 PM
amccarth closed D35163: [PDB] Enable NativeSession to create symbols for built-in types on demand by committing rL307834: [PDB] Enable NativeSession to create symbols for built-in types on demand.
Jul 12 2017, 12:38 PM
amccarth committed rL307823: Temporary fix to green up the build bots on behalf of zturner who's on vacation..
Temporary fix to green up the build bots on behalf of zturner who's on vacation.
Jul 12 2017, 11:10 AM

Jul 11 2017

amccarth updated the diff for D35163: [PDB] Enable NativeSession to create symbols for built-in types on demand.

Switched from std::unordered_map to llvm::DenseMap per zturner's suggestion.

Jul 11 2017, 3:48 PM
amccarth added inline comments to D35163: [PDB] Enable NativeSession to create symbols for built-in types on demand.
Jul 11 2017, 1:31 PM
amccarth updated the diff for D35163: [PDB] Enable NativeSession to create symbols for built-in types on demand.

Addressed feedback from zturner and rnk.

Jul 11 2017, 1:31 PM
amccarth added a comment to D35163: [PDB] Enable NativeSession to create symbols for built-in types on demand.

I've got one more suggestion from Zach to take care of, then I'll upload an updated patch.

Jul 11 2017, 12:02 PM

Jul 10 2017

amccarth added inline comments to D35224: [lld/pdb] Create an empty public symbol records stream.
Jul 10 2017, 3:16 PM

Jul 9 2017

amccarth created D35163: [PDB] Enable NativeSession to create symbols for built-in types on demand.
Jul 9 2017, 6:13 AM

Jul 5 2017

amccarth added inline comments to D34915: [pdb] Add a test for every known CodeView type.
Jul 5 2017, 4:50 PM

Jun 28 2017

amccarth added a comment to D34667: [Demangler] [DO NOT SUBMIT] Initial patch for Microsoft demangler..

So the idea is to convert the mangled name to an AST and then convert the AST to a string. That makes sense. But is the string form of the result always enough? Will there ever be a need for a caller to get the AST or some other representation?

Jun 28 2017, 4:37 PM
amccarth committed rL306610: Introduce symbol cache to PDB NativeSession.
Introduce symbol cache to PDB NativeSession
Jun 28 2017, 3:48 PM

Jun 27 2017

amccarth updated the diff for D34542: Introduce symbol cache to PDB NativeSession.

Fixed order of includes to comply with LLVM style

Jun 27 2017, 3:31 PM
amccarth added inline comments to D34542: Introduce symbol cache to PDB NativeSession.
Jun 27 2017, 3:15 PM
amccarth updated the diff for D34542: Introduce symbol cache to PDB NativeSession.

Addresses feedback from zturner.

Jun 27 2017, 2:41 PM
amccarth added inline comments to D34542: Introduce symbol cache to PDB NativeSession.
Jun 27 2017, 2:39 PM
amccarth added a comment to D34542: Introduce symbol cache to PDB NativeSession.

ping

Jun 27 2017, 1:16 PM

Jun 23 2017

amccarth added a comment to D34553: Shorten sanitizer plugin names.

Thanks for doing this. This seems a reasonable alternative to fixing all the build tools upstream. And overly long paths are difficult to read.

Jun 23 2017, 11:07 AM

Jun 22 2017

amccarth created D34542: Introduce symbol cache to PDB NativeSession.
Jun 22 2017, 4:37 PM
amccarth committed rL306043: Fix build break by using llvm::make_unique instead of std::make_unique..
Fix build break by using llvm::make_unique instead of std::make_unique.
Jun 22 2017, 11:58 AM
amccarth committed rL306042: Add IDs and clone methods to NativeRawSymbol.
Add IDs and clone methods to NativeRawSymbol
Jun 22 2017, 11:44 AM
amccarth committed rL306041: Make IPDBSession::getGlobalScope a non-const method.
Make IPDBSession::getGlobalScope a non-const method
Jun 22 2017, 11:43 AM
amccarth accepted D34491: [PDB] Fix reading of clang-generated PDBs by CVDump..

Thanks for the clarification.

Jun 22 2017, 10:05 AM
amccarth added inline comments to D34491: [PDB] Fix reading of clang-generated PDBs by CVDump..
Jun 22 2017, 7:57 AM

Jun 21 2017

amccarth created D34479: Add IDs and clone methods to NativeRawSymbol.
Jun 21 2017, 2:57 PM