From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32043 invoked by alias); 12 Apr 2013 09:29:52 -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 32029 invoked by uid 89); 12 Apr 2013 09:29:51 -0000 X-Spam-SWARE-Status: No, score=-4.2 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_NO,RCVD_IN_NIX_SPAM,SPF_SOFTFAIL autolearn=no version=3.3.1 Received: from mtaout20.012.net.il (HELO mtaout20.012.net.il) (80.179.55.166) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Fri, 12 Apr 2013 09:29:50 +0000 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0ML400F00XGTLP00@a-mtaout20.012.net.il> for gdb@sourceware.org; Fri, 12 Apr 2013 12:29:09 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0ML400FWJYCLL160@a-mtaout20.012.net.il>; Fri, 12 Apr 2013 12:29:09 +0300 (IDT) Date: Fri, 12 Apr 2013 09:29:00 -0000 From: Eli Zaretskii Subject: Re: Completion on static functions In-reply-to: <5167C3E2.9070305@stusta.mhn.de> To: Markus Teich Cc: gdb@sourceware.org Reply-to: Eli Zaretskii Message-id: <83d2u09jx4.fsf@gnu.org> References: <83d2u6cnkv.fsf@gnu.org> <83li8o9sph.fsf@gnu.org> <20130412064749.GA14827@host2.jankratochvil.net> <83hajc9ng9.fsf@gnu.org> <5167C3E2.9070305@stusta.mhn.de> X-SW-Source: 2013-04/txt/msg00031.txt.bz2 > Date: Fri, 12 Apr 2013 10:20:50 +0200 > From: Markus Teich > > Try compiling with -O0 to see if these functions indeed get inlined. No need to recompile: (gdb) info address print_header_stamp Symbol "print_header_stamp" is a function at address 0x401cec. (gdb) info address main Symbol "main" is a function at address 0x427b10. But: (gdb) info address generate_full_header No symbol "generate_full_header" in current context. And if I disassemble the code, I don't see any call instructions for that function (nor even its caller, configure_shar, and its caller's caller, initialize). So I think it's quite clear that this function is inlined, as are many others in that program.