You should ask on a clang list for a 100% correct answer, but I am pretty sure clang does not support macro information. You can get somewhat the same result by building clang modules and importing them into lldb. But you can't build modules for C++ yet, so you can only do this for C & ObjC programs.
Jim > On Feb 9, 2016, at 9:08 AM, Ewan Crawford via lldb-dev > <lldb-dev@lists.llvm.org> wrote: > > Hiya everyone, > > I was wondering if anyone knows about the status of inspecting macros for > objects compiled with clang. > Using either the DWARF 5 .debug_macro section or DWARF 4 .debug_macinfo > section. > > We can debug macros from gcc with -g3, but I can't seem to get clang to emit > anything lldb can use. > Neither -gdwarf-4 or -gdwarf-5 look like they emit the necessary debug info. > > Am I just compiling incorrectly or is clang(or lldb) missing some > functionality? > > Cheers, > Ewan > > -- > Ewan Crawford > Software Engineer > Codeplay Software Ltd > Level C, Argyle House > 3 Lady Lawson Street, Edinburgh, EH3 9DR > Tel: 0131 466 0503 > Fax: 0131 557 6600 > Website: http://www.codeplay.com > Twitter: https://twitter.com/codeplaysoft > > This email and any attachments may contain confidential and /or privileged > information and is for use by the addressee only. If you are not the intended > recipient, please notify Codeplay Software Ltd immediately and delete the > message from your computer. You may not copy or forward it,or use or disclose > its contents to any other person. Any views or other information in this > message which do not relate to our business are not authorized by Codeplay > software Ltd, nor does this message form part of any contract unless so > stated. > As internet communications are capable of data corruption Codeplay Software > Ltd does not accept any responsibility for any changes made to this message > after it was sent. Please note that Codeplay Software Ltd does not accept any > liability or responsibility for viruses and it is your responsibility to scan > any attachments. > Company registered in England and Wales, number: 04567874 > Registered office: 81 Linkfield Street, Redhill RH1 6BY > > _______________________________________________ > lldb-dev mailing list > lldb-dev@lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev _______________________________________________ lldb-dev mailing list lldb-dev@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev