* debug in assembler
@ 2004-08-25 7:41 sevtov
2004-08-25 9:49 ` Monika Chaddha
0 siblings, 1 reply; 3+ messages in thread
From: sevtov @ 2004-08-25 7:41 UTC (permalink / raw)
To: gdb
Hello all!
Is there a command to switch debugging to assembler level instead of
source-level?
Thank you.
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: debug in assembler
2004-08-25 7:41 debug in assembler sevtov
@ 2004-08-25 9:49 ` Monika Chaddha
2004-08-25 13:20 ` Kris Warkentin
0 siblings, 1 reply; 3+ messages in thread
From: Monika Chaddha @ 2004-08-25 9:49 UTC (permalink / raw)
To: 'sevtov'; +Cc: gdb
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.
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: debug in assembler
2004-08-25 9:49 ` Monika Chaddha
@ 2004-08-25 13:20 ` Kris Warkentin
0 siblings, 0 replies; 3+ messages in thread
From: Kris Warkentin @ 2004-08-25 13:20 UTC (permalink / raw)
To: Monika Chaddha; +Cc: 'sevtov', gdb
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.
>>
>>
>>
>
>
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-08-25 13:20 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-25 7:41 debug in assembler sevtov
2004-08-25 9:49 ` Monika Chaddha
2004-08-25 13:20 ` Kris Warkentin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox