Bug 17400 - buglet in rs6000-tdep.c:skip_prologue
Summary: buglet in rs6000-tdep.c:skip_prologue
Status: RESOLVED DUPLICATE of bug 18295
Alias: None
Product: gdb
Classification: Unclassified
Component: tdep (show other bugs)
Version: HEAD
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-16 23:12 UTC by dje
Modified: 2024-01-12 15:32 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:
Project(s) to access:
ssh public key:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dje 2014-09-16 23:12:18 UTC
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;
        }
Comment 1 Hannes Domani 2024-01-12 15:32:56 UTC
Dup.

*** This bug has been marked as a duplicate of bug 18295 ***