<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">It just says where it is inside the class itself, not what the value of the vtable pointer is:<div class=""><br class=""></div><div class="">0x00006628: TAG_structure_type [112] *<br class=""> AT_containing_type( {0x0000000000006628} )<br class=""> AT_name( "base_type" )<br class=""> AT_byte_size( 0x08 )<br class=""> AT_decl_file( "/private/tmp/main.cpp" )<br class=""> AT_decl_line( 6 )<br class=""><br class="">0x00006634: TAG_member [4] <br class=""> AT_name( "_vptr$base_type" )<br class=""> AT_type( {0x0000000000004a41} ( __vtbl_ptr_type* ) )<br class=""> AT_data_member_location( 0x00 )<br class=""> AT_artificial( true )<br class=""><br class=""><div>Just says “the vtable is at offset zero inside the class”. Not helpful for reading any vtable pointer and trying to figure out which class it belongs to. </div><div><br class=""></div><div>Greg</div><div><br class=""></div><div><blockquote type="cite" class=""><div class="">On Feb 6, 2017, at 2:25 PM, Zachary Turner <<a href="mailto:zturner@google.com" class="">zturner@google.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Doesn't the DWARF have a record for the VTable itself? I know PDB does, you can look up the class name through the VTable debug info record rather than trying to demangle the name.</div><br class=""><div class="gmail_quote"><div dir="ltr" class="">On Mon, Feb 6, 2017 at 2:21 PM Greg Clayton via lldb-dev <<a href="mailto:lldb-dev@lists.llvm.org" class="">lldb-dev@lists.llvm.org</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class="gmail_msg">Yeah, when doing dynamic type resolution, we look at the first pointer inside the pointer and see if it resolves to a virtual table symbol. If it does, we extract the class name from the demangled symbol name and try to look up. GDB does the same thing. All debuggers do AFAIK.<div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">If the DWARF specified the vtable address in the DWARF on the class definition this would help, but without that the only thing we can really do is to try and figure out the class and look it up by name. Also, even if this is added to future DWARF, it doesn’t fix the problem that we have many compilers that don’t have the info so we would still need to do what we do. </div><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">If anyone has any better ideas I am all ears?</div></div><div style="word-wrap:break-word" class="gmail_msg"><div class="gmail_msg"><div class="gmail_msg"><br class="gmail_msg"></div><div class="gmail_msg">Greg</div></div></div><div style="word-wrap:break-word" class="gmail_msg"><div class="gmail_msg"><div class="gmail_msg"><br class="gmail_msg"><div class="gmail_msg"><blockquote type="cite" class="gmail_msg"><div class="gmail_msg">On Feb 6, 2017, at 11:48 AM, Robinson, Paul <<a href="mailto:paul.robinson@sony.com" class="gmail_msg" target="_blank">paul.robinson@sony.com</a>> wrote:</div><br class="gmail_msg m_-3128704471826244692Apple-interchange-newline"><div class="gmail_msg"><div class="m_-3128704471826244692WordSection1 gmail_msg" style="font-family:Menlo-Regular;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif" class="gmail_msg"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)" class="gmail_msg">So is LLDB expecting the name in the DWARF info to match the demangled name of the vtable pointer? The DWARF spec does not really specify what the name of a template instantiation should be, and in particular does not *want* to specify whether it matches any given demangler's opinion of the name.<u class="gmail_msg"></u><u class="gmail_msg"></u></span></div><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif" class="gmail_msg"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)" class="gmail_msg">--paulr<u class="gmail_msg"></u><u class="gmail_msg"></u></span></div><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif" class="gmail_msg"><a name="m_-3128704471826244692__MailEndCompose" class="gmail_msg"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)" class="gmail_msg"><u class="gmail_msg"></u> <u class="gmail_msg"></u></span></a></div><div style="border-style:none none none solid;border-left-color:blue;border-left-width:1.5pt;padding:0in 0in 0in 4pt" class="gmail_msg"><div class="gmail_msg"><div style="border-style:solid none none;border-top-color:rgb(181,196,223);border-top-width:1pt;padding:3pt 0in 0in" class="gmail_msg"><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif" class="gmail_msg"><b class="gmail_msg"><span style="font-size:10pt;font-family:Tahoma,sans-serif" class="gmail_msg">From:</span></b><span style="font-size:10pt;font-family:Tahoma,sans-serif" class="gmail_msg"><span class="gmail_msg m_-3128704471826244692Apple-converted-space"> </span>lldb-dev [<a href="mailto:lldb-dev-bounces@lists.llvm.org" class="gmail_msg" target="_blank">mailto:lldb-dev-bounces@lists.llvm.org</a>]<span class="gmail_msg m_-3128704471826244692Apple-converted-space"> </span><b class="gmail_msg">On Behalf Of<span class="gmail_msg m_-3128704471826244692Apple-converted-space"> </span></b>Greg Clayton via lldb-dev<br class="gmail_msg"><b class="gmail_msg">Sent:</b><span class="gmail_msg m_-3128704471826244692Apple-converted-space"> </span>Monday, February 06, 2017 11:08 AM<br class="gmail_msg"><b class="gmail_msg">To:</b><span class="gmail_msg m_-3128704471826244692Apple-converted-space"> </span>Greg Clayton<br class="gmail_msg"><b class="gmail_msg">Cc:</b><span class="gmail_msg m_-3128704471826244692Apple-converted-space"> </span><a href="mailto:lldb-dev@lists.llvm.org" class="gmail_msg" target="_blank">lldb-dev@lists.llvm.org</a><br class="gmail_msg"><b class="gmail_msg">Subject:</b><span class="gmail_msg m_-3128704471826244692Apple-converted-space"> </span>Re: [lldb-dev] RTTI does not work stable in LLDB.<u class="gmail_msg"></u><u class="gmail_msg"></u></span></div></div></div><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif" class="gmail_msg"><u class="gmail_msg"></u> <u class="gmail_msg"></u></div><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif" class="gmail_msg">So I found the problem. This is a compiler bug. The DWARF for this type looks like:<u class="gmail_msg"></u><u class="gmail_msg"></u></div><div class="gmail_msg"><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif" class="gmail_msg"><u class="gmail_msg"></u> <u class="gmail_msg"></u></div></div><div class="gmail_msg"><p class="MsoNormal gmail_msg" style="margin:0in 0in 12pt;font-size:12pt;font-family:'Times New Roman',serif">0x000065da: TAG_structure_type [112] *<br class="gmail_msg"> AT_containing_type( {0x0000000000006628} )<br class="gmail_msg"> AT_name( "derived0<int, int, 1024>" )<br class="gmail_msg"> AT_byte_size( 0x08 )<br class="gmail_msg"> AT_decl_file( "/private/tmp/main.cpp" )<br class="gmail_msg"> AT_decl_line( 9 )<u class="gmail_msg"></u><u class="gmail_msg"></u></p><div class="gmail_msg"><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif" class="gmail_msg"><u class="gmail_msg"></u> <u class="gmail_msg"></u></div></div><div class="gmail_msg"><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif" class="gmail_msg">But all of the type info in the symbol table has has the type named as "derived0<int, int, 1024u>”. Note the extra “u” that follows 1024. This stops LLDB from being able to lookup the type correctly so we can show the dynamic type. In LLDB we check the first pointer inside of a class to see if it is a symbol whose name is “<span style="font-size:8.5pt;color:rgb(209,47,27)" class="gmail_msg">vtable for TYPENAME”. If it is, we lookup the type “TYPENAME” to find it. In this case we try to lookup </span>"derived0<int, int, 1024u>” and we fail since the DWARF has it as "derived0<int, int, 1024>”.<u class="gmail_msg"></u><u class="gmail_msg"></u></div></div><div class="gmail_msg"><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif" class="gmail_msg"><u class="gmail_msg"></u> <u class="gmail_msg"></u></div></div><div class="gmail_msg"><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif" class="gmail_msg">I have filed a radar on the compiler here at Apple for the fix.<u class="gmail_msg"></u><u class="gmail_msg"></u></div></div><div class="gmail_msg"><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif" class="gmail_msg"><u class="gmail_msg"></u> <u class="gmail_msg"></u></div></div><div class="gmail_msg"><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif" class="gmail_msg">Greg<u class="gmail_msg"></u><u class="gmail_msg"></u></div></div><div class="gmail_msg"><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif" class="gmail_msg"><u class="gmail_msg"></u> <u class="gmail_msg"></u></div></div><div class="gmail_msg"><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif" class="gmail_msg"><br class="gmail_msg"><br class="gmail_msg"><u class="gmail_msg"></u><u class="gmail_msg"></u></div><div class="gmail_msg"><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif" class="gmail_msg">On Feb 6, 2017, at 10:22 AM, Greg Clayton via lldb-dev <<a href="mailto:lldb-dev@lists.llvm.org" style="color:purple;text-decoration:underline" class="gmail_msg" target="_blank">lldb-dev@lists.llvm.org</a>> wrote:<u class="gmail_msg"></u><u class="gmail_msg"></u></div></div><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif" class="gmail_msg"><u class="gmail_msg"></u> <u class="gmail_msg"></u></div><div class="gmail_msg"><div class="gmail_msg"><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif" class="gmail_msg">I am looking at this now. I will let you know what I find.<u class="gmail_msg"></u><u class="gmail_msg"></u></div><div class="gmail_msg"><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif" class="gmail_msg"><u class="gmail_msg"></u> <u class="gmail_msg"></u></div></div><div class="gmail_msg"><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif" class="gmail_msg">Greg<u class="gmail_msg"></u><u class="gmail_msg"></u></div></div><div class="gmail_msg"><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif" class="gmail_msg"><u class="gmail_msg"></u> <u class="gmail_msg"></u></div><div class="gmail_msg"><blockquote style="margin-top:5pt;margin-bottom:5pt" class="gmail_msg"><div class="gmail_msg"><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif" class="gmail_msg">On Feb 6, 2017, at 10:00 AM, Roman Popov <<a href="mailto:ripopov@gmail.com" style="color:purple;text-decoration:underline" class="gmail_msg" target="_blank">ripopov@gmail.com</a>> wrote:<u class="gmail_msg"></u><u class="gmail_msg"></u></div></div><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif" class="gmail_msg"><u class="gmail_msg"></u> <u class="gmail_msg"></u></div><div class="gmail_msg"><div class="gmail_msg"><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif" class="gmail_msg">Yes, that was my thought. <u class="gmail_msg"></u><u class="gmail_msg"></u></div><div class="gmail_msg"><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif" class="gmail_msg"><u class="gmail_msg"></u> <u class="gmail_msg"></u></div><div class="gmail_msg"><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif" class="gmail_msg">FYI, checked in GDB: it's working correctly on this testcase showing correct dynamic type in both cases.<u class="gmail_msg"></u><u class="gmail_msg"></u></div><div class="gmail_msg"><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif" class="gmail_msg"><u class="gmail_msg"></u> <u class="gmail_msg"></u></div><div class="gmail_msg"><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif" class="gmail_msg">2017-02-06 9:48 GMT-08:00 Greg Clayton <<a href="mailto:gclayton@apple.com" style="color:purple;text-decoration:underline" class="gmail_msg" target="_blank">gclayton@apple.com</a>>:<u class="gmail_msg"></u><u class="gmail_msg"></u></div><div class="gmail_msg"><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif" class="gmail_msg">You have found a bug. It should be reporting this correctly but it isn’t. I verified it fails on MacOSX.<u class="gmail_msg"></u><u class="gmail_msg"></u></div><div class="gmail_msg"><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif" class="gmail_msg"><u class="gmail_msg"></u> <u class="gmail_msg"></u></div></div><div class="gmail_msg"><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif" class="gmail_msg">Greg Clayton<u class="gmail_msg"></u><u class="gmail_msg"></u></div></div><div class="gmail_msg"><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif" class="gmail_msg"><u class="gmail_msg"></u> <u class="gmail_msg"></u></div><div class="gmail_msg"><blockquote style="margin-top:5pt;margin-bottom:5pt" class="gmail_msg"><div class="gmail_msg"><div class="gmail_msg"><div class="gmail_msg"><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif" class="gmail_msg">On Feb 5, 2017, at 1:19 PM, Roman Popov via lldb-dev <<a href="mailto:lldb-dev@lists.llvm.org" style="color:purple;text-decoration:underline" class="gmail_msg" target="_blank">lldb-dev@lists.llvm.org</a>> wrote:<u class="gmail_msg"></u><u class="gmail_msg"></u></div></div><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif" class="gmail_msg"><u class="gmail_msg"></u> <u class="gmail_msg"></u></div></div></div><div class="gmail_msg"><div class="gmail_msg"><div class="gmail_msg"><div class="gmail_msg"><div class="gmail_msg"><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif" class="gmail_msg">Hello,<u class="gmail_msg"></u><u class="gmail_msg"></u></div></div><div class="gmail_msg"><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif" class="gmail_msg">I'm observing very strange LLDB behavior: it does not always shows a correct dynamic type when I ask for.<u class="gmail_msg"></u><u class="gmail_msg"></u></div></div><div class="gmail_msg"><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif" class="gmail_msg"><u class="gmail_msg"></u> <u class="gmail_msg"></u></div></div><div class="gmail_msg"><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif" class="gmail_msg">Originally I was working with LLDB 3.9, but it looks like trunk version behaves the same strange way. <u class="gmail_msg"></u><u class="gmail_msg"></u></div></div><div class="gmail_msg"><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif" class="gmail_msg"><u class="gmail_msg"></u> <u class="gmail_msg"></u></div></div><div class="gmail_msg"><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif" class="gmail_msg">I was able to capture this behavior in a small code snippet: <u class="gmail_msg"></u><u class="gmail_msg"></u></div></div><div class="gmail_msg"><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif" class="gmail_msg"><u class="gmail_msg"></u> <u class="gmail_msg"></u></div></div><div class="gmail_msg"><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif" class="gmail_msg"><span style="font-family:'Courier New'" class="gmail_msg">#include <iostream></span><u class="gmail_msg"></u><u class="gmail_msg"></u></div></div><div class="gmail_msg"><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif" class="gmail_msg"><span style="font-family:'Courier New'" class="gmail_msg">#include <typeinfo></span><u class="gmail_msg"></u><u class="gmail_msg"></u></div></div><div class="gmail_msg"><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif" class="gmail_msg"><u class="gmail_msg"></u> <u class="gmail_msg"></u></div></div><div class="gmail_msg"><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif" class="gmail_msg"><span style="font-family:'Courier New'" class="gmail_msg">using namespace std;</span><u class="gmail_msg"></u><u class="gmail_msg"></u></div></div><div class="gmail_msg"><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif" class="gmail_msg"><u class="gmail_msg"></u> <u class="gmail_msg"></u></div></div><div class="gmail_msg"><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif" class="gmail_msg"><span style="font-family:'Courier New'" class="gmail_msg">struct base_type { virtual ~base_type(){} };</span><u class="gmail_msg"></u><u class="gmail_msg"></u></div></div><div class="gmail_msg"><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif" class="gmail_msg"><u class="gmail_msg"></u> <u class="gmail_msg"></u></div></div><div class="gmail_msg"><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif" class="gmail_msg"><span style="font-family:'Courier New'" class="gmail_msg">template <class T1, class T2, unsigned SIZE></span><u class="gmail_msg"></u><u class="gmail_msg"></u></div></div><div class="gmail_msg"><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif" class="gmail_msg"><span style="font-family:'Courier New'" class="gmail_msg">struct derived0 : base_type {};</span><u class="gmail_msg"></u><u class="gmail_msg"></u></div></div><div class="gmail_msg"><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif" class="gmail_msg"><u class="gmail_msg"></u> <u class="gmail_msg"></u></div></div><div class="gmail_msg"><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif" class="gmail_msg"><span style="font-family:'Courier New'" class="gmail_msg">template <class T1, class T2></span><u class="gmail_msg"></u><u class="gmail_msg"></u></div></div><div class="gmail_msg"><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif" class="gmail_msg"><span style="font-family:'Courier New'" class="gmail_msg">struct derived1 : base_type {};</span><u class="gmail_msg"></u><u class="gmail_msg"></u></div></div><div class="gmail_msg"><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif" class="gmail_msg"><u class="gmail_msg"></u> <u class="gmail_msg"></u></div></div><div class="gmail_msg"><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif" class="gmail_msg"><span style="font-family:'Courier New'" class="gmail_msg">int main(int argc, char ** argv) {</span><u class="gmail_msg"></u><u class="gmail_msg"></u></div></div><div class="gmail_msg"><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif" class="gmail_msg"><u class="gmail_msg"></u> <u class="gmail_msg"></u></div></div><div class="gmail_msg"><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif" class="gmail_msg"><span style="font-family:'Courier New'" class="gmail_msg"> base_type * bptr0 = new derived0<int, int, 1024>();</span><u class="gmail_msg"></u><u class="gmail_msg"></u></div></div><div class="gmail_msg"><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif" class="gmail_msg"><span style="font-family:'Courier New'" class="gmail_msg"> base_type * bptr1 = new derived1<int, int >();</span><u class="gmail_msg"></u><u class="gmail_msg"></u></div></div><div class="gmail_msg"><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif" class="gmail_msg"><u class="gmail_msg"></u> <u class="gmail_msg"></u></div></div><div class="gmail_msg"><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif" class="gmail_msg"><span style="font-family:'Courier New'" class="gmail_msg"> cout << typeid(*bptr0).name() << endl;</span><u class="gmail_msg"></u><u class="gmail_msg"></u></div></div><div class="gmail_msg"><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif" class="gmail_msg"><span style="font-family:'Courier New'" class="gmail_msg"> cout << typeid(*bptr1).name() << endl;</span><u class="gmail_msg"></u><u class="gmail_msg"></u></div></div><div class="gmail_msg"><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif" class="gmail_msg"><u class="gmail_msg"></u> <u class="gmail_msg"></u></div></div><div class="gmail_msg"><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif" class="gmail_msg"><span style="font-family:'Courier New'" class="gmail_msg"> return 0;</span><u class="gmail_msg"></u><u class="gmail_msg"></u></div></div><div class="gmail_msg"><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif" class="gmail_msg"><span style="font-family:'Courier New'" class="gmail_msg">}</span><u class="gmail_msg"></u><u class="gmail_msg"></u></div></div><div class="gmail_msg"><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif" class="gmail_msg"><u class="gmail_msg"></u> <u class="gmail_msg"></u></div></div><div class="gmail_msg"><div class="gmail_msg"><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif" class="gmail_msg"><u class="gmail_msg"></u> <u class="gmail_msg"></u></div></div><div class="gmail_msg"><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif" class="gmail_msg">lldb --version<u class="gmail_msg"></u><u class="gmail_msg"></u></div></div><div class="gmail_msg"><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif" class="gmail_msg">lldb version 5.0.0 (<a href="http://llvm.org/svn/llvm-project/lldb/trunk" style="color:purple;text-decoration:underline" class="gmail_msg" target="_blank">http://llvm.org/svn/llvm-project/lldb/trunk</a><span class="gmail_msg m_-3128704471826244692Apple-converted-space"> </span>revision 293398)<u class="gmail_msg"></u><u class="gmail_msg"></u></div></div><div class="gmail_msg"><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif" class="gmail_msg"> clang revision 293398<u class="gmail_msg"></u><u class="gmail_msg"></u></div></div><div class="gmail_msg"><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif" class="gmail_msg"> llvm revision 293398<u class="gmail_msg"></u><u class="gmail_msg"></u></div></div></div><div class="gmail_msg"><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif" class="gmail_msg"><u class="gmail_msg"></u> <u class="gmail_msg"></u></div></div><div class="gmail_msg"><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif" class="gmail_msg"><u class="gmail_msg"></u> <u class="gmail_msg"></u></div></div><div class="gmail_msg"><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif" class="gmail_msg">Testing in LLDB:<u class="gmail_msg"></u><u class="gmail_msg"></u></div></div><div class="gmail_msg"><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif" class="gmail_msg">(lldb) break set --file main.cpp --line 22<u class="gmail_msg"></u><u class="gmail_msg"></u></div></div><div class="gmail_msg"><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif" class="gmail_msg"><u class="gmail_msg"></u> <u class="gmail_msg"></u></div></div><div class="gmail_msg"><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif" class="gmail_msg">(lldb) expression -d no-run -- bptr1<u class="gmail_msg"></u><u class="gmail_msg"></u></div></div><div class="gmail_msg"><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif" class="gmail_msg">(derived1<int, int> *) $2 = 0x0000000000614c40<u class="gmail_msg"></u><u class="gmail_msg"></u></div></div><div class="gmail_msg"><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif" class="gmail_msg"><u class="gmail_msg"></u> <u class="gmail_msg"></u></div></div><div class="gmail_msg"><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif" class="gmail_msg">(lldb) expression -d no-run -- bptr0<u class="gmail_msg"></u><u class="gmail_msg"></u></div></div><div class="gmail_msg"><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif" class="gmail_msg"><b class="gmail_msg">(base_type *) $3 = 0x0000000000614c20</b><u class="gmail_msg"></u><u class="gmail_msg"></u></div></div><div class="gmail_msg"><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif" class="gmail_msg"><u class="gmail_msg"></u> <u class="gmail_msg"></u></div></div><div class="gmail_msg"><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif" class="gmail_msg"><u class="gmail_msg"></u> <u class="gmail_msg"></u></div></div><div class="gmail_msg"><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif" class="gmail_msg">Can someone explain me why for bptr0 I dont get a <span style="font-family:'Courier New'" class="gmail_msg">derived0<int, int, 1024> * as I expected?</span><u class="gmail_msg"></u><u class="gmail_msg"></u></div></div><div class="gmail_msg"><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif" class="gmail_msg"><u class="gmail_msg"></u> <u class="gmail_msg"></u></div></div><div class="gmail_msg"><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif" class="gmail_msg"><u class="gmail_msg"></u> <u class="gmail_msg"></u></div></div><div class="gmail_msg"><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif" class="gmail_msg">Thanks,<u class="gmail_msg"></u><u class="gmail_msg"></u></div></div><div class="gmail_msg"><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif" class="gmail_msg">Roman<u class="gmail_msg"></u><u class="gmail_msg"></u></div></div></div></div></div><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif" class="gmail_msg">_______________________________________________<br class="gmail_msg">lldb-dev mailing list<br class="gmail_msg"><a href="mailto:lldb-dev@lists.llvm.org" style="color:purple;text-decoration:underline" class="gmail_msg" target="_blank">lldb-dev@lists.llvm.org</a><br class="gmail_msg"><a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev" style="color:purple;text-decoration:underline" class="gmail_msg" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev</a><u class="gmail_msg"></u><u class="gmail_msg"></u></div></div></blockquote></div><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif" class="gmail_msg"><u class="gmail_msg"></u> <u class="gmail_msg"></u></div></div></div></div><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif" class="gmail_msg"><u class="gmail_msg"></u> <u class="gmail_msg"></u></div></div></div></div></div></div></blockquote></div><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif" class="gmail_msg"><u class="gmail_msg"></u> <u class="gmail_msg"></u></div></div></div><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman',serif" class="gmail_msg">_______________________________________________<br class="gmail_msg">lldb-dev mailing list<br class="gmail_msg"><a href="mailto:lldb-dev@lists.llvm.org" style="color:purple;text-decoration:underline" class="gmail_msg" target="_blank">lldb-dev@lists.llvm.org</a><br class="gmail_msg"><a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev" style="color:purple;text-decoration:underline" class="gmail_msg" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev</a></div></div></div></div></div></div></div></blockquote></div><br class="gmail_msg"></div></div></div>_______________________________________________<br class="gmail_msg">
lldb-dev mailing list<br class="gmail_msg">
<a href="mailto:lldb-dev@lists.llvm.org" class="gmail_msg" target="_blank">lldb-dev@lists.llvm.org</a><br class="gmail_msg">
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev" rel="noreferrer" class="gmail_msg" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev</a><br class="gmail_msg">
</blockquote></div>
</div></blockquote></div><br class=""></div></body></html>