From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12147 invoked by alias); 25 Jan 2006 16:05:01 -0000 Received: (qmail 12132 invoked by uid 22791); 25 Jan 2006 16:05:00 -0000 X-Spam-Check-By: sourceware.org Received: from zproxy.gmail.com (HELO zproxy.gmail.com) (64.233.162.202) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 25 Jan 2006 16:04:58 +0000 Received: by zproxy.gmail.com with SMTP id n1so152195nzf for ; Wed, 25 Jan 2006 08:04:57 -0800 (PST) Received: by 10.65.158.7 with SMTP id k7mr402193qbo; Wed, 25 Jan 2006 08:04:56 -0800 (PST) Received: by 10.65.222.19 with HTTP; Wed, 25 Jan 2006 08:04:56 -0800 (PST) Message-ID: <214135380601250804o63c49085v418f4bc69e8e7931@mail.gmail.com> Date: Wed, 25 Jan 2006 16:16:00 -0000 From: Carlos Eduardo Rodrigues de Almeida To: gdb@sources.redhat.com Subject: GDB 6.4, Linux, Multiple process MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-01/txt/msg00251.txt.bz2 Hi all, I'm using gentoo linux. I emerged gdb 6.4 and reading the documentation I noticed that now it is possible to debug program with multiple process. I tried it out and I can only use the set/show follow-fork-mode commands. The set detach-on-fork, info forks, fork does not work. (gdb) info forks Undefined info command: "forks". Try "help info". (gdb) fork Undefined command: "fork". Try "help". (gdb) set detach-on-fork No symbol "detach" in current context. And I think there is a bug in the documentation... there is the explanation about the set detach-on-fork and the show it says detach-on-follow: set detach-on-fork mode Tells gdb whether to detach one of the processes after a fork, or retain debugger control over them both. on The child process (or parent process, depending on the value of follow-fork-mode) will be detached and allowed to run independently. This is the default. off Both processes will be held under the control of gdb. One process (child or parent, depending on the value of follow-fork-mode) is debugged as usual, while the other is held suspended. show detach-on-follow Show whether detach-on-follow mode is on/off. Are the multiple process commands implemented? What do I have to do for them to work? I tried the gdb-6.4.tar.bz2 from the ftp and I still can't use these comman= ds Thank you, Eduardo