From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28287 invoked by alias); 19 Mar 2014 19:04:56 -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 28273 invoked by uid 89); 19 Mar 2014 19:04:55 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_SOFTFAIL autolearn=no version=3.3.2 X-HELO: mtaout22.012.net.il Received: from mtaout22.012.net.il (HELO mtaout22.012.net.il) (80.179.55.172) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 19 Mar 2014 19:04:53 +0000 Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0N2P006005LY2N00@a-mtaout22.012.net.il> for gdb@sourceware.org; Wed, 19 Mar 2014 21:04:51 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N2P005D16C2TN90@a-mtaout22.012.net.il>; Wed, 19 Mar 2014 21:04:51 +0200 (IST) Date: Wed, 19 Mar 2014 19:04:00 -0000 From: Eli Zaretskii Subject: Re: "disassemble" shows code, but not with /m In-reply-to: <20140319184506.GA25053@host2.jankratochvil.net> To: Jan Kratochvil Cc: gdb@sourceware.org Reply-to: Eli Zaretskii Message-id: <83txau80wx.fsf@gnu.org> References: <83y50684dd.fsf@gnu.org> <20140319184506.GA25053@host2.jankratochvil.net> X-IsSubscribed: yes X-SW-Source: 2014-03/txt/msg00057.txt.bz2 > Date: Wed, 19 Mar 2014 19:45:06 +0100 > From: Jan Kratochvil > Cc: gdb@sourceware.org > > On Wed, 19 Mar 2014 18:50:22 +0100, Eli Zaretskii wrote: > > IOW, the /m switch somehow inhibits the disassembly. > > The /m switch is broken for -O2 -g code even if it prints something: That executable is compiled with -O0, not -O2. Sorry I didn't mention that. Also, the /m switch does work for functions not declared inline in the same executable. > http://sourceware.org/bugzilla/show_bug.cgi?id=11833 That bug does not show such a complete failure to disassembly that I experienced. > Use objdump -dS in these cases - that one works > (although I prefer rather objdump -dl for -O2 -g cases). Thanks for the tip. > /m is dependent on .debug_line which I guess is not right in your inferior. Why not? it has DWARF2 debug info.