Bug 395438 - Child indicator vanishes in "Variables" tool view when pointer changes value
Summary: Child indicator vanishes in "Variables" tool view when pointer changes value
Status: RESOLVED WORKSFORME
Alias: None
Product: kdevelop
Classification: Applications
Component: CPP Debugger (show other bugs)
Version: 5.2.3
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-06-15 16:17 UTC by TheComet
Modified: 2022-12-26 05:21 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Steps to reproduce (200.33 KB, image/png)
2018-06-15 16:17 UTC, TheComet
Details

Note You need to log in before you can comment on or make changes to this bug.
Description TheComet 2018-06-15 16:17:04 UTC
Created attachment 113352 [details]
Steps to reproduce

Overview
--------
Whenever pointers inside structures change while stepping through code, the child indicators disappear, making it impossible to expand the structure to inspect its values. The only way I know of getting the child indicators back is to click somewhere in the stack view and then select the stack frame I was at again. this seems to "reload" the values in the variables view.

Steps to Reproduce
------------------

1) Create a new project with the following test code:

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

struct foo_t
{
    int x, y, z;
};

struct bar_t
{
    struct foo_t* foo1;
    struct foo_t* foo2;
};

struct foo_t* create_foo(void)
{
    struct foo_t* foo = malloc(sizeof *foo);
    memset(foo, 0, sizeof *foo);
    return foo;
}

struct bar_t* create_bar(void)
{
    struct bar_t* bar = malloc(sizeof *bar);
    bar->foo1 = create_foo();
    bar->foo2 = create_foo();
    return bar;
}

int main()
{
    struct bar_t* bar = create_bar();
    printf("%d,%d,%d\n", bar->foo1->x, bar->foo1->y, bar->foo1->z);
    return 0;
}

2) Set a breakpoint on line 33: struct bar_t* bar = create_bar();
3) Start debugging (F9)
4) Once the breakpoint is reached, open the "Variables" view and expand the "bar" variable but keep the "foo1" and "foo2" variables collapsed.
5) Step over (F10) and watch what happens to "foo1" and "foo2"

Actual Results
--------------
The child indicators on "foo1" and "foo2" will disappear. You can no longer inspect their x, y, z values.

Expected Results
----------------
The child indicators should stay there so I can view the fields in "foo1" and "foo2".

Build Date and Platform
-----------------------
I'm using dev-util/kdevelop-5.2.3 from Gentoo's package manager.

4.14.15-gentoo #2 SMP Thu May 17 23:46:53 CEST 2018 x86_64 AMD Ryzen Threadripper 1950X 16-Core Processor AuthenticAMD GNU/Linux

Additional Information
----------------------
I have attached screenshots.
Comment 1 Justin Zobel 2022-11-26 00:14:03 UTC
Thank you for reporting this issue in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
Comment 2 Bug Janitor Service 2022-12-11 05:07:34 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Bug Janitor Service 2022-12-26 05:21:26 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!