[Lldb-commits] [PATCH] D39733: Simplify NativeProcessProtocol::GetArchitecture/GetByteOrder

2017-11-07 Thread Eugene Zemtsov via Phabricator via lldb-commits
eugene added inline comments. Comment at: include/lldb/Host/common/NativeProcessProtocol.h:104 - virtual bool GetArchitecture(ArchSpec &arch) const = 0; + virtual const ArchSpec &GetArchitecture() const = 0; Why return reference instead of a value? https:

[Lldb-commits] [PATCH] D39733: Simplify NativeProcessProtocol::GetArchitecture/GetByteOrder

2017-11-07 Thread Eugene Zemtsov via Phabricator via lldb-commits
eugene added inline comments. Comment at: include/lldb/Host/common/NativeProcessProtocol.h:104 - virtual bool GetArchitecture(ArchSpec &arch) const = 0; + virtual const ArchSpec &GetArchitecture() const = 0; labath wrote: > eugene wrote: > > Why return refe

[Lldb-commits] [PATCH] D41533: Advanced guessing of rendezvous breakpoint

2018-01-08 Thread Eugene Zemtsov via Phabricator via lldb-commits
eugene updated this revision to Diff 129002. eugene edited the summary of this revision. eugene added a reviewer: tberghammer. eugene added a project: LLDB. eugene added a subscriber: lldb-commits. eugene added a comment. Fix tests. https://reviews.llvm.org/D41533 Files: packages/Python/lldb

[Lldb-commits] [PATCH] D41533: Advanced guessing of rendezvous breakpoint

