johanengelen added a comment.

In, @johanengelen wrote:

>   extern "C" char* lldbd_demangle(size_t length, const char* mangled) {
>      if (mangled == "_D3fooFZv") // pseudo code
>          return "void foo()";
>      else
>          return mangled;
>   }

Actually, this is not the correct interface is it? The returned pointer should 
point to newly allocated memory using `malloc`, right?
Good to document that somewhere.

lldb-commits mailing list

Reply via email to