GDB printer testing uninitialized variables

Da Viper yerimyah1 at gmail.com
Thu Jul 29 18:34:14 BST 2021


Hello there,  i am trying to test variables that has not been
initialised for example
if the break point is on line 10

```
10 ....
11 .....
12 QChar achar;
```

and try to print the val of `achar`.
the value of `achar` are not always consistent if it run, and
sometimes depend on other variables before it.

because of this i am not able to test  the values correctly.

should i drop the tests for uninitialised variables or is there a way
for the variables to have a consistent values when debugged ?

regards


More information about the Kde-finance-apps mailing list