Expose gdbserver in Bazel

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • DevProd Build
    • Fully Compatible
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      From mathias@mongodb.com:

      One possible workflow is bazel run +fail_point_test --run_under="/opt/mongodbtoolchain/v5/bin/gdbserver localhost:12345" and then in another terminal /opt/mongodbtoolchain/v5/bin/gdb -ex 'target remote localhost:12345'
      
      That will launch the test with gdbserver attached such that it will pause before starting. Then the other terminal can set breakpoints or just run c (or continue) to run the process
      
      We may want to expose //:gdbserver or at least @gdb_v5//:gdbserver so that it doesn't need to use the installed toolchain
      

            Assignee:
            Zack Winter
            Reporter:
            Zack Winter
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: