From: Kris Warkentin <kewarken@qnx.com>
To: Monika Chaddha <monika@acmet.com>
Cc: "'sevtov'" <sevtov@mail.ru>, gdb@sources.redhat.com
Subject: Re: debug in assembler
Date: Wed, 25 Aug 2004 13:20:00 -0000 [thread overview]
Message-ID: <412C8FCC.7040900@qnx.com> (raw)
In-Reply-To: <001601c48a88$c22c6050$5100a8c0@monika>
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.
>>
>>
>>
>
>
>
>
prev parent reply other threads:[~2004-08-25 13:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-25 7:41 sevtov
2004-08-25 9:49 ` Monika Chaddha
2004-08-25 13:20 ` Kris Warkentin [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=412C8FCC.7040900@qnx.com \
--to=kewarken@qnx.com \
--cc=gdb@sources.redhat.com \
--cc=monika@acmet.com \
--cc=sevtov@mail.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox