[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kdevelop-bugs
Subject:    [Bug 150291] New: -var-delete children causes gdb to detach from
From:       Rob L <robert.leathley () ricardo ! com>
Date:       2007-09-28 10:23:42
Message-ID: 20070928122341.150291.robert.leathley () ricardo ! com
[Download RAW message or body]

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=150291         
           Summary: -var-delete children causes gdb to detach from process
           Product: kdevelop
           Version: 3.4.1
          Platform: Compiled Sources
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: kdevelop-bugs kdevelop org
        ReportedBy: robert.leathley ricardo com


Version:           3.4.1 (using KDE KDE 3.5.1)
Installed from:    Compiled From Sources
OS:                Linux

Deleting children then the parent variable object causes gdb to detach from the \
process, here is an example of the internal commands:

(gdb) -var-list-children "KDEV138"
^done,numchild="8",children=[child={name="KDEV138.0",exp="0",numchild="0",type="int"}, \
child={name="KDEV138.1",exp="1",numchild="0",type="int"},child={name="KDEV138.2",exp=" \
2",numchild="0",type="int"},child={name="KDEV138.3",exp="3",numchild="0",type="int"},c \
hild={name="KDEV138.4",exp="4",numchild="0",type="int"},child={name="KDEV138.5",exp="5 \
",numchild="0",type="int"},child={name="KDEV138.6",exp="6",numchild="0",type="int"},child={name="KDEV138.7",exp="7",numchild="0",type="int"}]
                
...
(gdb) -var-delete "KDEV138.0"
^done,ndeleted="1"
...
(gdb) -var-delete "KDEV138"
(gdb) Process exited

The process is still running but no longer debugged at this stage.  This appears to \
be a consistant problem when viewing the contents of an int [] member of a template \
class, but I don't know how significant this is.

According to the gdb manual, -var-delete "Deletes a previously created variable \
object and all of its children" so I'm not sure why the children are deleted first \
(there is a gdb bug here too, but the kdevelop team seem much more responsive:)

Commenting out the child lines in VarItem::unhookFromGdb() appears to fix the problem \
(there is a comment here "Strictly speaking, we can avoid calling -var-delete on \
child varitems, but that's a bit cheesy")

_______________________________________________
KDevelop-bugs mailing list
KDevelop-bugs@kdevelop.org
https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-bugs


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic