jumps to middle of x86 instructions ?

John Fine johnsfine@verizon.net
Sat Apr 5 01:09:00 GMT 2008


gdb has no generic way to know where instructions start.  The jump to 
6c00a is jumping to the beginning of an instruction, not the middle.  
The disassembly of instructions at 6c007, 6c009, 6c00f and 6c011 are all 
incorrect.  Those are all middles of instructions, not beginnings of 
instructions.

Mithun R N Iyer wrote:

>
>The code snippet looks like:
>0x0006c007 <strrchr+103>:       add    %al,(%eax)
>0x0006c009 <strrchr+105>:       add   
>%al,0xee8304ee(%ebx)
>0x0006c00f <strrchr+111>:       add    $0x83,%al
>0x0006c011 <strrchr+113>:       out    %al,(%dx)
>
>........
>0x0006c06a <strrchr+202>:       jae    0x6c00a
><strrchr+106> --- jmp to middle of instn.
>  
>



More information about the Gcc-help mailing list