2018-01-09 Thread Eugene Zemtsov via Phabricator via lldb-commits
eugene marked 5 inline comments as done. eugene added inline comments. Comment at: source/Plugins/DynamicLoader/POSIX-DYLD/DynamicLoaderPOSIXDYLD.cpp:365-368 +static const char *DebugStateCandidates[] = { +"_dl_debug_state", "rtld_db_dlactivity", "__dl_rtld_db_dlacti

[Lldb-commits] [PATCH] D41533: Advanced guessing of rendezvous breakpoint

2018-01-09 Thread Eugene Zemtsov via Phabricator via lldb-commits
eugene updated this revision to Diff 129216. eugene marked an inline comment as done. eugene added a comment. Addressing code review comments. Switching from manual symbol resolution to the appropriate overload of CreateBreakpoint. https://reviews.llvm.org/D41533 Files: packages/Python/ll

[Lldb-commits] [PATCH] D41533: Advanced guessing of rendezvous breakpoint

2018-01-10 Thread Eugene Zemtsov via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL322209: Advanced guessing of rendezvous breakpoint (authored by eugene, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.llvm.org/D41533?vs=129216&id=129

[Lldb-commits] [PATCH] D42488: Remove ObjectFile usage from HostLinux::GetProcessInfo

2018-01-24 Thread Eugene Zemtsov via Phabricator via lldb-commits
eugene added inline comments. Comment at: source/Host/linux/Host.cpp:129 + auto buffer_sp = DataBufferLLVM::CreateSliceFromPath(exe_path, 0x20, 0); + if (buffer_sp) +return ArchSpec(); Shouldn't it be ``` if (!buffer_sp) ``` ? https://reviews.llvm.org/D

[Lldb-commits] [PATCH] D31451: New C++ function name parsing logic

2018-01-24 Thread Eugene Zemtsov via Phabricator via lldb-commits
eugene added a comment. Greg, this name is amazing. My c++filt refuses to demangle it. We can probably give up on parsing C++ names if they're longer than 1000 characters or something. Repository: rL LLVM https://reviews.llvm.org/D31451 ___ lld

[Lldb-commits] [PATCH] D42939: More correct handling of error cases C++ name parser

2018-02-05 Thread Eugene Zemtsov via Phabricator via lldb-commits
eugene created this revision. eugene added a reviewer: labath. Now incorrect type argument that looks like T doesn't cause an assert, but just a parsing error. Bug: 36224 https://reviews.llvm.org/D42939 Files: source/Plugins/Language/CPlusPlus/CPlusPlusNameParser.cpp unittests/Lan

[Lldb-commits] [PATCH] D42939: More correct handling of error cases C++ name parser

2018-02-05 Thread Eugene Zemtsov via Phabricator via lldb-commits
eugene updated this revision to Diff 132916. eugene added a comment. fix formating https://reviews.llvm.org/D42939 Files: source/Plugins/Language/CPlusPlus/CPlusPlusNameParser.cpp unittests/Language/CPlusPlus/CPlusPlusLanguageTest.cpp Index: unittests/Language/CPlusPlus/CPlusPlusLanguageT

[Lldb-commits] [PATCH] D42939: More correct handling of error cases C++ name parser

2018-02-06 Thread Eugene Zemtsov via Phabricator via lldb-commits
eugene added inline comments. Comment at: source/Plugins/Language/CPlusPlus/CPlusPlusNameParser.cpp:199 case tok::greatergreater: template_counter -= 2; can_open_template = false; labath wrote: > While looking at the bug, this part here struck

[Lldb-commits] [PATCH] D42939: More correct handling of error cases C++ name parser

2018-02-06 Thread Eugene Zemtsov via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL324380: More correct handling of error cases C++ name parser (authored by eugene, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.llvm.org/D42939?vs=132

[Lldb-commits] [PATCH] D45554: Make sure deleting all breakpoints clears their sites first

2018-04-11 Thread Eugene Zemtsov via Phabricator via lldb-commits
eugene created this revision. eugene added reviewers: labath, jingham. Fixing crash after "breakpoint delete". Bug: https://bugs.llvm.org/show_bug.cgi?id=36430 https://reviews.llvm.org/D45554 Files: packages/Python/lldbsuite/test/functionalities/breakpoint/breakpoint_command/TestBreakpoin

[Lldb-commits] [PATCH] D45554: Make sure deleting all breakpoints clears their sites first

2018-04-12 Thread Eugene Zemtsov via Phabricator via lldb-commits
eugene updated this revision to Diff 142209. eugene marked 2 inline comments as done. eugene added a comment. add comment to the test https://reviews.llvm.org/D45554 Files: packages/Python/lldbsuite/test/functionalities/breakpoint/breakpoint_command/TestBreakpointCommand.py packages/Pytho

[Lldb-commits] [PATCH] D45554: Make sure deleting all breakpoints clears their sites first

2018-04-12 Thread Eugene Zemtsov via Phabricator via lldb-commits
eugene added inline comments. Comment at: packages/Python/lldbsuite/test/functionalities/breakpoint/breakpoint_command/main.c:13 { +printf("Observable side effect\n"); return 0; // Set break point at this line. labath wrote: > Why did you need to add t

[Lldb-commits] [PATCH] D45554: Make sure deleting all breakpoints clears their sites first

2018-04-12 Thread Eugene Zemtsov via Phabricator via lldb-commits
eugene updated this revision to Diff 142319. eugene added a comment. Got rid of the printf in the test https://reviews.llvm.org/D45554 Files: packages/Python/lldbsuite/test/functionalities/breakpoint/breakpoint_command/TestBreakpointCommand.py packages/Python/lldbsuite/test/functionalitie

[Lldb-commits] [PATCH] D45554: Make sure deleting all breakpoints clears their sites first

2018-04-12 Thread Eugene Zemtsov via Phabricator via lldb-commits
eugene marked 2 inline comments as done. eugene added a comment. There is an ownership cycle between BreakpointSite::m_owners and BreakpointLocation::m_bp_site_sp. We should probably make m_owners a collection of weak references. But currently most of the code just works it around by calling Br

[Lldb-commits] [PATCH] D45554: Make sure deleting all breakpoints clears their sites first

2018-04-13 Thread Eugene Zemtsov via Phabricator via lldb-commits
eugene added a comment. Well, I agree that breakpoints, locations and sites could benefit from ownership refactoring. shared_ptr cycles are bad. Let's discuss it at lldb-dev. Meanwhile I think it's still ok to fix this bug right now, by doing what has already been done in other places. http

[Lldb-commits] [PATCH] D45554: Make sure deleting all breakpoints clears their sites first

2018-04-16 Thread Eugene Zemtsov via Phabricator via lldb-commits
eugene added a comment. If nobody minds, I'd appreciate if somebody would accept this patch. https://reviews.llvm.org/D45554 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [PATCH] D45554: Make sure deleting all breakpoints clears their sites first

2018-04-16 Thread Eugene Zemtsov via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL330163: Make sure deleting all breakpoints clears their sites first (authored by eugene, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.llvm.org/D45554

[Lldb-commits] [PATCH] D31129: Remove remaining platform specific code from FileSpec

2017-03-21 Thread Eugene Zemtsov via Phabricator via lldb-commits
eugene accepted this revision. eugene added a comment. This revision is now accepted and ready to land. I like how much code you deleted. https://reviews.llvm.org/D31129 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org

[Lldb-commits] [PATCH] D31451: New C++ function name parsing logic

2017-03-29 Thread Eugene Zemtsov via Phabricator via lldb-commits
eugene updated this revision to Diff 93438. eugene added reviewers: labath, zturner, jingham. eugene changed the visibility from "eugene (Eugene Zemtsov)" to "Public (No Login Required)". eugene changed the edit policy from "eugene (Eugene Zemtsov)" to "All Users". eugene added a subscriber: lldb-

[Lldb-commits] [PATCH] D31451: New C++ function name parsing logic

2017-03-30 Thread Eugene Zemtsov via Phabricator via lldb-commits
eugene updated this revision to Diff 93572. eugene added a comment. Addressing code-review comments. Most notable change: MethodName::Parse() tries simple version of name parser, before invoking full power of CPlusPlusNameParser. It really helps with the perf. https://reviews.llvm.org/D31451

[Lldb-commits] [PATCH] D31451: New C++ function name parsing logic

2017-03-30 Thread Eugene Zemtsov via Phabricator via lldb-commits
eugene marked 4 inline comments as done. eugene added a comment. > I think we should do some performance measurements to see whether this needs > more optimising or it's fine as is. > > I propose the following benchmark: > > bin/lldb bin/clang > > make sure clang is statically linked > br

[Lldb-commits] [PATCH] D31451: New C++ function name parsing logic

2017-03-31 Thread Eugene Zemtsov via Phabricator via lldb-commits
eugene updated this revision to Diff 93693. eugene marked 3 inline comments as done. eugene added a comment. Addressing review commnets https://reviews.llvm.org/D31451 Files: source/Plugins/Language/CPlusPlus/CMakeLists.txt source/Plugins/Language/CPlusPlus/CPlusPlusLanguage.cpp source/Pl

[Lldb-commits] [PATCH] D31451: New C++ function name parsing logic

2017-03-31 Thread Eugene Zemtsov via Phabricator via lldb-commits
eugene updated this revision to Diff 93694. eugene marked an inline comment as done. https://reviews.llvm.org/D31451 Files: source/Plugins/Language/CPlusPlus/CMakeLists.txt source/Plugins/Language/CPlusPlus/CPlusPlusLanguage.cpp source/Plugins/Language/CPlusPlus/CPlusPlusLanguage.h source

[Lldb-commits] [PATCH] D31451: New C++ function name parsing logic

2017-03-31 Thread Eugene Zemtsov via Phabricator via lldb-commits
eugene added a subscriber: labath. eugene marked 2 inline comments as done. eugene added a comment. In https://reviews.llvm.org/D31451#715649, @tberghammer wrote: > Because of this I think some targeted micro benchmark will be much more > useful to measure the performance of this code then an en

[Lldb-commits] [PATCH] D31451: New C++ function name parsing logic

2017-04-03 Thread Eugene Zemtsov via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL299374: New C++ function name parsing logic (authored by eugene). Changed prior to commit: https://reviews.llvm.org/D31451?vs=93694&id=93910#toc Repository: rL LLVM https://reviews.llvm.org/D31451

[Lldb-commits] [PATCH] D31877: Remove Plugins/Process/POSIX from include_directories

2017-04-10 Thread Eugene Zemtsov via Phabricator via lldb-commits
eugene accepted this revision. eugene added a comment. This revision is now accepted and ready to land. Thanks for doing it. IMO we should always strive to use "absolute" path for all headers. https://reviews.llvm.org/D31877 ___ lldb-commits mailin

[Lldb-commits] [PATCH] D32434: ObjectFileELF: Fix symbol lookup in bss section

2017-04-24 Thread Eugene Zemtsov via Phabricator via lldb-commits
eugene added a comment. Is it really necessary to check in binary ELF files? I understand that we don't always have a C compiler capable of producing ELF files, but maybe it's ok to skip this test on those platforms. https://reviews.llvm.org/D32434 _

[Lldb-commits] [PATCH] D32434: ObjectFileELF: Fix symbol lookup in bss section

2017-04-25 Thread Eugene Zemtsov via Phabricator via lldb-commits
eugene accepted this revision. eugene added a comment. This revision is now accepted and ready to land. Neatly done! https://reviews.llvm.org/D32434 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/list

[Lldb-commits] [PATCH] D32600: Resurrect pselect MainLoop implementation

2017-04-27 Thread Eugene Zemtsov via Phabricator via lldb-commits
eugene added inline comments. Comment at: source/Host/common/MainLoop.cpp:82 + int queue_id; + std::vector events; + struct kevent event_list[4]; here and below struct seems to be redundant https://reviews.llvm.org/D32600 _

[Lldb-commits] [PATCH] D32753: MainLoop: Add unit tests

2017-05-03 Thread Eugene Zemtsov via Phabricator via lldb-commits
eugene accepted this revision. eugene added inline comments. This revision is now accepted and ready to land. Comment at: source/Host/common/MainLoop.cpp:66 class MainLoop::RunImpl { public: Could you please add here a comment describing when kqueue/pselect/

[Lldb-commits] [PATCH] D33778: Add a NativeProcessProtocol Factory class

2017-06-01 Thread Eugene Zemtsov via Phabricator via lldb-commits
eugene added inline comments. Comment at: source/Plugins/Process/Linux/NativeProcessLinux.h:148 - ::pid_t Attach(lldb::pid_t pid, Status &error); + static llvm::Expected> Attach(::pid_t pid); labath wrote: > zturner wrote: > > Before it was only returning 1

[Lldb-commits] [PATCH] D33998: Add pretty-printer for wait(2) statuses and modernize the code handling them

2017-06-08 Thread Eugene Zemtsov via Phabricator via lldb-commits
eugene added inline comments. Comment at: source/Host/common/Host.cpp:1010 +static constexpr char type[] = "WXS"; +OS << formatv("{0}{1:x-2}", type[WS.type], WS.status); +return; type[WS.type] seems to be a somewhat unnecessary hack. I would use a si

[Lldb-commits] [PATCH] D34683: [unittests] Add a helper function for getting an input file

2017-06-27 Thread Eugene Zemtsov via Phabricator via lldb-commits
eugene accepted this revision. eugene added a comment. This revision is now accepted and ready to land. Great change. The only comment I have is about location of TestUtilities.cpp. Utility\Helpers kinda implies that these are helpers for Utility tests which is not true. I would move it up one l

[Lldb-commits] [PATCH] D34911: Enable parsing C++ names generated by lambda functions.

2017-07-05 Thread Eugene Zemtsov via Phabricator via lldb-commits
eugene accepted this revision. eugene added a comment. This revision is now accepted and ready to land. Great change! Thanks making it. https://reviews.llvm.org/D34911 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/c

[Lldb-commits] [PATCH] D34911: Enable parsing C++ names generated by lambda functions.

2017-07-13 Thread Eugene Zemtsov via Phabricator via lldb-commits
eugene added a comment. In https://reviews.llvm.org/D34911#808059, @wengxt wrote: > I don't have commit access. May any one help me to commit? I'll do it for you. https://reviews.llvm.org/D34911 ___ lldb-commits mailing list lldb-commits@lists.l

[Lldb-commits] [PATCH] D34911: Enable parsing C++ names generated by lambda functions.

2017-07-13 Thread Eugene Zemtsov via Phabricator via lldb-commits
eugene added a comment. Jim already did it. Thanks Jim. https://reviews.llvm.org/D34911 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [PATCH] D35607: Extend 'target symbols add' to load symbols from a given file by UUID.

2017-07-18 Thread Eugene Zemtsov via Phabricator via lldb-commits
eugene created this revision. eugene added a project: LLDB. Currently on Linux there is now way to force LLDB to use symbols from a certain file unless there is a UUID match established by build-id or debuglink. This change somewhat extends ''target symbols add', making it possible to specify s

[Lldb-commits] [PATCH] D35607: Extend 'target symbols add' to load symbols from a given file by UUID.

2017-07-19 Thread Eugene Zemtsov via Phabricator via lldb-commits
eugene added a comment. In https://reviews.llvm.org/D35607#814560, @labath wrote: > Btw, will this work correctly if we are cross-debugging from a mac? (because > then we will use the fancy DownloadObjectAndSymbolFile implementation) Yeah, you're right. I'll move this logic to the CommandObjec

[Lldb-commits] [PATCH] D35607: Extend 'target symbols add' to load symbols from a given file by UUID.

2017-07-20 Thread Eugene Zemtsov via Phabricator via lldb-commits
eugene added a comment. In https://reviews.llvm.org/D35607#814982, @clayborg wrote: > So we should just make sure this works: > > (lldb) target symbols add --shlib a.out debug_binaries/a.out > I like this, and I'm going to implement it. Pavel is right and the way UUID is set for modules wit

[Lldb-commits] [PATCH] D35607: Extend 'target symbols add' to set symbol file for a given module

2017-07-20 Thread Eugene Zemtsov via Phabricator via lldb-commits
eugene updated this revision to Diff 107628. eugene retitled this revision from "Extend 'target symbols add' to load symbols from a given file by UUID." to "Extend 'target symbols add' to set symbol file for a given module". eugene edited the summary of this revision. eugene added a comment. Fou

[Lldb-commits] [PATCH] D35607: Extend 'target symbols add' to set symbol file for a given module

2017-07-21 Thread Eugene Zemtsov via Phabricator via lldb-commits
eugene updated this revision to Diff 107725. eugene added a comment. Added error message when more than one symbol file is provided. https://reviews.llvm.org/D35607 Files: packages/Python/lldbsuite/test/linux/add-symbols/Makefile packages/Python/lldbsuite/test/linux/add-symbols/TestTargetS

[Lldb-commits] [PATCH] D35607: Extend 'target symbols add' to set symbol file for a given module

2017-07-24 Thread Eugene Zemtsov via Phabricator via lldb-commits
eugene added a comment. Greg, are you with me checking this in? https://reviews.llvm.org/D35607 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [PATCH] D35607: Extend 'target symbols add' to set symbol file for a given module

2017-07-24 Thread Eugene Zemtsov via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL308933: Extend 'target symbols add' to load symbols from a given module (authored by eugene). Changed prior to commit: https://reviews.llvm.org/D35607?vs=107725&id=107983#toc Repository: rL LLVM htt

[Lldb-commits] [PATCH] D36126: Fix incorrect use of std::unique

2017-07-31 Thread Eugene Zemtsov via Phabricator via lldb-commits
eugene created this revision. eugene added a project: LLDB. https://reviews.llvm.org/D36126 Files: source/Symbol/Symtab.cpp Index: source/Symbol/Symtab.cpp === --- source/Symbol/Symtab.cpp +++ source/Symbol/Symtab.cpp @@ -616,8 +

[Lldb-commits] [PATCH] D36126: Fix incorrect use of std::unique

2017-07-31 Thread Eugene Zemtsov via Phabricator via lldb-commits
eugene added a comment. clang drew my attention to it: Symtab.cpp:620:5: warning: ignoring return value of function declared with 'warn_unused_result' attribute [-Wunused-result] std::unique(indexes.begin(), indexes.end()); ^~~ ~~ https://reviews.llvm.o

[Lldb-commits] [PATCH] D36126: Fix incorrect use of std::unique

2017-07-31 Thread Eugene Zemtsov via Phabricator via lldb-commits
eugene closed this revision. eugene added a comment. Checked in as r309648 https://reviews.llvm.org/D36126 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [PATCH] D33213: Use socketpair on all Unix platforms

2017-07-31 Thread Eugene Zemtsov via Phabricator via lldb-commits
eugene accepted this revision. eugene added a comment. LGTM. Test run on Linux is clear. I also see a bit of perf bump. Before checking in please remove outdated comment from ProcessGDBRemote::LaunchAndConnectToDebugserver. // Use a socketpair on Apple for now until other platforms can verify

[Lldb-commits] [PATCH] D36804: Add initial support to PowerPC64 little endian (POWER8)

2017-08-30 Thread Eugene Zemtsov via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL312151: Now a ppc64le binary is correctly detected: (authored by eugene). Repository: rL LLVM https://reviews.llvm.org/D36804 Files: lldb/trunk/include/lldb/Core/ArchSpec.h lldb/trunk/source/Core/

[Lldb-commits] [PATCH] D33213: Use socketpair on all Unix platforms

2017-09-18 Thread Eugene Zemtsov via Phabricator via lldb-commits
eugene accepted this revision. eugene added a comment. I did mark it Accepted. https://reviews.llvm.org/D33213 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [PATCH] D33213: Use socketpair on all Unix platforms

2017-09-25 Thread Eugene Zemtsov via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL314127: Use socketpair on all Unix platforms (authored by eugene). Repository: rL LLVM https://reviews.llvm.org/D33213 Files: lldb/trunk/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp lldb

[Lldb-commits] [PATCH] D38323: Enable breakpoints and read/write GPRs for ppc64le

2017-10-05 Thread Eugene Zemtsov via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL315008: Enable breakpoints and read/write GPRs for ppc64le (authored by eugene). Repository: rL LLVM https://reviews.llvm.org/D38323 Files: lldb/trunk/source/Plugins/Process/Linux/CMakeLists.txt l

[Lldb-commits] [PATCH] D38938: Logging: provide a way to safely disable logging in a forked process

2017-10-16 Thread Eugene Zemtsov via Phabricator via lldb-commits
eugene added a comment. DisableUnlocked methods makes me uneasy. Maybe we can take a log lock before forking and then properly release it in both parent and child processes? https://reviews.llvm.org/D38938 ___ lldb-commits mailing list lldb-commits

[Lldb-commits] [PATCH] D38938: Logging: provide a way to safely disable logging in a forked process

2017-10-23 Thread Eugene Zemtsov via Phabricator via lldb-commits
eugene accepted this revision. eugene added inline comments. This revision is now accepted and ready to land. Comment at: source/Utility/Log.cpp:333 + +void Log::DisableLoggingChild() { + for (auto &c: *g_channel_map) A little comment here describing nature of a

[Lldb-commits] [PATCH] D30234: Reformat inferior's main.cpp in lldb-server test

2017-02-21 Thread Eugene Zemtsov via Phabricator via lldb-commits
eugene created this revision. eugene added a project: LLDB. main.cpp is complete mess of tabs and spaces. This change brings it to compliance with LLVM coding style. https://reviews.llvm.org/D30234 Files: packages/Python/lldbsuite/test/tools/lldb-server/main.cpp Index: packages/Python/lldbs

[Lldb-commits] [PATCH] D30234: Reformat inferior's main.cpp in lldb-server test

2017-02-21 Thread Eugene Zemtsov via Phabricator via lldb-commits
eugene added a comment. In https://reviews.llvm.org/D30234#682990, @jmajors wrote: > Do we have any plans to put something like cpplint into effect? First step would be to have warning free build. Then we can turn "warnings as errors" on. https://reviews.llvm.org/D30234 ___

[Lldb-commits] [PATCH] D30234: Reformat inferior's main.cpp in lldb-server test

2017-02-21 Thread Eugene Zemtsov via Phabricator via lldb-commits
eugene updated this revision to Diff 89311. https://reviews.llvm.org/D30234 Files: packages/Python/lldbsuite/test/tools/lldb-server/main.cpp Index: packages/Python/lldbsuite/test/tools/lldb-server/main.cpp === --- packages/Python/

[Lldb-commits] [PATCH] D30234: Reformat inferior's main.cpp in lldb-server test

2017-02-21 Thread Eugene Zemtsov via Phabricator via lldb-commits
eugene updated this revision to Diff 89312. https://reviews.llvm.org/D30234 Files: packages/Python/lldbsuite/test/tools/lldb-server/main.cpp Index: packages/Python/lldbsuite/test/tools/lldb-server/main.cpp === --- packages/Python/

[Lldb-commits] [PATCH] D30234: Reformat inferior's main.cpp in lldb-server test

2017-02-21 Thread Eugene Zemtsov via Phabricator via lldb-commits
eugene added a comment. In https://reviews.llvm.org/D30234#683018, @jingham wrote: > Anyway, it might be better just to do that to this file using the top level > .clang-format. Note that you are making several choices which were not the > choices made by clang-format using the .clang-format f

[Lldb-commits] [PATCH] D30234: Reformat inferior's main.cpp in lldb-server test

2017-02-21 Thread Eugene Zemtsov via Phabricator via lldb-commits
eugene marked an inline comment as done. eugene added inline comments. Comment at: packages/Python/lldbsuite/test/tools/lldb-server/main.cpp:32-42 +static const char *const RETVAL_PREFIX = "retval:"; +static const char *const SLEEP_PREFIX = "sleep:"; +static const char *const STD

[Lldb-commits] [PATCH] D30234: Reformat inferior's main.cpp in lldb-server test

2017-02-22 Thread Eugene Zemtsov via Phabricator via lldb-commits
eugene updated this revision to Diff 89404. eugene added a comment. I have added local .clang-format file. But it didn't change the way main.cpp was formated. https://reviews.llvm.org/D30234 Files: packages/Python/lldbsuite/test/tools/lldb-server/.clang-format packages/Python/lldbsuite/tes

[Lldb-commits] [PATCH] D30286: Implement QPassSignals GDB package in lldb-server

2017-02-22 Thread Eugene Zemtsov via Phabricator via lldb-commits
eugene created this revision. eugene added a project: LLDB. Herald added a subscriber: emaste. https://reviews.llvm.org/D30286 Files: include/lldb/Host/common/NativeProcessProtocol.h packages/Python/lldbsuite/test/tools/lldb-server/gdbremote_testcase.py packages/Python/lldbsuite/test/tools/

[Lldb-commits] [PATCH] D30286: Implement QPassSignals GDB package in lldb-server

2017-02-23 Thread Eugene Zemtsov via Phabricator via lldb-commits
eugene updated this revision to Diff 89575. eugene edited the summary of this revision. eugene added a comment. Herald added subscribers: srhines, danalbert. Addressing code review comments. https://reviews.llvm.org/D30286 Files: include/lldb/Host/common/NativeProcessProtocol.h packages/Pyt

[Lldb-commits] [PATCH] D30457: [LLDB][MIPS] Core Dump Support

2017-02-28 Thread Eugene Zemtsov via Phabricator via lldb-commits
eugene added inline comments. Comment at: source/Plugins/Process/Utility/RegisterContextFreeBSD_mips64.cpp:31 +// Number of register sets provided by this context. +enum { k_num_register_sets = 1 }; + Here and below why not use constexpr size_t k_num_register_s

[Lldb-commits] [PATCH] D30520: Make LLDB skip server-client roundtrip for signals that don't require any actions

2017-03-01 Thread Eugene Zemtsov via Phabricator via lldb-commits
eugene created this revision. If QPassSignals packaet is supported by lldb-server, lldb-client will utilize it and ask the server to ignore signals that don't require stops or notifications. Such signals will be immediately re-injected into inferior to continue normal execution. https://revie

[Lldb-commits] [PATCH] D30520: Make LLDB skip server-client roundtrip for signals that don't require any actions

2017-03-02 Thread Eugene Zemtsov via Phabricator via lldb-commits
eugene updated this revision to Diff 90407. eugene added a comment. Addressing code review commends, and moving a signal filtering method to the base Process class. https://reviews.llvm.org/D30520 Files: include/lldb/Target/Process.h include/lldb/Target/UnixSignals.h source/Plugins/Proce

[Lldb-commits] [PATCH] D30520: Make LLDB skip server-client roundtrip for signals that don't require any actions

2017-03-02 Thread Eugene Zemtsov via Phabricator via lldb-commits
eugene updated this revision to Diff 90424. eugene marked an inline comment as done. eugene added a comment. Added comment to UnixSignals::m_version. Still thinking about the best way to test it all. https://reviews.llvm.org/D30520 Files: include/lldb/Target/Process.h include/lldb/Target/U

[Lldb-commits] [PATCH] D30520: Make LLDB skip server-client roundtrip for signals that don't require any actions

2017-03-02 Thread Eugene Zemtsov via Phabricator via lldb-commits
eugene added inline comments. Comment at: source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp:3766-3776 + llvm::SmallVector signals_to_ignore; + int32_t signo = m_unix_signals_sp->GetFirstSignalNumber(); + while (signo != LLDB_INVALID_SIGNAL_NUMBER) { +bool should_ignor

[Lldb-commits] [PATCH] D30520: Make LLDB skip server-client roundtrip for signals that don't require any actions

2017-03-03 Thread Eugene Zemtsov via Phabricator via lldb-commits
eugene updated this revision to Diff 90563. eugene added a comment. Herald added a subscriber: mgorny. Moved signal filtering to UnixSignals and added unit tests for UnixSignals class. https://reviews.llvm.org/D30520 Files: include/lldb/Target/Process.h include/lldb/Target/UnixSignals.h

[Lldb-commits] [PATCH] D30520: Make LLDB skip server-client roundtrip for signals that don't require any actions

2017-03-06 Thread Eugene Zemtsov via Phabricator via lldb-commits
eugene updated this revision to Diff 90755. eugene added a comment. Addressing review comments on SignalTests and getting rid of dependency on DidLaunch and WillResume https://reviews.llvm.org/D30520 Files: include/lldb/Target/Process.h include/lldb/Target/UnixSignals.h source/Plugins/Pr

[Lldb-commits] [PATCH] D30520: Make LLDB skip server-client roundtrip for signals that don't require any actions

2017-03-06 Thread Eugene Zemtsov via Phabricator via lldb-commits
eugene marked 3 inline comments as done. eugene added a comment. Addressing review comments. Comment at: unittests/Signals/UnixSignalsTest.cpp:43 + +#define ASSERT_EQ_ARRAYS(expected, observed) \ + AssertEqArrays((expected), (observed), __FIL

[Lldb-commits] [PATCH] D30520: Make LLDB skip server-client roundtrip for signals that don't require any actions

2017-03-06 Thread Eugene Zemtsov via Phabricator via lldb-commits
eugene added inline comments. Comment at: include/lldb/Target/Process.h:3148 + virtual Error UpdateAutomaticSignalFiltering(); + clayborg wrote: > Can we remove this and only have it in ProcessGDBRemote? Then we just call it > when we need to in ProcessGDBRem

[Lldb-commits] [PATCH] D30520: Make LLDB skip server-client roundtrip for signals that don't require any actions

2017-03-06 Thread Eugene Zemtsov via Phabricator via lldb-commits
eugene added a comment. UnixSignals is a nice self contained class that already does 99% of the work (see UnixSignals::GetFilteredSignals). I don't think we should have it call anybody. Only process knows when it is the right time to send actual QPassSignals packet, there is not need to someho

[Lldb-commits] [PATCH] D30520: Make LLDB skip server-client roundtrip for signals that don't require any actions

2017-03-07 Thread Eugene Zemtsov via Phabricator via lldb-commits
eugene updated this revision to Diff 90921. eugene added a comment. Rename ASSERT_EQ_ARRAYS to EXPECT_EQ_ARRAYS https://reviews.llvm.org/D30520 Files: include/lldb/Target/Process.h include/lldb/Target/UnixSignals.h source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp sourc

[Lldb-commits] [PATCH] D30702: Fix remaining threading issues in Log.h

2017-03-07 Thread Eugene Zemtsov via Phabricator via lldb-commits
eugene added inline comments. Comment at: include/lldb/Utility/Log.h:152 - Flags &GetOptions(); + const Flags GetOptions() const; Seems like const on return value is not really needed. Comment at: include/lldb/Utility/Log.h:163 + std::at

[Lldb-commits] [PATCH] D30520: Make LLDB skip server-client roundtrip for signals that don't require any actions

2017-03-07 Thread Eugene Zemtsov via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL297231: Make LLDB skip server-client roundtrip for signals that don't require any… (authored by eugene). Changed prior to commit: https://reviews.llvm.org/D30520?vs=90921&id=90930#toc Repository: rL

[Lldb-commits] [PATCH] D30942: Remove some ProcFileReader occurences

2017-03-14 Thread Eugene Zemtsov via Phabricator via lldb-commits
eugene accepted this revision. eugene added inline comments. Comment at: source/Host/linux/Host.cpp:167 + (llvm::Twine("/proc/") + llvm::Twine(pid) + "/exe").toVector(ProcExe); + llvm::SmallString<0> ExePath; + ExePath.assign(PATH_MAX, '\0'); std::string? Do w

[Lldb-commits] [PATCH] D62168: [DynamicLoader] Make sure we always set the rendezvous breakpoint

2019-05-21 Thread Eugene Zemtsov via Phabricator via lldb-commits
eugene accepted this revision. eugene added a comment. This revision is now accepted and ready to land. Makes sense to me. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D62168/new/ https://reviews.llvm.org/D62168 _