This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Partial fix for PR backtrace/1718


> Date: Sat, 31 Jul 2004 11:09:35 -0400
> From: Michael Chastain <mec.gnu@mindspring.com>
> 
> Opcodes 0xb8 to 0xba are for "move immediate", which moves a constant
> immediate value into a register.  Opcodes 0xa1 and 0x8b are for "move
> register/memory".
> 
> These are different instructions.  In C terms,
> 
>   eax = 0x375aa0;            /* move immediate, opcode 0xb8 + rd */
>   ebx = 0x375aa0;            /* move immediate, opcode 0xb8 + rd */
>   eax = * (int *) 0x375aa0;  /* move r/m, opcode 0xa1 */
>   ebx = * (int *) 0x375aa0;  /* move r/m, opcode 0x8b + /r */

Right.

Perhaps, then, you could post a list of all the opcodes and subsequent
bytes that we need to cover in i386_analyze_frame_setup?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]