[Lldb-commits] [PATCH] D39681: Implement core dump debugging for PPC64le

2017-11-06 Thread Alexandre Yukio Yamashita via Phabricator via lldb-commits
alexandreyy created this revision. Herald added subscribers: kbarton, mgorny, nemanjai. Implement core dump debugging for PPC64le. https://reviews.llvm.org/D39681 Files: source/Plugins/Process/Utility/CMakeLists.txt source/Plugins/Process/Utility/RegisterContextPOSIX_ppc64le.cpp source/Pl

[Lldb-commits] [PATCH] D39681: Implement core dump debugging for PPC64le

2017-11-06 Thread Pavel Labath via Phabricator via lldb-commits
labath added a comment. We were quite successful in the past in creating tiny core files to test these register contexts. Could you take a look at `test/testcases/functionalities/postmortem/elf-core/make-core.sh` to see if you can do the same for your architecture? Comment a

[Lldb-commits] [PATCH] D39681: Implement core dump debugging for PPC64le

2017-11-06 Thread Greg Clayton via Phabricator via lldb-commits
clayborg added inline comments. Comment at: source/Plugins/Process/elf-core/ThreadElfCore.h:183 lldb_private::DataExtractor m_vregset_data; + lldb_private::DataExtractor m_vsregset_data; /* For PPC VSX registers. */ labath wrote: > gpregset and fpregset sou

[Lldb-commits] [PATCH] D39681: Implement core dump debugging for PPC64le

2017-11-09 Thread Alexandre Yukio Yamashita via Phabricator via lldb-commits
alexandreyy updated this revision to Diff 14. alexandreyy added a comment. Update according to reviews. https://reviews.llvm.org/D39681 Files: packages/Python/lldbsuite/test/functionalities/postmortem/elf-core/TestLinuxCore.py packages/Python/lldbsuite/test/functionalities/postmortem/

[Lldb-commits] [PATCH] D39681: Implement core dump debugging for PPC64le

2017-11-09 Thread Alexandre Yukio Yamashita via Phabricator via lldb-commits
alexandreyy added a comment. Thanks for all the reviews @labath and @clayborg. I changed the code to use the DenseMap and added the files for testing. The backtrace is not working properly yet, It is showing all frames, just the current. Am I missing something? https://reviews.llvm.org/D39681

[Lldb-commits] [PATCH] D39681: Implement core dump debugging for PPC64le

2017-11-09 Thread Pavel Labath via Phabricator via lldb-commits
labath added a comment. I'm not sure what's the problem with backtracing without more info, but the nice thing about core files is that you can open a ppc and x86 one side by side and see how for do you get before things start to diverge. The interesting commands you can start with are "image l

[Lldb-commits] [PATCH] D39681: Implement core dump debugging for PPC64le

2017-11-09 Thread Alexandre Yukio Yamashita via Phabricator via lldb-commits
alexandreyy updated this revision to Diff 122239. alexandreyy marked an inline comment as done. alexandreyy added a comment. Moved core enums to header file. https://reviews.llvm.org/D39681 Files: packages/Python/lldbsuite/test/functionalities/postmortem/elf-core/TestLinuxCore.py packages

[Lldb-commits] [PATCH] D39681: Implement core dump debugging for PPC64le

2017-11-09 Thread Alexandre Yukio Yamashita via Phabricator via lldb-commits
alexandreyy added a comment. In https://reviews.llvm.org/D39681#920349, @labath wrote: > I'm not sure what's the problem with backtracing without more info, but the > nice thing about core files is that you can open a ppc and x86 one side by > side and see how for do you get before things start

[Lldb-commits] [PATCH] D39681: Implement core dump debugging for PPC64le

2017-11-09 Thread Pavel Labath via Phabricator via lldb-commits
labath added a comment. Thank you. I've just noticed a couple of details we should address. Comment at: source/Plugins/Process/elf-core/elf-core-enums.h:1 +//===-- ProcessElfCore.cpp --*- C++ -*-===// +// Please update the f

[Lldb-commits] [PATCH] D39681: Implement core dump debugging for PPC64le

2017-11-09 Thread Alexandre Yukio Yamashita via Phabricator via lldb-commits
alexandreyy updated this revision to Diff 122265. alexandreyy added a comment. Changed namespaces in core enums. https://reviews.llvm.org/D39681 Files: packages/Python/lldbsuite/test/functionalities/postmortem/elf-core/TestLinuxCore.py packages/Python/lldbsuite/test/functionalities/postmo

