From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10498 invoked by alias); 11 Jun 2012 20:42:09 -0000 Received: (qmail 10485 invoked by uid 22791); 11 Jun 2012 20:42:08 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org Received: from mail-out.m-online.net (HELO mail-out.m-online.net) (212.18.0.10) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 11 Jun 2012 20:41:54 +0000 Received: from frontend1.mail.m-online.net (frontend1.mail.intern.m-online.net [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id 3WB5kQ03BMz3hhXY; Mon, 11 Jun 2012 22:42:06 +0200 (CEST) Received: from igel.home (ppp-88-217-105-24.dynamic.mnet-online.de [88.217.105.24]) by mail.mnet-online.de (Postfix) with ESMTPA id 3WB5k91s9nz4KK2h; Mon, 11 Jun 2012 22:41:53 +0200 (CEST) Received: by igel.home (Postfix, from userid 501) id DA95ECA2A2; Mon, 11 Jun 2012 22:41:52 +0200 (CEST) From: Andreas Schwab To: Hui Zhu Cc: gdb@sourceware.org Subject: Re: [Question] does GDB have a commands to get the end address of a function? References: X-Yow: Now, let's SEND OUT for QUICHE!! Date: Mon, 11 Jun 2012 20:42:00 -0000 In-Reply-To: (Hui Zhu's message of "Mon, 11 Jun 2012 17:36:02 +0800") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain 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: 2012-06/txt/msg00052.txt.bz2 Hui Zhu writes: > Does GDB have an command to output the end address of a function? The end address of a function is not well defined (and neither is the beginning address of a function). It is perfectly valid for two functions to be interleaved in some way, or having their code spread out in non-contiguous regions. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."