From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 35821 invoked by alias); 30 Mar 2015 09:57:43 -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 35808 invoked by uid 89); 30 Mar 2015 09:57:42 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=3.0 required=5.0 tests=AWL,BAYES_20,FREEMAIL_FROM,KAM_FROM_URIBL_PCCC,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2 X-HELO: mail-ig0-f173.google.com Received: from mail-ig0-f173.google.com (HELO mail-ig0-f173.google.com) (209.85.213.173) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Mon, 30 Mar 2015 09:57:41 +0000 Received: by igbud6 with SMTP id ud6so69393937igb.1 for ; Mon, 30 Mar 2015 02:57:39 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.107.152.211 with SMTP id a202mr46668082ioe.59.1427709458922; Mon, 30 Mar 2015 02:57:38 -0700 (PDT) Received: by 10.36.115.204 with HTTP; Mon, 30 Mar 2015 02:57:38 -0700 (PDT) In-Reply-To: References: Date: Mon, 30 Mar 2015 09:57: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/msg00111.txt.bz2 I want to manually write log by myself, any APIs? 2015-03-30 16:09 GMT+08:00 Fei Ding : > 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.