[Lldb-commits] [PATCH] D39681: Implement core dump debugging for PPC64le

2017-11-09 Thread Alexandre Yukio Yamashita via Phabricator via lldb-commits
alexandreyy updated this revision to Diff 122276. alexandreyy added a comment. Fixed test identation https://reviews.llvm.org/D39681 Files: packages/Python/lldbsuite/test/functionalities/postmortem/elf-core/TestLinuxCore.py packages/Python/lldbsuite/test/functionalities/postmortem/elf-cor

[Lldb-commits] [PATCH] D39681: Implement core dump debugging for PPC64le

2017-11-10 Thread Pavel Labath via Phabricator via lldb-commits
labath accepted this revision. labath added a comment. This revision is now accepted and ready to land. Looks good, thank you. Just please make sure you change the file name at top of the new header file and add inclusion guards. Comment at: source/Plugins/Process/elf-core/elf

[Lldb-commits] [PATCH] D39681: Implement core dump debugging for PPC64le

2017-11-10 Thread Alexandre Yukio Yamashita via Phabricator via lldb-commits
alexandreyy updated this revision to Diff 122423. alexandreyy added a comment. Added inclusion guards in elf-core-enums.h https://reviews.llvm.org/D39681 Files: packages/Python/lldbsuite/test/functionalities/postmortem/elf-core/TestLinuxCore.py packages/Python/lldbsuite/test/functionaliti

[Lldb-commits] [PATCH] D39681: Implement core dump debugging for PPC64le

2017-11-10 Thread Alexandre Yukio Yamashita via Phabricator via lldb-commits
alexandreyy added a comment. In https://reviews.llvm.org/D39681#921620, @labath wrote: > Looks good, thank you. Just please make sure you change the file name at top > of the new header file and add inclusion guards. Done. Could you commit it? I don't have commit access. https://reviews.llvm

[Lldb-commits] [PATCH] D39681: Implement core dump debugging for PPC64le

2017-11-14 Thread Alexandre Yukio Yamashita via Phabricator via lldb-commits
alexandreyy updated this revision to Diff 122872. alexandreyy added a comment. Fixed backtrace issue. https://reviews.llvm.org/D39681 Files: packages/Python/lldbsuite/test/functionalities/postmortem/elf-core/TestLinuxCore.py packages/Python/lldbsuite/test/functionalities/postmortem/elf-co

[Lldb-commits] [PATCH] D39681: Implement core dump debugging for PPC64le

2017-11-14 Thread Alexandre Yukio Yamashita via Phabricator via lldb-commits
alexandreyy added a comment. In https://reviews.llvm.org/D39681#920349, @labath wrote: > I'm not sure what's the problem with backtracing without more info, but the > nice thing about core files is that you can open a ppc and x86 one side by > side and see how for do you get before things start

[Lldb-commits] [PATCH] D39681: Implement core dump debugging for PPC64le

2017-11-14 Thread Alexandre Yukio Yamashita via Phabricator via lldb-commits
alexandreyy updated this revision to Diff 122879. alexandreyy added a comment. Removed issue note from commit message. https://reviews.llvm.org/D39681 Files: packages/Python/lldbsuite/test/functionalities/postmortem/elf-core/TestLinuxCore.py packages/Python/lldbsuite/test/functionalities/

[Lldb-commits] [PATCH] D39681: Implement core dump debugging for PPC64le

2017-11-14 Thread Kamil Rytarowski via Phabricator via lldb-commits
krytarowski added inline comments. Comment at: source/Plugins/Process/elf-core/elf-core-enums.h:14 +/// Core files PT_NOTE segment descriptor types +enum { + NT_PRSTATUS = 1, No namespace here? https://reviews.llvm.org/D39681 ___

[Lldb-commits] [PATCH] D39681: Implement core dump debugging for PPC64le

2017-11-14 Thread Alexandre Yukio Yamashita via Phabricator via lldb-commits
alexandreyy added inline comments. Comment at: source/Plugins/Process/elf-core/elf-core-enums.h:14 +/// Core files PT_NOTE segment descriptor types +enum { + NT_PRSTATUS = 1, krytarowski wrote: > No namespace here? I think these constants are used for multiple O

[Lldb-commits] [PATCH] D39681: Implement core dump debugging for PPC64le

