From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14205 invoked by alias); 19 Mar 2014 18:45:20 -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 14189 invoked by uid 89); 19 Mar 2014 18:45:19 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-4.1 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 19 Mar 2014 18:45:17 +0000 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s2JIjDuF007045 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 19 Mar 2014 14:45:13 -0400 Received: from host2.jankratochvil.net (ovpn-116-22.ams2.redhat.com [10.36.116.22]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id s2JIj7q7017990 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Wed, 19 Mar 2014 14:45:11 -0400 Date: Wed, 19 Mar 2014 18:45:00 -0000 From: Jan Kratochvil To: Eli Zaretskii Cc: gdb@sourceware.org Subject: Re: "disassemble" shows code, but not with /m Message-ID: <20140319184506.GA25053@host2.jankratochvil.net> References: <83y50684dd.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <83y50684dd.fsf@gnu.org> User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes X-SW-Source: 2014-03/txt/msg00056.txt.bz2 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: disassemble/m should be PC-driven, not source line driven http://sourceware.org/bugzilla/show_bug.cgi?id=11833 Use objdump -dS in these cases - that one works (although I prefer rather objdump -dl for -O2 -g cases). /m is dependent on .debug_line which I guess is not right in your inferior. Jan