From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 56976 invoked by alias); 20 Mar 2015 08:20:30 -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 56964 invoked by uid 89); 20 Mar 2015 08:20:29 -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_40,FREEMAIL_FROM,KAM_FROM_URIBL_PCCC,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2 X-HELO: mail-ig0-f173.google.com Received: from mail-ig0-f173.google.com (HELO mail-ig0-f173.google.com) (209.85.213.173) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Fri, 20 Mar 2015 08:20:28 +0000 Received: by igcau2 with SMTP id au2so11933397igc.0 for ; Fri, 20 Mar 2015 01:20:26 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.50.234.194 with SMTP id ug2mr23120646igc.39.1426839626731; Fri, 20 Mar 2015 01:20:26 -0700 (PDT) Received: by 10.36.115.204 with HTTP; Fri, 20 Mar 2015 01:20:26 -0700 (PDT) In-Reply-To: References: Date: Fri, 20 Mar 2015 08:20:00 -0000 Message-ID: Subject: Fwd: 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/msg00076.txt.bz2 And I am using gdb to debug gdb. You can get getopt.c in gdb/libiberty/getopt.c ---------- Forwarded message ---------- From: Fei Ding Date: 2015-03-20 16:05 GMT+08:00 Subject: Problem about getopt.c To: "gdb@sourceware.org" 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?