From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5603 invoked by alias); 4 Mar 2009 22:10:23 -0000 Received: (qmail 5593 invoked by uid 22791); 4 Mar 2009 22:10:22 -0000 X-SWARE-Spam-Status: No, hits=-1.5 required=5.0 tests=AWL,BAYES_00,SPF_SOFTFAIL X-Spam-Check-By: sourceware.org Received: from mtaout2.012.net.il (HELO mtaout2.012.net.il) (84.95.2.4) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 04 Mar 2009 22:10:15 +0000 Received: from conversion-daemon.i_mtaout2.012.net.il by i_mtaout2.012.net.il (HyperSendmail v2004.12) id <0KG000M0056MEC00@i_mtaout2.012.net.il> for gdb@sourceware.org; Thu, 05 Mar 2009 00:10:52 +0200 (IST) Received: from HOME-C4E4A596F7 ([84.229.248.57]) by i_mtaout2.012.net.il (HyperSendmail v2004.12) with ESMTPA id <0KG000E6O5M32WO0@i_mtaout2.012.net.il>; Thu, 05 Mar 2009 00:10:52 +0200 (IST) Date: Wed, 04 Mar 2009 22:10:00 -0000 From: Eli Zaretskii Subject: Re: What about add a interface to output the assembly codes =?iso-8859-1?q?follow=09inferior?= execution In-reply-to: <200903041920.51471.pedro@codesourcery.com> To: Pedro Alves Cc: gdb@sourceware.org, dje@google.com, teawater@gmail.com, drow@false.org Reply-to: Eli Zaretskii Message-id: References: <200903041920.51471.pedro@codesourcery.com> X-IsSubscribed: yes 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: 2009-03/txt/msg00045.txt.bz2 > From: Pedro Alves > Date: Wed, 4 Mar 2009 19:20:50 +0000 > Cc: Doug Evans , > teawater@gmail.com, > drow@false.org > > show-opcodes suggests to me that we're doing to show raw, numeric > opcodes, which IIUC, is not what is being suggested. > > "disassembly" suggests to me that we're doing to show > assembly mneumonics, which I thought was what is being proposed. Actually, what was suggested does both: 26 printf ("a = %d b = %d c = %d\n", a, b, c); 80483fe: 8b 15 84 96 04 08 mov 0x8049684,%edx 8048404: 8b 45 f4 mov -0xc(%ebp),%eax 8048407: 89 44 24 0c mov %eax,0xc(%esp) 804840b: 8b 45 f8 mov -0x8(%ebp),%eax 804840e: 89 44 24 08 mov %eax,0x8(%esp) 8048412: 89 54 24 04 mov %edx,0x4(%esp) 8048416: c7 04 24 58 85 04 08 movl $0x8048558,(%esp) 804841d: e8 b6 fe ff ff call 80482d8 This assembly codes is for line 26 printf ("a = %d b = %d c = %d\n", a, b, c);