[Lldb-commits] [PATCH] D41702: Add SysV Abi for PPC64le

2018-01-22 Thread Pavel Labath via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL323100: Add SysV Abi for PPC64le (authored by labath, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.llvm.org/D41702?vs=130236&id=130860#toc Repositor

[Lldb-commits] [PATCH] D41702: Add SysV Abi for PPC64le

2018-01-19 Thread Alexandre Yukio Yamashita via Phabricator via lldb-commits
alexandreyy added a comment. In https://reviews.llvm.org/D41702#981651, @alexandreyy wrote: > In https://reviews.llvm.org/D41702#980893, @davide wrote: > > > Wait a minute. Is there any reason why we can't add tests now? > > > Thanks. > We are running the default tests of the lldb suite. > Curr

[Lldb-commits] [PATCH] D41702: Add SysV Abi for PPC64le

2018-01-19 Thread Davide Italiano via Phabricator via lldb-commits
davide accepted this revision. davide added a comment. This revision is now accepted and ready to land. lgtm, feel free to go ahead. https://reviews.llvm.org/D41702 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-

[Lldb-commits] [PATCH] D41702: Add SysV Abi for PPC64le

2018-01-19 Thread Alexandre Yukio Yamashita via Phabricator via lldb-commits
alexandreyy added a comment. In https://reviews.llvm.org/D41702#980893, @davide wrote: > Wait a minute. Is there any reason why we can't add tests now? Thanks. We are running the default tests of the lldb suite. Currently, we have 48 failures that we are working on. Could we proceed with this p

[Lldb-commits] [PATCH] D41702: Add SysV Abi for PPC64le

2018-01-19 Thread Alexandre Yukio Yamashita via Phabricator via lldb-commits
alexandreyy added a comment. In https://reviews.llvm.org/D41702#981456, @labath wrote: > Well.. whether this plugin is tested depends on what machine you're running > on. If you're running on a ppc machine, plenty of tests will exercise this > code (TestReturnValue, and pretty much any test doi

[Lldb-commits] [PATCH] D41702: Add SysV Abi for PPC64le

2018-01-19 Thread Pavel Labath via Phabricator via lldb-commits
labath added a comment. Well.. whether this plugin is tested depends on what machine you're running on. If you're running on a ppc machine, plenty of tests will exercise this code (TestReturnValue, and pretty much any test doing expression evaluation). Correct me if I am wrong, but I am assumin

[Lldb-commits] [PATCH] D41702: Add SysV Abi for PPC64le

2018-01-18 Thread Davide Italiano via Phabricator via lldb-commits
davide requested changes to this revision. davide added a comment. This revision now requires changes to proceed. Wait a minute. Is there any reason why we can't add tests now? https://reviews.llvm.org/D41702 ___ lldb-commits mailing list lldb-commi

[Lldb-commits] [PATCH] D41702: Add SysV Abi for PPC64le

2018-01-18 Thread Justin Hibbits via Phabricator via lldb-commits
jhibbits accepted this revision. jhibbits added a comment. Looks fine to me. We should eventually add tests for this, for both endians. https://reviews.llvm.org/D41702 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/

[Lldb-commits] [PATCH] D41702: Add SysV Abi for PPC64le

2018-01-18 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. Thank you for taking the time to do this. @chmeee, do you want to take a quick look at this? https://reviews.llvm.org/D41702 ___ lldb-commits mai

[Lldb-commits] [PATCH] D41702: Add SysV Abi for PPC64le

2018-01-17 Thread Alexandre Yukio Yamashita via Phabricator via lldb-commits
alexandreyy added a comment. In https://reviews.llvm.org/D41702#978836, @clayborg wrote: > Looks nice. Only nit is we probably don't need the m_endian member variable. > See inlined comment. Thanks. I have changed the code to get the byte order. https://reviews.llvm.org/D41702 ___

[Lldb-commits] [PATCH] D41702: Add SysV Abi for PPC64le

2018-01-17 Thread Alexandre Yukio Yamashita via Phabricator via lldb-commits
alexandreyy updated this revision to Diff 130236. alexandreyy added a comment. Removed m_endian variable. https://reviews.llvm.org/D41702 Files: source/Plugins/ABI/SysV-ppc64/ABISysV_ppc64.cpp source/Plugins/ABI/SysV-ppc64/ABISysV_ppc64.h source/Plugins/Process/Utility/RegisterInfos_ppc64

[Lldb-commits] [PATCH] D41702: Add SysV Abi for PPC64le

2018-01-17 Thread Greg Clayton via Phabricator via lldb-commits
clayborg added a comment. Looks nice. Only nit is we probably don't need the m_endian member variable. See inlined comment. Comment at: source/Plugins/ABI/SysV-ppc64/ABISysV_ppc64.h:114 + + lldb::ByteOrder m_endian; }; Most other code uses "m_byte_order" as

[Lldb-commits] [PATCH] D41702: Add SysV Abi for PPC64le

2018-01-17 Thread Alexandre Yukio Yamashita via Phabricator via lldb-commits
alexandreyy updated this revision to Diff 130180. alexandreyy added a comment. Herald added a subscriber: JDevlieghere. Merged ppc64le and ppc64 plugins. https://reviews.llvm.org/D41702 Files: source/Plugins/ABI/SysV-ppc64/ABISysV_ppc64.cpp source/Plugins/ABI/SysV-ppc64/ABISysV_ppc64.h so

[Lldb-commits] [PATCH] D41702: Add SysV Abi for PPC64le

2018-01-15 Thread Alexandre Yukio Yamashita via Phabricator via lldb-commits
alexandreyy added a comment. Thanks, @labath and @chmeee . I will do the merge and send the update soon. In https://reviews.llvm.org/D41702#975873, @chmeee wrote: > In https://reviews.llvm.org/D41702#972009, @labath wrote: > > > In https://reviews.llvm.org/D41702#971076, @jhibbits wrote: > > > >

[Lldb-commits] [PATCH] D41702: Add SysV Abi for PPC64le

2018-01-15 Thread Pavel Labath via Phabricator via lldb-commits
labath requested changes to this revision. labath added a comment. This revision now requires changes to proceed. Thank you for looking at this @chmeee. @alexandreyy, could you update this plugin to handle big-endian as well, and then delete the old plugin? https://reviews.llvm.org/D41702 __

[Lldb-commits] [PATCH] D41702: Add SysV Abi for PPC64le

2018-01-14 Thread Justin Hibbits via Phabricator via lldb-commits
chmeee added a comment. In https://reviews.llvm.org/D41702#972009, @labath wrote: > In https://reviews.llvm.org/D41702#971076, @jhibbits wrote: > > > > @emaste, @jhibbits: do you know what's the state of ppc64 lldb support in > > > freebsd? > > > > It's broken because LLDB doesn't yet handle fun

[Lldb-commits] [PATCH] D41702: Add SysV Abi for PPC64le

2018-01-10 Thread Alexandre Yukio Yamashita via Phabricator via lldb-commits
alexandreyy added a comment. I think the stack frame structure is not correct for the PPC64be plugin. But it is hard to say how bad it is broken and fix the plugin without testing it. The register numbers and stack frame structures are different from the ABI 1.9 to the ABI 2.0. In https://revie

[Lldb-commits] [PATCH] D41702: Add SysV Abi for PPC64le

2018-01-10 Thread Pavel Labath via Phabricator via lldb-commits
labath added a comment. In https://reviews.llvm.org/D41702#971076, @jhibbits wrote: > > @emaste, @jhibbits: do you know what's the state of ppc64 lldb support in > > freebsd? > > It's broken because LLDB doesn't yet handle function descriptors, and I > haven't yet made the effort (ENOTIME) to f

[Lldb-commits] [PATCH] D41702: Add SysV Abi for PPC64le

2018-01-09 Thread Justin Hibbits via Phabricator via lldb-commits
jhibbits added a comment. In https://reviews.llvm.org/D41702#971012, @labath wrote: > Hmm.. that complicates things a bit. How badly is it broken, do you estimate? > Would it be any better than if we just made your new plugin handle the the > big-endian target as well (just a best effort, I'm n

[Lldb-commits] [PATCH] D41702: Add SysV Abi for PPC64le

2018-01-09 Thread Pavel Labath via Phabricator via lldb-commits
labath added subscribers: jhibbits, emaste. labath added a comment. In https://reviews.llvm.org/D41702#970887, @alexandreyy wrote: > Thanks, @labath . > The ABI plugin for PPC64be is not working: https://reviews.llvm.org/D5988 . > It was implemented based on the x86_64 plugin and needs to be fi

[Lldb-commits] [PATCH] D41702: Add SysV Abi for PPC64le

2018-01-09 Thread Alexandre Yukio Yamashita via Phabricator via lldb-commits
alexandreyy added a comment. In https://reviews.llvm.org/D41702#970844, @labath wrote: > In https://reviews.llvm.org/D41702#969294, @hfinkel wrote: > > > In https://reviews.llvm.org/D41702#969179, @labath wrote: > > > > > Is the only difference between ppc64 and ppc64le ABIs in the endianness >

[Lldb-commits] [PATCH] D41702: Add SysV Abi for PPC64le

2018-01-09 Thread Pavel Labath via Phabricator via lldb-commits
labath added a comment. In https://reviews.llvm.org/D41702#969294, @hfinkel wrote: > In https://reviews.llvm.org/D41702#969179, @labath wrote: > > > Is the only difference between ppc64 and ppc64le ABIs in the endianness of > > the values? > > If so, could we make one unified ABI which takes th

[Lldb-commits] [PATCH] D41702: Add SysV Abi for PPC64le

2018-01-06 Thread Hal Finkel via Phabricator via lldb-commits
hfinkel added a comment. In https://reviews.llvm.org/D41702#969179, @labath wrote: > Is the only difference between ppc64 and ppc64le ABIs in the endianness of > the values? > If so, could we make one unified ABI which takes the endianness as an > argument (in the constructor, or as a template

[Lldb-commits] [PATCH] D41702: Add SysV Abi for PPC64le

2018-01-06 Thread Pavel Labath via Phabricator via lldb-commits
labath added a comment. Is the only difference between ppc64 and ppc64le ABIs in the endianness of the values? If so, could we make one unified ABI which takes the endianness as an argument (in the constructor, or as a template argument, or deduces it from target endiannes, ...) ? https://rev

[Lldb-commits] [PATCH] D41702: Add SysV Abi for PPC64le

2018-01-04 Thread Alexandre Yukio Yamashita via Phabricator via lldb-commits
alexandreyy added a comment. Thanks, @clayborg. @labath , Could you commit this patch? https://reviews.llvm.org/D41702 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [PATCH] D41702: Add SysV Abi for PPC64le

2018-01-03 Thread Alexandre Yukio Yamashita via Phabricator via lldb-commits
alexandreyy created this revision. Herald added subscribers: kbarton, mgorny, nemanjai. This patch implements the ABI Plugin for PPC64le. It was based on the ABI for PPC64. It also enables LLDB to evaluate expressions using JIT. https://reviews.llvm.org/D41702 Files: source/API/SystemInitiali