<div class="gmail_quote">2010/5/13 Niko Sams <span dir="ltr"><<a href="mailto:niko.sams@gmail.com">niko.sams@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Thu, May 13, 2010 at 20:20, Victor Vicente de Carvalho<br>
<<a href="mailto:victor.v.carvalho@gmail.com">victor.v.carvalho@gmail.com</a>> wrote:<br>
><br>
> 2010/5/13 Niko Sams <<a href="mailto:niko.sams@gmail.com">niko.sams@gmail.com</a>><br>
>><br>
>> > Printing an Any on gdb witch contains strings returns a nicely formated<br>
>> > output. On KDevelop, it's show as it wasn't recognized.<br>
>> Is the pretty printer loaded correctly?<br>
>> is the to_string method called at all? (You can test using print<br>
>> statements in python<br>
>> and watching kdevelop console output.<br>
>><br>
> Yes, as I have other printers on the same module and they work fine, and for<br>
> this printer basic structures like ints and booleans are converted right.<br>
> Also on gdb terminal the same module prints the correct output. I'm making<br>
> the import from my ~/.gdbinit.<br>
><br>
</div>To tackle this issue it would be most helpful to get a simplified test<br>
case that consists of:<br>
- you debugee (including your custom class) - simplified to only necessary code<br>
- the pretty printer (simplified as well)<br>
- kdevelop console output when debugging<br>
<br></blockquote><div><br></div><div>Ok, I've attached a sample test, the simplified printer and my .gdbinit. I haven't build kdevelop with debug info here on my work, but this should be pretty reproducible, you just have to adjust the .gdbinit path to where the kdevelop printers are on your machine (I've got mine from where I build kdevelop) and step through gdb on console and print it after the variable was set. </div>
<div><br></div><div>on console I have:</div><div><br></div><div>$6 = "test"</div><div><br></div><div>on KDevelop:</div><div><br></div><div><div>{ _M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>},  _M_p = 0x80624ec "test"}}</div>
</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
out of that a simplified debug session using gdb cli and MI commands<br>
can be created<br>
that should show the same symptom (the relevant MI commands can be<br>
found in the kdevelop<br>
console output).<br>
<br>
And then we will see if it's a gdb issue or a kdevelop issue...<br>
<div><div></div><div class="h5"><br>
Niko<br>
<br>
--<br>
KDevelop-devel mailing list<br>
<a href="mailto:KDevelop-devel@kdevelop.org">KDevelop-devel@kdevelop.org</a><br>
<a href="https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel" target="_blank">https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel</a><br>
</div></div></blockquote></div><br><div>Victor</div><div><br></div><div><br></div>