From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2959 invoked by alias); 25 Aug 2004 13:20:46 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 2947 invoked from network); 25 Aug 2004 13:20:45 -0000 Received: from unknown (HELO hub.ott.qnx.com) (209.226.137.76) by sourceware.org with SMTP; 25 Aug 2004 13:20:45 -0000 Received: from smtp.ott.qnx.com (smtp.ott.qnx.com [10.0.2.158]) by hub.ott.qnx.com (8.9.3/8.9.3) with ESMTP id IAA22337; Wed, 25 Aug 2004 08:35:09 -0400 Received: from [10.12.1.181] (dhcpa181 [10.12.1.181]) by smtp.ott.qnx.com (8.8.8/8.6.12) with ESMTP id JAA08725; Wed, 25 Aug 2004 09:10:11 -0400 Message-ID: <412C8FCC.7040900@qnx.com> Date: Wed, 25 Aug 2004 13:20:00 -0000 From: Kris Warkentin User-Agent: Mozilla Thunderbird 0.7.3 (Windows/20040803) MIME-Version: 1.0 To: Monika Chaddha CC: "'sevtov'" , gdb@sources.redhat.com Subject: Re: debug in assembler References: <001601c48a88$c22c6050$5100a8c0@monika> In-Reply-To: <001601c48a88$c22c6050$5100a8c0@monika> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2004-08/txt/msg00365.txt.bz2 A handy thing to do is 'display /i $pc'. This will print the current assembly instruction on the screen after every step. cheers, Kris Monika Chaddha wrote: >Yes ... :-)) > >Use the following commands in the following series ... > >1. target exec .out > >2. target sim > >3. load .out > >4. symbol-file > >5. b main (put breakpoint to function main) > >6. run > >7. nexti > >8. nexti .... > >By doing this u can easily debug .... to see disassembly for ur assembly >code > >Run the command : disassemble > >Monika > > > >>-----Original Message----- >>From: gdb-owner@sources.redhat.com >> >> >[mailto:gdb-owner@sources.redhat.com] On > > >>Behalf Of sevtov >>Sent: Wednesday, August 25, 2004 1:07 PM >>To: gdb@sources.redhat.com >>Subject: debug in assembler >> >>Hello all! >> >>Is there a command to switch debugging to assembler level instead of >>source-level? >> >> >>Thank you. >> >> >> > > > >