From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17471 invoked by alias); 9 Jun 2014 23:26:22 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 17458 invoked by uid 89); 9 Jun 2014 23:26:21 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.6 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 09 Jun 2014 23:26:20 +0000 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s59NQGoN006642 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 9 Jun 2014 19:26:16 -0400 Received: from psique (ovpn-113-28.phx2.redhat.com [10.3.113.28]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s59NQDxC007598 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Mon, 9 Jun 2014 19:26:15 -0400 From: Sergio Durigan Junior To: "Vardhana\, Ananda" Cc: "gdb\@sourceware.org" Subject: Re: Questions on vCont References: <301B88517A226B4DA3D210EF3D49753273F76D16@ORSMSX102.amr.corp.intel.com> X-URL: http://www.redhat.com Date: Mon, 09 Jun 2014 23:26:00 -0000 In-Reply-To: <301B88517A226B4DA3D210EF3D49753273F76D16@ORSMSX102.amr.corp.intel.com> (Ananda Vardhana's message of "Mon, 9 Jun 2014 17:39:37 +0000") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-IsSubscribed: yes X-SW-Source: 2014-06/txt/msg00031.txt.bz2 Hi Ananda, On Monday, June 09 2014, Ananda Vardhana wrote: > Could some kind folk clear up some of my doubts: > > 1. "Resume the inferior, specifying different actions for each thread" --> what does this first sentence mean? What does word inferior mean in this context? Inferior is the GDB parlance for the program being debugged. > 2. "Specifying multiple default actions is an error" --> Please give me couple of examples. I have answered this one in private. > 3. "specifying no actions is also an error". An example for this too please. Likewise. > 4. Lastly please tell me what all commands I have specified here is wrong > a. vCont;c:ab;c:cd --> ab, cd are thread id's > b. vCont;c:12;s:23;t:45 > c. vCont;c:3;s:3 --> This is wrong for sure > d. vCont;c-1 --> Putting anything after this wrong as we have continue on all processors On (d) you're missing a colon between "c" and "-1" (I think I already answered this one before, too). > > 'C sig' > > Continue with signal sig. The signal sig should be two hex digits. > 5. What is the meaning of a signal in this context? Means a POSIX signal, like SIGINT. > 6. Why is the name 'sig' not appearing in the usage shown above. Or why is it they talk only about thread-id only? Because the usage lists "action", whose definition gets expanded below. > 8. I hope the C sig & S sig are still a supported I'm not sure I understand this last question. > If there is a web site where these kind of questions have been answered please point me to it. [I am not answering all questions from this message.] The GDB documentation should answer your questions; if it does not, then you can submit a patch improving it (please, do so!). Also, an obvious good source of documentation is the source code itself. I answered some of those questions in private (in reply to your message), and pointed you to some functions that you might be interested in reading. Cheers, -- Sergio GPG key ID: 65FC5E36 Please send encrypted e-mail if possible http://blog.sergiodj.net/