[Bug breakpoints/16729] New: wrong tracepoint bytedcode doumentation for rot

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug breakpoints/16729] New: wrong tracepoint bytedcode doumentation for rot

fweimer at redhat dot com
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.
Reply | Threaded
Open this post in threaded view
|

[Bug breakpoints/16729] wrong tracepoint bytedcode doumentation for rot

fweimer at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=16729

Toma Bilius <toma.bilius at enea dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |7.7

--
You are receiving this mail because:
You are on the CC list for the bug.
Reply | Threaded
Open this post in threaded view
|

[Bug breakpoints/16729] wrong tracepoint bytedcode doumentation for rot

fweimer at redhat dot com
In reply to this post by fweimer at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=16729

Tom Tromey <tromey at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |good-first-bug
                 CC|                            |tromey at sourceware dot org

--
You are receiving this mail because:
You are on the CC list for the bug.