From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26489 invoked by alias); 16 Sep 2014 23:12:22 -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 26461 invoked by uid 48); 16 Sep 2014 23:12:21 -0000 From: "dje at google dot com" To: gdb-prs@sourceware.org Subject: [Bug tdep/17400] New: buglet in rs6000-tdep.c:skip_prologue Date: Tue, 16 Sep 2014 23:12:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: tdep 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter Message-ID: 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-q3/txt/msg00671.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=17400 Bug ID: 17400 Summary: buglet in rs6000-tdep.c:skip_prologue Product: gdb Version: HEAD Status: NEW Severity: normal Priority: P2 Component: tdep Assignee: unassigned at sourceware dot org Reporter: dje at google dot com I happened to be single stepping through this function and noticed the cursor skipping over this particular test. gcc had optimized it out even though I had compiled gdb with -O0. Looking at the test it's easy to see why: it can never succeed. else if ((op & 0xfc1f016a) == 0x7c01016e) // <<<< can never succeed { /* stwux rX,r1,rY */ /* No way to figure out what r1 is going to be. */ fdata->frameless = 0; offset = fdata->offset; continue; } -- You are receiving this mail because: You are on the CC list for the bug.