Can someone explain the output of this disassemly snippet?

Posted by Mask on Stack Overflow See other posts from Stack Overflow or by Mask
Published on 2010-04-05T06:02:39Z Indexed on 2010/04/05 6:13 UTC
Read the original article Hit count: 316

Filed under:
|

I used two different command x/w and disas at the same address 0x405130,get totally different output:

(gdb) x/w 0x405130
0x405130 <_imp__printf>:        0x77c1186a
(gdb) disas 0x405130
Dump of assembler code for function _imp__printf:
0x00405130 <_imp__printf+0>:    push   $0x18
0x00405132 <_imp__printf+2>:    (bad)
0x00405133 <_imp__printf+3>:    ja     0x405109 <_imp___iob+1>
End of assembler dump.

I don't understand why it's like this,can anyone explain it?

© Stack Overflow or respective owner

Related posts about disassembling

Related posts about gdb