This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
RE: debug in assembler
- From: "Monika Chaddha" <monika at acmet dot com>
- To: "'sevtov'" <sevtov at mail dot ru>
- Cc: <gdb at sources dot redhat dot com>
- Date: Wed, 25 Aug 2004 15:18:58 +0530
- Subject: RE: debug in assembler
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.
>