From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 48827 invoked by alias); 30 Mar 2015 08:09:53 -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 48813 invoked by uid 89); 30 Mar 2015 08:09:52 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=2.7 required=5.0 tests=AWL,BAYES_05,FREEMAIL_FROM,KAM_FROM_URIBL_PCCC,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2 X-HELO: mail-ie0-f172.google.com Received: from mail-ie0-f172.google.com (HELO mail-ie0-f172.google.com) (209.85.223.172) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Mon, 30 Mar 2015 08:09:51 +0000 Received: by iedfl3 with SMTP id fl3so125351244ied.1 for ; Mon, 30 Mar 2015 01:09:49 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.50.131.196 with SMTP id oo4mr16022984igb.2.1427702989647; Mon, 30 Mar 2015 01:09:49 -0700 (PDT) Received: by 10.36.115.204 with HTTP; Mon, 30 Mar 2015 01:09:49 -0700 (PDT) In-Reply-To: References: Date: Mon, 30 Mar 2015 08:09:00 -0000 Message-ID: Subject: Re: Does GDB has 'quiet mode', and does GDB has APIs for writing log From: Fei Ding To: "gdb@sourceware.org" Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2015-03/txt/msg00110.txt.bz2 And I found https://sourceware.org/gdb/current/onlinedocs/gdb/Logging-Output.html#Logging-Output is helpful, I will check this out first. 2015-03-30 15:33 GMT+08:00 Fei Ding : > Hi all: > > I've modified GDB to support set breakpoints automatically according > to a file containing all the EIP/RIP address that will be checked (a > litter bit like `gdb -x file` command). But, the amount of breakpoints > is too large, at least 10000, so I do not want to get any output like > `Breakpoint 1, fun2 () at main.c:35` on my screen, I want GDB to be > quiet at this time. Does GDB has something like `quiet mode`? Or, can > I redirect these hints into a file? > > And, I want to write log when GDB is in `quiet mode`, does GDB has any > APIs to support log? > > Thanks! > > BR.