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

Add support for LLDB debugserver breakpoints

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.3.3
    • Component/s: Testing Infrastructure
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Sprint:
      Security 2019-12-16, Security 2019-12-30, Security 2019-01-13

      Description

      Right now, we are able to spawn a gdbserver from inside code so we can debug with gdb using jstests or in other situations where running `gdb ./mongod` is not convenient/possible. This handy feature does not work on MacOS, since their gdb package does not contain gdbserver.

      I propose adding the ability to do the same thing with LLDB's debugserver, which functions mostly the same way. This way, we can use this debugging functionality on MacOS.

      I have gotten it to work on my Macbook, but theoretically this should be able to work fine on any other operating system that supports LLDB as well.

      I have a PoC here, which would obviously need changes (like not having a hardcoded path) before it were committed to master

      https://gist.github.com/super-cooper/6c3be5e6e06949ab4af32c31babe9f17

        Attachments

          Activity

            People

            Assignee:
            adam.cooper Adam Cooper (Inactive)
            Reporter:
            adam.cooper Adam Cooper (Inactive)
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: