[Lldb-commits] [PATCH] D59015: [lldb-mi] Include full path in the -data-disassemble response

2019-03-25 Thread Hafiz Abid Qadeer via Phabricator via lldb-commits
abidh accepted this revision. abidh added a comment. This revision is now accepted and ready to land. Looks ok but I would like a testcase to go with the change. Repository: rLLDB LLDB CHANGES SINCE LAST ACTION https://reviews.llvm.org/D59015/new/ https://reviews.llvm.org/D59015 ___

[Lldb-commits] [PATCH] D55653: [lldb-mi] Check raw pointers before passing them to std::string ctor/assignment

2019-02-25 Thread Hafiz Abid Qadeer via Phabricator via lldb-commits
abidh accepted this revision. abidh added a comment. This revision is now accepted and ready to land. The lldb-mi bits look ok to me. Comment at: tools/lldb-mi/MIUtilString.h:36 va_list vArgs); + static bool IsAllValidAlphaAndNumeric(cons

[Lldb-commits] [PATCH] D39969: Set error status in ObjectFile::LoadInMemory if it is not set

2017-11-15 Thread Hafiz Abid Qadeer via Phabricator via lldb-commits
abidh added inline comments. Comment at: source/Symbol/ObjectFile.cpp:695 + "One or more breakpoints intersect section '%s'", + section_sp->GetName().AsCString()); return error; If WriteMemory is not setting the error in some ca

[Lldb-commits] [PATCH] D37154: lldb-mi: -var-update can hang when traversing complex types with pointers

2017-08-30 Thread Hafiz Abid Qadeer via Phabricator via lldb-commits
abidh added a comment. This check used to be there above the loop and was removed when you reported that changes in pointers are not being tracked in http://lists.llvm.org/pipermail/lldb-dev/2017-May/012428.html I think putting it on individual child is probably good enough compromise. https:

[Lldb-commits] [PATCH] D28808: Fix a bug where lldb does not respect the packet size.

2017-01-22 Thread Hafiz Abid Qadeer via Phabricator via lldb-commits
abidh updated this revision to Diff 85280. abidh added a comment. Use GetLogIfAnyCategoryIsSet as advised in comments. https://reviews.llvm.org/D28808 Files: source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp Index: source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp

[Lldb-commits] [PATCH] D28944: Provide option to set pc of the file loaded in memory.

2017-01-22 Thread Hafiz Abid Qadeer via Phabricator via lldb-commits
abidh updated this revision to Diff 85278. abidh added a comment. Added a check for case when entry address is not valid. https://reviews.llvm.org/D28944 Files: include/lldb/Core/Module.h include/lldb/Symbol/ObjectFile.h source/Commands/CommandObjectTarget.cpp source/Core/Module.cpp s

[Lldb-commits] [PATCH] D28808: Fix a bug where lldb does not respect the packet size.

2017-01-20 Thread Hafiz Abid Qadeer via Phabricator via lldb-commits
abidh marked an inline comment as done. abidh added a comment. Greg, any further comment on this patch. https://reviews.llvm.org/D28808 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-com

[Lldb-commits] [PATCH] D28944: Provide option to set pc of the file loaded in memory.

2017-01-20 Thread Hafiz Abid Qadeer via Phabricator via lldb-commits
abidh created this revision. This commit adds an option to set PC to the entry point of the file loaded using "target module load" command. In https://reviews.llvm.org/D28804, Greg asked me to separate this part under a different option. https://reviews.llvm.org/D28944 Files: include/lldb/C

[Lldb-commits] [PATCH] D28804: Provide a substitute to load command of gdb

2017-01-19 Thread Hafiz Abid Qadeer via Phabricator via lldb-commits
abidh closed this revision. abidh added a comment. Committed in 292499. Removed this bit "set PC to its entry address." before committing as it is not being done now. https://reviews.llvm.org/D28804 ___ lldb-commits mailing list lldb-commits@lists.

[Lldb-commits] [PATCH] D28804: Provide a substitute to load command of gdb

2017-01-19 Thread Hafiz Abid Qadeer via Phabricator via lldb-commits
abidh updated this revision to Diff 84979. abidh added a comment. Changed the name of the option. Added LoadInMemory function to Module and ObjectFile class and moved the functionality of writing to memory there. Removed part which set the pc. https://reviews.llvm.org/D28804 Files: include/

[Lldb-commits] [PATCH] D28808: Fix a bug where lldb does not respect the packet size.

2017-01-18 Thread Hafiz Abid Qadeer via Phabricator via lldb-commits
abidh marked 2 inline comments as done. abidh added inline comments. Comment at: source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp:4006-4007 +if (log) + log->Warning("Packet size is too small." + "LLDB may face problems while writing me

[Lldb-commits] [PATCH] D28808: Fix a bug where lldb does not respect the packet size.

2017-01-18 Thread Hafiz Abid Qadeer via Phabricator via lldb-commits
abidh updated this revision to Diff 84857. abidh added a comment. Updated log calls as advised. https://reviews.llvm.org/D28808 Files: source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp Index: source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp ===

[Lldb-commits] [PATCH] D28808: Fix a bug where lldb does not respect the packet size.

2017-01-18 Thread Hafiz Abid Qadeer via Phabricator via lldb-commits
abidh added inline comments. Comment at: source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp:3999 + // time, we take a maximum guess here. + stub_max_size -= 32 + 32 + 6; m_max_memory_size = stub_max_size; clayborg wrote: > You need to check "

[Lldb-commits] [PATCH] D28808: Fix a bug where lldb does not respect the packet size.

2017-01-18 Thread Hafiz Abid Qadeer via Phabricator via lldb-commits
abidh updated this revision to Diff 84817. abidh added a comment. Added the check to avoid integer underflow. https://reviews.llvm.org/D28808 Files: source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp Index: source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp =

[Lldb-commits] [PATCH] D28808: Fix a bug where lldb does not respect the packet size.

2017-01-17 Thread Hafiz Abid Qadeer via Phabricator via lldb-commits
abidh created this revision. LLDB was using packet size advertised by the target as the max memory size to write in one go. It is wrong because packets have other overhead apart from memory payload. Also memory transferred through 'm' and 'M' packets needs 2 bytes in packet to transfer 1 of mem

[Lldb-commits] [PATCH] D28804: Provide a substitute to load command of gdb

2017-01-17 Thread Hafiz Abid Qadeer via Phabricator via lldb-commits
abidh created this revision. For bare-metal targets, lldb was missing a command like 'load' in gdb which can be used to create executable image on the target. This was discussed in http://lists.llvm.org/pipermail/lldb-dev/2016-December/011752.html This diff adds an option to "target module load

[Lldb-commits] [PATCH] D24711: [lldb-mi] Fix implementation for a few mi commands

2017-01-05 Thread Hafiz Abid Qadeer via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL291104: [lldb-mi] Fix implementation for a few mi commands (authored by abidh). Changed prior to commit: https://reviews.llvm.org/D24711?vs=82654&id=83225#toc Repository: rL LLVM https://reviews.llv

[Lldb-commits] [PATCH] D24711: [lldb-mi] Fix implementation for a few mi commands

2017-01-04 Thread Hafiz Abid Qadeer via Phabricator via lldb-commits
abidh added a comment. > What do I do next? Could you help me commit and push this? since I don't have > write access. I will commit it for you. https://reviews.llvm.org/D24711 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists

[Lldb-commits] [PATCH] D24711: [lldb-mi] Fix implementation for a few mi commands

2017-01-03 Thread Hafiz Abid Qadeer via Phabricator via lldb-commits
abidh accepted this revision. abidh added a comment. Looks good. Comment at: packages/Python/lldbsuite/test/tools/lldb-mi/main.cpp:22 { -int a = 10; +int a = 10; + This declaration looks redundant. Comment at: tools/lldb-mi/MICmdCmd

[Lldb-commits] [PATCH] D27759: Fix build for mingw.

2016-12-15 Thread Hafiz Abid Qadeer via Phabricator via lldb-commits
abidh accepted this revision. abidh added a reviewer: abidh. abidh marked an inline comment as done. abidh added a comment. This revision is now accepted and ready to land. Accepted in email. https://reviews.llvm.org/D27759 ___ lldb-commits mailing

[Lldb-commits] [PATCH] D27759: Fix build for mingw.

2016-12-15 Thread Hafiz Abid Qadeer via Phabricator via lldb-commits
abidh updated this revision to Diff 81576. abidh added a comment. Replaced /D with -D as per comments. https://reviews.llvm.org/D27759 Files: cmake/LLDBDependencies.cmake cmake/modules/AddLLDB.cmake cmake/modules/LLDBConfig.cmake include/lldb/Host/windows/windows.h source/API/SystemIn

[Lldb-commits] [PATCH] D27759: Fix build for mingw.

2016-12-15 Thread Hafiz Abid Qadeer via Phabricator via lldb-commits
abidh added a comment. In https://reviews.llvm.org/D27759#622332, @labath wrote: > Yeah, I meant using it everywhere as a generic "am I on windows, regardless > of the compiler" check. (Assuming Zach is fine with that) OK. If Zachary is fine with that then I can do that in a separate commit.

[Lldb-commits] [PATCH] D27759: Fix build for mingw.

2016-12-14 Thread Hafiz Abid Qadeer via Phabricator via lldb-commits
abidh added a comment. > BTW, I am curious, are you planning on building python with mingw as well? If > you are, I'd be interested in knowing how that works out. I would like to do it but have not done it yet. I will keep you posted. Comment at: cmake/modules/LLDBConfig.cmak

[Lldb-commits] [PATCH] D27759: Fix build for mingw.

2016-12-14 Thread Hafiz Abid Qadeer via Phabricator via lldb-commits
abidh created this revision. abidh added reviewers: labath, zturner. abidh added a subscriber: lldb-commits. Herald added subscribers: mgorny, ki.stfu. I was building lldb using cross mingw-w64 toolchain on Linux and observed some issues. This is first patch in the series to fix that build. It mo

[Lldb-commits] [PATCH] D27707: Remove code needed for supporting old VS versions.

2016-12-14 Thread Hafiz Abid Qadeer via Phabricator via lldb-commits
abidh accepted this revision. abidh added a reviewer: abidh. abidh added a comment. This revision is now accepted and ready to land. Accepted on email. https://reviews.llvm.org/D27707 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://

[Lldb-commits] [PATCH] D27707: Remove code needed for supporting old VS versions.

2016-12-13 Thread Hafiz Abid Qadeer via Phabricator via lldb-commits
abidh created this revision. abidh added a reviewer: zturner. abidh added a subscriber: lldb-commits. This code was probably needed to support VS2013 and is not needed now. I have built it with VS and mingw. Ok to remove it? https://reviews.llvm.org/D27707 Files: include/lldb/Host/windows/Po