Re: jumps to middle of x86 instructions ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux