branches/KDE/3.5/kdevelop/languages/cpp/debugger

Vladimir Prus ghost at cs.msu.su
Wed Sep 7 17:29:06 UTC 2005


On Wednesday 07 September 2005 19:19, Robert Gruber wrote:
> SVN commit 458232 by rgruber:
>
> Fixed problem that no further struct members get showen in
> variable-widget when gdb prints something like ,'' <repeats 10 times>
> for one of the struct's members
>
>
>  M  +2 -2      gdbparser.cpp
>
>
> --- branches/KDE/3.5/kdevelop/languages/cpp/debugger/gdbparser.cpp
> #458231:458232 @@ -402,7 +402,7 @@
>                  // $1 = 0x804ddf3 ' ' <repeats 20 times>, "TESTSTRING"
>                  // after having finished with the "repeats"-block we need
>                  // to check if the string continues
> -                if ( buf[0] == ',' && buf[2] == '"' ) {
> +                if ( buf[0] == ',' && (buf[2] == '\"' || buf[2] == '\'') )

I wonder if we should just emit

   set print repeats 10000000000

on gdb startup, and don't try to handle all possible cases where gdb uses 
'repeats'. We can also consider:

   set print elements 1000000000

so that all array elements are always printed.

- Volodya




More information about the KDevelop-devel mailing list