From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14478 invoked by alias); 22 Dec 2014 10:40:17 -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 14460 invoked by uid 89); 22 Dec 2014 10:40:16 -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_50,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: nm5-vm0.bullet.mail.bf1.yahoo.com Received: from nm5-vm0.bullet.mail.bf1.yahoo.com (HELO nm5-vm0.bullet.mail.bf1.yahoo.com) (98.139.213.150) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Mon, 22 Dec 2014 10:40:15 +0000 Received: from [98.139.214.32] by nm5.bullet.mail.bf1.yahoo.com with NNFMP; 22 Dec 2014 10:40:13 -0000 Received: from [98.139.212.192] by tm15.bullet.mail.bf1.yahoo.com with NNFMP; 22 Dec 2014 10:40:13 -0000 Received: from [127.0.0.1] by omp1001.mail.bf1.yahoo.com with NNFMP; 22 Dec 2014 10:40:13 -0000 Received: by 66.196.81.112; Mon, 22 Dec 2014 10:40:13 +0000 Date: Mon, 22 Dec 2014 10:40:00 -0000 From: Mahmood N Reply-To: Mahmood N To: Jan Kratochvil Cc: "gdb@sourceware.org" Message-ID: <829998882.105409.1419244812763.JavaMail.yahoo@jws10620.mail.bf1.yahoo.com> In-Reply-To: <20141222101613.GA15179@host2.jankratochvil.net> References: <20141222101613.GA15179@host2.jankratochvil.net> Subject: Re: Passing piped commands as argument to gdb MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2014-12/txt/msg00031.txt.bz2 Thanks. Generally it works. However, when I start the command, the program is run, I want to set a breakpoint at line 26 in my code which is the beginning of the readings However, here is what I get $ g++ -g -ggdb -o dir-pred dir-pred.cpp $ rm pipe $ mknod pipe p $ bzcat file.bz2 > pipe & [1] 18321 $ gdb GNU gdb (GDB) Red Hat Enterprise Linux (7.2-60.el6) (gdb) break dir-pred.cpp:26 No symbol table is loaded. Use the "file" command. Make breakpoint pending on future shared library load? (y or [n]) Should I say Y or N? Regards, Mahmood