From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6632 invoked by alias); 31 Jul 2004 18:44:32 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 6623 invoked from network); 31 Jul 2004 18:44:31 -0000 Received: from unknown (HELO aragorn.inter.net.il) (192.114.186.23) by sourceware.org with SMTP; 31 Jul 2004 18:44:31 -0000 Received: from zaretski (pns03-201-72.inter.net.il [80.230.201.72]) by aragorn.inter.net.il (MOS 3.4.6-GR) with ESMTP id DZU17192; Sat, 31 Jul 2004 21:44:04 +0300 (IDT) Date: Sat, 31 Jul 2004 18:44:00 -0000 From: "Eli Zaretskii" To: Michael Chastain Message-Id: <7821-Sat31Jul2004214202+0300-eliz@gnu.org> CC: kettenis@chello.nl, gdb-patches@sources.redhat.com In-reply-to: <410BB62F.nailFX111607H@mindspring.com> (message from Michael Chastain on Sat, 31 Jul 2004 11:09:35 -0400) Subject: Re: [PATCH] Partial fix for PR backtrace/1718 Reply-to: Eli Zaretskii References: <200407241259.i6OCxu8R041119@elgar.kettenis.dyndns.org> <9178-Fri30Jul2004213249+0300-eliz@gnu.org> <200407302007.i6UK7ufh028813@elgar.kettenis.dyndns.org> <8632-Sat31Jul2004163849+0300-eliz@gnu.org> <410BB62F.nailFX111607H@mindspring.com> X-SW-Source: 2004-07/txt/msg00545.txt.bz2 > Date: Sat, 31 Jul 2004 11:09:35 -0400 > From: Michael Chastain > > 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?