[lldb-dev] No C++ language runtime plug-in?

Kaylor, Andrew andrew.kaylor at intel.com
Tue Dec 11 16:26:22 PST 2012


When I remove all the "#if defined (__APPLE__)" lines it compiles, but I get unresolved externals, so I guess there are a few other build files changes that would be required.

If I move just the ItaniumABILanguageRuntime lines outside the 'if defined' blocks, that compiles and links and fixes the problem with the dynamic values test case.

We had talked about maybe being able to reuse most of the ItaniumABI implementation for a cpp language runtime, but hadn't gotten as far as seeing that it would all just work.

I'm sure there's a very interesting back story as to why 'Itanium ABI' is the thing that gets used everywhere....

Thanks for the help!

-Andy

-----Original Message-----
From: Greg Clayton [mailto:gclayton at apple.com] 
Sent: Tuesday, December 11, 2012 3:28 PM
To: Kaylor, Andrew
Cc: lldb-dev at cs.uiuc.edu
Subject: Re: [lldb-dev] No C++ language runtime plug-in?

This is an easy fix. In lldb.cpp the inclusion and init/terminate routines for the itanium plug-in are hidden in "#if defined (__APPLE__)" and it shouldn't be.

Andrew: please try and remove the "#if defined (__APPLE__)" from the following plug-ins so that all systems load them. Can you try and remove all instances of "#if defined (__APPLE__)" from lldb.cpp and see if this compiles?

They should all compile and be available on other systems so that you can remote debug to MacOSX. Let us know if there are any issues.



On Dec 11, 2012, at 2:08 PM, "Kaylor, Andrew" <andrew.kaylor at intel.com> wrote:

> I have been investigating the failure of the 'DynamicValueTestCase.test_get_dynamic_value_with_dwarf' test on Linux, and to my surprise it seems to be failing because LLDB doesn't find a C++ language runtime plug-in on Linux.  I see that there is an ItaniumABI plug-in for C++, but no language runtimes get used on my x86_64-based Linux system.  I'm guessing that on Mac OS's this is handled by the ObjectiveC V2 plugin, but that doesn't get used on Linux either.
>  
> Anyway, I was about to file an issue in Bugzilla to implement a C++ language runtime plug-in, but it seemed like a good idea to solicit input on history, design decisions and such first.
>  
> Does anyone know anything about this?
>  
> Thanks,
> Andy
> _______________________________________________
> lldb-dev mailing list
> lldb-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev





More information about the lldb-dev mailing list