-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow attaching to the sidecar via gdb #687
Conversation
8a01bf4
to
549a16d
Compare
It worked when DD_SPAWN_WORKER_USE_EXEC=1 was set, but not generally. Having a /proc/<pid>/X path will tell gdb exactly where to find it, instead of a /proc/self/fd/X which is pointing into gdbs own process from the perspective of gdb. This also prevented sidecar core dumps from being opened with gdb, which was rather ugly. Signed-off-by: Bob Weinand <bob.weinand@datadoghq.com>
549a16d
to
1a7d347
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #687 +/- ##
==========================================
+ Coverage 71.79% 71.82% +0.03%
==========================================
Files 271 271
Lines 40982 40982
==========================================
+ Hits 29422 29435 +13
+ Misses 11560 11547 -13
|
BenchmarksComparisonBenchmark execution time: 2024-10-22 16:16:04 Comparing candidate commit 1a7d347 in PR branch Found 0 performance improvements and 0 performance regressions! Performance is the same for 51 metrics, 2 unstable metrics. CandidateCandidate benchmark detailsGroup 1
Group 2
Group 3
Group 4
Group 5
Group 6
Group 7
Group 8
Group 9
Group 10
Group 11
Group 12
BaselineOmitted due to size. |
It worked when DD_SPAWN_WORKER_USE_EXEC=1 was set, but not generally. Having a /proc//X path will tell gdb exactly where to find it, instead of a /proc/self/fd/X which is pointing into gdbs own process from the perspective of gdb.
This also prevented sidecar core dumps from being opened with gdb, which was rather ugly.
(Also updates the Cargo.toml of trace-utils to include the required hyper runtime, otherwise the server feature will fail to compile...)