From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 78078 invoked by alias); 30 Mar 2015 10:22:54 -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 78067 invoked by uid 89); 30 Mar 2015 10:22:53 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=2.8 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-ig0-f174.google.com Received: from mail-ig0-f174.google.com (HELO mail-ig0-f174.google.com) (209.85.213.174) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Mon, 30 Mar 2015 10:22:52 +0000 Received: by igbud6 with SMTP id ud6so69925154igb.1 for ; Mon, 30 Mar 2015 03:22:50 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.107.46.27 with SMTP id i27mr5137667ioo.5.1427710970433; Mon, 30 Mar 2015 03:22:50 -0700 (PDT) Received: by 10.36.115.204 with HTTP; Mon, 30 Mar 2015 03:22:50 -0700 (PDT) In-Reply-To: References: Date: Mon, 30 Mar 2015 10:22: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/msg00112.txt.bz2 The log's content and output file is up to me. For example I want to log the message `breakpoint hit! EIP is 0x12345` into a file `breakpoint.log` when a breakpoint is actually hit. 2015-03-30 17:57 GMT+08:00 Fei Ding : > 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.