From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27579 invoked by alias); 20 Mar 2015 08:05: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 27568 invoked by uid 89); 20 Mar 2015 08:05:42 -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-ie0-f175.google.com Received: from mail-ie0-f175.google.com (HELO mail-ie0-f175.google.com) (209.85.223.175) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Fri, 20 Mar 2015 08:05:41 +0000 Received: by iecsl2 with SMTP id sl2so86256198iec.1 for ; Fri, 20 Mar 2015 01:05:39 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.50.87.42 with SMTP id u10mr2835665igz.31.1426838739035; Fri, 20 Mar 2015 01:05:39 -0700 (PDT) Received: by 10.36.115.204 with HTTP; Fri, 20 Mar 2015 01:05:39 -0700 (PDT) Date: Fri, 20 Mar 2015 08:05:00 -0000 Message-ID: Subject: Problem about 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/msg00074.txt.bz2 I've send a mail talking about problem about getopt.c, and I will describe it a litter clear here. I want to trace source code of _getopt_internal() in getopt.c, so I try to make a breakpoint on _getopt_internal, but gdb tell me there is no such symbol and breakpoint set failed, so, I try to set breakpoint as filename:linenum, but I cannot get getopt.c, gdb tell me no such file. I set the directiory, no effect. And then, I use nm tool of UNIX to check libiberty.a, which getopt.o will be merged into. And I get this: ///////////////////////////////////////// getopt.o: getopt1.o: getpwd.o: U __errno_location 0000000000000008 b failure_errno.3486 U free U getcwd U getenv 0000000000000000 T getpwd 0000000000000000 b pwd.3485 U stat U xmalloc ///////////////////////////////////////// Nothing there in getopt.o and getopt1.o, it is so strange to me. What's more, I write a printf() in the beginning of _getopt_internal(), and make clean && make && make install, but there is no printing message. Did I miss something?