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 breakpoints/16729] New: wrong tracepoint bytedcode doumentation for rot


https://sourceware.org/bugzilla/show_bug.cgi?id=16729

            Bug ID: 16729
           Summary: wrong tracepoint bytedcode doumentation for rot
           Product: gdb
           Version: 7.7
            Status: NEW
          Severity: normal
          Priority: P2
         Component: breakpoints
          Assignee: unassigned at sourceware dot org
          Reporter: toma.bilius at enea dot com

The description for rot function from
https://sourceware.org/gdb/onlinedocs/gdb/Bytecode-Descriptions.html specifies
that rot should do the rotation a b c -> c b a. However, in the implementation
(gdb_eval_agent_expr) the rotation is a b c -> c a b

Here is the code that does this:

          case gdb_agent_op_rot:
      {
        ULONGEST tem = stack[sp - 1];

        stack[sp - 1] = stack[sp - 2];
        stack[sp - 2] = top;
        top = tem;
      }
      break;

-- 
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]