From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 89312 invoked by alias); 20 Mar 2015 06:09:03 -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 89302 invoked by uid 89); 20 Mar 2015 06:09:03 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.7 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,KAM_FROM_URIBL_PCCC,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2 X-HELO: mail-ig0-f170.google.com Received: from mail-ig0-f170.google.com (HELO mail-ig0-f170.google.com) (209.85.213.170) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Fri, 20 Mar 2015 06:09:02 +0000 Received: by igcau2 with SMTP id au2so9937751igc.0 for ; Thu, 19 Mar 2015 23:09:00 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.42.93.83 with SMTP id w19mr1844205icm.37.1426831740076; Thu, 19 Mar 2015 23:09:00 -0700 (PDT) Received: by 10.36.115.204 with HTTP; Thu, 19 Mar 2015 23:09:00 -0700 (PDT) Date: Fri, 20 Mar 2015 06:09:00 -0000 Message-ID: Subject: No source file named getopt.c. From: Fei Ding To: "gdb@sourceware.org" Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2015-03/txt/msg00072.txt.bz2 Hi: I want to set a break point on some code in getopt.c, but I just got: //////////////////////////////////////////// (gdb) b getopt.c:100 No source file named getopt.c. //////////////////////////////////////////// then, I did this to add the source directory of that code, as: //////////////////////////////////////////// (gdb) directory /home/dingaaa/test/gdb-7.6/libiberty/ Source directories searched: /home/dingaaa/test/gdb-7.6/libiberty:$cdir:$cwd //////////////////////////////////////////// but still, I get //////////////////////////////////////////// (gdb) b getopt.c:100 No source file named getopt.c. //////////////////////////////////////////// BTW: I've changed Makefiles, with `-g -O0` What's the problem? Thanks.