From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27729 invoked by alias); 29 Mar 2014 23:26:10 -0000 Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org Received: (qmail 27699 invoked by uid 48); 29 Mar 2014 23:26:09 -0000 From: "dje at google dot com" To: gdb-prs@sourceware.org Subject: [Bug threads/16778] amd64 displacement code oddity; segfault Date: Sat, 29 Mar 2014 23:26:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: threads X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dje at google dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-q1/txt/msg00493.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=16778 dje at google dot com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dje at google dot com --- Comment #3 from dje at google dot com --- The likely explanation is simple oversight from deriving the support from i386-tdep.c. regcache_cooked_read_unsigned (regs, I386_ESP_REGNUM, &esp); retaddr = read_memory_unsigned_integer (esp, retaddr_len, byte_order); retaddr = (retaddr - insn_offset) & 0xffffffffUL; write_memory_unsigned_integer (esp, retaddr_len, byte_order, retaddr); -- You are receiving this mail because: You are on the CC list for the bug.