2017-11-14 Thread Kamil Rytarowski via Phabricator via lldb-commits
krytarowski added inline comments. Comment at: source/Plugins/Process/elf-core/elf-core-enums.h:14 +/// Core files PT_NOTE segment descriptor types +enum { + NT_PRSTATUS = 1, alexandreyy wrote: > krytarowski wrote: > > No namespace here? > I think these constant

[Lldb-commits] [PATCH] D39681: Implement core dump debugging for PPC64le

2017-11-14 Thread Alexandre Yukio Yamashita via Phabricator via lldb-commits
alexandreyy added inline comments. Comment at: source/Plugins/Process/elf-core/elf-core-enums.h:14 +/// Core files PT_NOTE segment descriptor types +enum { + NT_PRSTATUS = 1, krytarowski wrote: > alexandreyy wrote: > > krytarowski wrote: > > > No namespace here?

[Lldb-commits] [PATCH] D39681: Implement core dump debugging for PPC64le

2017-11-14 Thread Kamil Rytarowski via Phabricator via lldb-commits
krytarowski added inline comments. Comment at: source/Plugins/Process/elf-core/elf-core-enums.h:14 +/// Core files PT_NOTE segment descriptor types +enum { + NT_PRSTATUS = 1, alexandreyy wrote: > krytarowski wrote: > > alexandreyy wrote: > > > krytarowski wrote:

[Lldb-commits] [PATCH] D39681: Implement core dump debugging for PPC64le

2017-11-15 Thread Pavel Labath via Phabricator via lldb-commits
labath added inline comments. Comment at: source/Plugins/Process/elf-core/elf-core-enums.h:14 +/// Core files PT_NOTE segment descriptor types +enum { + NT_PRSTATUS = 1, krytarowski wrote: > alexandreyy wrote: > > krytarowski wrote: > > > alexandreyy wrote: > >

[Lldb-commits] [PATCH] D39681: Implement core dump debugging for PPC64le

2017-11-15 Thread Pavel Labath via Phabricator via lldb-commits
labath added a comment. Also, I have trouble downloading the core file from phabricator. Alexandre, can you sent them to me directly? https://reviews.llvm.org/D39681 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cg

[Lldb-commits] [PATCH] D39681: Implement core dump debugging for PPC64le

2017-11-15 Thread Kamil Rytarowski via Phabricator via lldb-commits
krytarowski added inline comments. Comment at: source/Plugins/Process/elf-core/elf-core-enums.h:14 +/// Core files PT_NOTE segment descriptor types +enum { + NT_PRSTATUS = 1, labath wrote: > krytarowski wrote: > > alexandreyy wrote: > > > krytarowski wrote: > >

[Lldb-commits] [PATCH] D39681: Implement core dump debugging for PPC64le

2017-11-16 Thread Alexandre Yukio Yamashita via Phabricator via lldb-commits
alexandreyy updated this revision to Diff 123151. alexandreyy added a comment. Herald added a subscriber: JDevlieghere. Removed enums without namespaces. https://reviews.llvm.org/D39681 Files: packages/Python/lldbsuite/test/functionalities/postmortem/elf-core/TestLinuxCore.py packages/Pyt

[Lldb-commits] [PATCH] D39681: Implement core dump debugging for PPC64le

2017-11-16 Thread Alexandre Yukio Yamashita via Phabricator via lldb-commits
alexandreyy added a comment. In https://reviews.llvm.org/D39681#925864, @labath wrote: > Also, I have trouble downloading the core file from phabricator. Alexandre, > can you sent them to me directly? Sent the test files by e-mail. Thanks. https://reviews.llvm.org/D39681 _

[Lldb-commits] [PATCH] D39681: Implement core dump debugging for PPC64le

2017-11-16 Thread Pavel Labath via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL318399: Implement core dump debugging for PPC64le (authored by labath). Changed prior to commit: https://reviews.llvm.org/D39681?vs=123151&id=123166#toc Repository: rL LLVM https://reviews.llvm.org/

[Lldb-commits] [PATCH] D39681: Implement core dump debugging for PPC64le

2017-11-16 Thread John Baldwin via Phabricator via lldb-commits
bsdjhb added inline comments. Comment at: source/Plugins/Process/elf-core/elf-core-enums.h:14 +/// Core files PT_NOTE segment descriptor types +enum { + NT_PRSTATUS = 1, krytarowski wrote: > labath wrote: > > krytarowski wrote: > > > alexandreyy wrote: > > > > k