debug in assembler

Kris Warkentin kewarken@qnx.com
Wed Aug 25 13:20:00 GMT 2004


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 <filename>.out
>
>2. target sim
>
>3. load <filename>.out
>
>4.  symbol-file <filename.out>
>
>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 <function name>
>
>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.
>>
>>    
>>
>
>
>  
>



More information about the Gdb mailing list