Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-72752

Add C++ CodeFragment pretty printing of stackSize and fixups

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Query Execution
    • Fully Compatible
    • QE 2023-02-20, QE 2023-03-06

      [SERVER-74240 has been created for the Python pretty printer used by gdb. The current ticket is narrowed to just the C++ pretty printer. --kevin.cherkauer@mongodb.com ]

       

      Add pretty printing of sbe CodeFragment for stackSize, maxStackSize and all fixups. Possibly something like suggested by david.percy@mongodb.com  in

      https://github.com/10gen/mongo/pull/9493#discussion_r1060674192

      https://github.com/10gen/mongo/pull/9493#discussion_r1060681436

       

      Possibly something along the lines of:

       

      -- CODE:
      [0x0000-0x002f] stackSize: 1, maxStackSize: 3
      0x0000: pushConstVal(value: 10);
      ...
      0x0014: pushConstVal(value: Nothing);
      0x001e: sub(popLhs: 0, offsetLhs: 2, popRhs: 0, offsetRhs: 1);
      0x0022:    fixup: <frameId>
      0x0024:    fixup: <frameId>

       

            Assignee:
            kevin.cherkauer@mongodb.com Kevin Cherkauer
            Reporter:
            anna.wawrzyniak@mongodb.com Anna Wawrzyniak
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: