From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1997 invoked by alias); 1 Dec 2005 12:28:52 -0000 Received: (qmail 1989 invoked by uid 22791); 1 Dec 2005 12:28:52 -0000 X-Spam-Check-By: sourceware.org Received: from fra-del-02.spheriq.net (HELO fra-del-02.spheriq.net) (195.46.51.98) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 01 Dec 2005 12:28:45 +0000 Received: from fra-out-02.spheriq.net (fra-out-02.spheriq.net [195.46.51.130]) by fra-del-02.spheriq.net with ESMTP id jB1CS867016217 for ; Thu, 1 Dec 2005 12:28:08 GMT Received: from fra-cus-02.spheriq.net (fra-cus-02.spheriq.net [195.46.51.38]) by fra-out-02.spheriq.net with ESMTP id jB1CS6Z6007828 for ; Thu, 1 Dec 2005 12:28:06 GMT Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by fra-cus-02.spheriq.net with ESMTP id jB1CS59l030613 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK) for ; Thu, 1 Dec 2005 12:28:06 GMT Received: from zeta.dmz-eu.st.com (ns2.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 34F70DA49 for ; Thu, 1 Dec 2005 12:28:00 +0000 (GMT) Received: by zeta.dmz-eu.st.com (STMicroelectronics, from userid 60012) id 6D1264748D; Thu, 1 Dec 2005 12:31:05 +0000 (GMT) Received: from zeta.dmz-eu.st.com (localhost [127.0.0.1]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id BB1707599B for ; Thu, 1 Dec 2005 12:31:04 +0000 (UTC) Received: from mail1.bri.st.com (mail1.bri.st.com [164.129.8.218]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 41266474CD for ; Thu, 1 Dec 2005 12:31:04 +0000 (GMT) Received: from [164.129.15.13] (terrorhawk.bri.st.com [164.129.15.13]) by mail1.bri.st.com (MOS 3.5.8-GR) with ESMTP id CHA45580 (AUTH "andrew stubbs"); Thu, 1 Dec 2005 12:27:57 GMT Message-ID: <438EEBC5.8040802@st.com> Date: Thu, 01 Dec 2005 12:28:00 -0000 From: Andrew STUBBS User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) MIME-Version: 1.0 To: gdb-patches@sources.redhat.com Subject: [PATCH] Enhance break command help Content-Type: multipart/mixed; boundary="------------010808030202040605000907" X-O-Spoofed: Not Scanned X-O-General-Status: No X-O-Spam1-Status: Not Scanned X-O-Spam2-Status: Not Scanned X-O-URL-Status: Not Scanned X-O-Virus1-Status: No X-O-Virus2-Status: Not Scanned X-O-Virus3-Status: No X-O-Virus4-Status: No X-O-Virus5-Status: Not Scanned X-O-Image-Status: Not Scanned X-O-Attach-Status: Not Scanned X-SpheriQ-Ver: 4.2.0 X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2005-12/txt/msg00007.txt.bz2 This is a multi-part message in MIME format. --------------010808030202040605000907 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-length: 339 Hi, The attached patch adds more information to the on-line help for the break command. It adds a brief description how to set thread specific and conditional breakpoints. The information is all in the user guide, but was missing from the internal help message. This is in response to a complaint from a user. Thanks Andrew Stubbs --------------010808030202040605000907 Content-Type: text/plain; name="break-help.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="break-help.patch" Content-length: 1569 2005-12-01 Andrew Stubbs * breakpoint.c (_initialize_breakpoint): Enhance break command help. Index: src/gdb/breakpoint.c =================================================================== --- src.orig/gdb/breakpoint.c 2005-12-01 12:05:59.000000000 +0000 +++ src/gdb/breakpoint.c 2005-12-01 12:19:28.000000000 +0000 @@ -7809,13 +7809,17 @@ See also the \"delete\" command which cl c = add_com ("break", class_breakpoint, break_command, _("\ Set breakpoint at specified line or function.\n\ -Argument may be line number, function name, or \"*\" and an address.\n\ -If line number is specified, break at start of code for that line.\n\ -If function is specified, break at start of code for that function.\n\ +break [LOCATION] [thread THREADNUM] [if CONDITION]\n\ +The LOCATION may be a line number, function name, or \"*\" and an address.\n\ +If a line number is specified, break at start of code for that line.\n\ +If a function is specified, break at start of code for that function.\n\ If an address is specified, break at that exact address.\n\ -With no arg, uses current execution address of selected stack frame.\n\ +With no LOCATION, uses current execution address of selected stack frame.\n\ This is useful for breaking on return to a stack frame.\n\ \n\ +The THREADNUM is the number from \"info threads\".\n\ +The CONDITION is a boolean expression.\n\ +\n\ Multiple breakpoints at one place are permitted, and useful if conditional.\n\ \n\ Do \"help breakpoints\" for info on other commands dealing with breakpoints.")); --------------010808030202040605000907--