From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 92572 invoked by alias); 21 Jan 2019 02:54:15 -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 92560 invoked by uid 89); 21 Jan 2019 02:54:14 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=operated, increasing, HX-Received:a6b X-HELO: mail-io1-f41.google.com Received: from mail-io1-f41.google.com (HELO mail-io1-f41.google.com) (209.85.166.41) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 21 Jan 2019 02:54:13 +0000 Received: by mail-io1-f41.google.com with SMTP id k2so15278063iog.7 for ; Sun, 20 Jan 2019 18:54:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=L59DcZ8AwiTjZ89jrwCAMmc1XDBXbrazTkp3l8OhHl4=; b=UGl4Q/1ThKC4IW5I2SB/pd5ou6FJ+crHKc9BxwluNPkZI5OelZBKGT2jkZmldZhI6q 7z6zrRU0uIL6p6zqh48ncTMVZeIsYTUIZLM1LB8OnG70ODDhMlFxXtGgMMGWua+u24L2 Vyx2ThCLZA6Ut3CKMn9jBdySm22cxDjyrq0oxvpEQH3LeTR7UeAz4n+/mYrllYqEELgv ZcG6yTbn1nILctYP65cfehBg37z5ZHkGrPNsSlEuL2wBFF87j+QLFHcVjmInAypFaGbC KxZr0RetfVIBqGj4JluBH2eFfVf63LCzpvc1RDE4y9Db1QPdNwSCLcJDYWLoMgXBtzHY qcmg== MIME-Version: 1.0 References: <20190118115004.1a51eefc@archvm> In-Reply-To: <20190118115004.1a51eefc@archvm> From: Peng Yu Date: Mon, 21 Jan 2019 02:54:00 -0000 Message-ID: Subject: How to set the same command for all the breakpoints in gdb? To: "gdb@sourceware.org" Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes X-SW-Source: 2019-01/txt/msg00012.txt.bz2 gdb manual says the following. But I want to set the same command for all breakpoints and I don't want to know the number of all the breakpoints. Is there a syntax to specify all the breakpoints? Thanks. *Some GDB commands accept a range of breakpoints on which to operate. A breakpoint range is either a single breakpoint number, like `5', or two such numbers, in increasing order, separated by a hyphen, like `5-7'. When a breakpoint range is given to a command, all breakpoint in that range are operated on.* -- Regards, Peng