------- 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"},child={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