[Lldb-commits] [lldb] [lldb][AIX] Added XCOFF Object File Header for AIX (PR #111814)

Dhruv Srivastava via lldb-commits lldb-commits at lists.llvm.org
Thu Oct 17 09:25:26 PDT 2024


DhruvSrivastavaX wrote:

> This is exactly what I had in mind -- thank you.
> 
> The patch looks mostly good, apart from the inline comments. My main question is about the "dependant modules" parsing code. AFAICT, its not actually functional (and not tested). Is yaml2objs xcoff backend sufficiently developed to create a test for the dependant module functionality? Given that we rely on llvm for parsing that, we don't have to test it extensively, but it would be nice to have at least one test. We could either do that in this patch, or rip out the dependant module functionality, and add it back in another patch -- up to you.

Great. Thanks for your inputs too. 
Yes, I think we can add dependant modules related changes later. I have removed them for now.
About the yaml xcoff testing, 
For a basic test case as this one, it works great! I also tried using obj2yaml and on a compiled executable for a basic .c test case, and then reversing it with yaml2obj and that works fine too. But for the dependant module functionality, I might need to check some more, we can check on that in the later PRs.

On another note, I have a doubt or maybe I am missing something: I am able to run lldb-test successfully on my aix system setup for this new basic xcoff file (where I have the entire aix changes along with a reduced xcoff same as in this PR). 
But lldb-test does not recognize the object file generated by yaml2obj on a linux ppc64 system (where I have only the merged changes and the xcoff changes only present in this PR). Is it not supposed to work that way or am I missing something?
Any suggestions about what can I try would be great! 

https://github.com/llvm/llvm-project/pull/111814


More information about the lldb-commits mailing list