This is the mail archive of the gdb-prs@sourceware.org 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]

[Bug tdep/17400] New: buglet in rs6000-tdep.c:skip_prologue


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.


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