From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27407 invoked by alias); 15 Nov 2009 11:42:24 -0000 Received: (qmail 27390 invoked by uid 22791); 15 Nov 2009 11:42:24 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail-yx0-f180.google.com (HELO mail-yx0-f180.google.com) (209.85.210.180) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 15 Nov 2009 11:41:19 +0000 Received: by yxe10 with SMTP id 10so4230916yxe.12 for ; Sun, 15 Nov 2009 03:41:18 -0800 (PST) MIME-Version: 1.0 Received: by 10.150.162.18 with SMTP id k18mr1540851ybe.155.1258285278045; Sun, 15 Nov 2009 03:41:18 -0800 (PST) Date: Sun, 15 Nov 2009 17:30:00 -0000 Message-ID: <31cff80d0911150341xcbd1ec8l661fd9bbc944fa91@mail.gmail.com> Subject: gdb basic questions From: ranjith kumar To: gdb@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes 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 X-SW-Source: 2009-11/txt/msg00143.txt.bz2 hi, I am new to gdb. I have 3 questions. Suppose that we want to keep a breakpoint at a function say 'myfunction', we will a gdb command (gdb) b myfunction at gdb command prompt. What I want is keep breakpoints at, say, 1000 functions. But I cant type 1000 times '(gdb) b functionname'. 1) Is there any way to keep breakpoints at 1000 functions, without typing ?( Assume I have saved all 1000 funcion names in a file) 2) Generally, is it possible to ask gdb to go and read 'gdb commands' from a file? 3) Another question. Sometimes gdb diplays a message like below and waits for user to type 'y or n'. "Make breakpoint pending on future shared library load? (y or [n]) " How to tell gdb to not to wait for input from user and assume that user has typed 'y' always ? Thanks in advance.