This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
mi/2322: -var-delete children causes gdb to detach from process
- From: robert dot leathley at ricardo dot com
- To: gdb-gnats at sources dot redhat dot com
- Date: 28 Sep 2007 10:32:55 -0000
- Subject: mi/2322: -var-delete children causes gdb to detach from process
- Reply-to: robert dot leathley at ricardo dot com
>Number: 2322
>Category: mi
>Synopsis: -var-delete children causes gdb to detach from process
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Sep 28 10:38:02 UTC 2007
>Closed-Date:
>Last-Modified:
>Originator: robert.leathley@ricardo.com
>Release: 6.7.50_20070920
>Organization:
>Environment:
linux 2.6.16.53-0.8-smp sled10
>Description:
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 consistent problem when viewing the contents of an int [] member of a template class, but I don't know how significant this is.
The commands are issued by kdevelop, but prior deletion of the children would appear unnecessary: removing them avoids the problem.
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: