From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 118188 invoked by alias); 22 Jan 2019 05:15: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 118133 invoked by uid 89); 22 Jan 2019 05:15:39 -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= X-HELO: mail-it1-f175.google.com Received: from mail-it1-f175.google.com (HELO mail-it1-f175.google.com) (209.85.166.175) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 22 Jan 2019 05:15:38 +0000 Received: by mail-it1-f175.google.com with SMTP id x124so8759123itd.1 for ; Mon, 21 Jan 2019 21:15:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=czNDskRB3lFrchWzAADJUeHr1tv0pc2ttU3HwRdxCYA=; b=IYbyO5nzzizUapO2YV1LYNj1YrJtPWXOsRXsbbeIv0dDWxLBt3kzQ78qPOnZbgWC68 iOyjyzgilNPGBl/pT+3C6xm/PiNmPa9A3pT/knmDmlmpCyNN1fjAhLRpatGDWYk0yIyO PwyzgmUdBjF++kIk+e5kMntQwxjfobA15iZwO4xla9Vj2mxVxk79dHMoCAEwJwcwy3hF sf8bl+5Rr5O72d9FJMC6Q/wRgcLp00M8DCTfs4q8wJV35l2wMlkghvg4AP4OLpVWpwbK /euaidxm2WVVyxLg4EbAiIJarl8UaDMJeTVU4d7yJjzJvgG2S94qTuYuzDhvfW8JUF7g Wj6w== MIME-Version: 1.0 From: Peng Yu Date: Tue, 22 Jan 2019 05:15:00 -0000 Message-ID: Subject: Does logging work with fifo? To: "gdb@sourceware.org" Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes X-SW-Source: 2019-01/txt/msg00020.txt.bz2 I use the following command in the batch mode to print out the backtrace information. /tmp/tmp.TNLBr685Zp is a fifo. ### set logging redirect set logging file /tmp/tmp.TNLBr685Zp set logging on commands 1-2644 backtrace 2 continue end run ### While the gdb process runs in the background (via & in shell), the fifo is catted (via the command cat) and piped (via pipeline '|' in shell) to a following process for reading and processing the logging output. However, it seems that sometimes it finishes prematurely. I have no clue what the problem is. Could it be that logging does not work well with fifo? Thanks. -- Regards, Peng