summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/debugpy/hardcode-gdb.patch
diff options
context:
space:
mode:
authorVladimír Čunát <v@cunat.cz>2020-07-04 09:10:10 +0200
committerVladimír Čunát <v@cunat.cz>2020-07-04 09:15:27 +0200
commite1206a21290c4bd4aa3c2ac76bd7a850ab990344 (patch)
treef80b0a8594b5adca0ce53e1b1032ad9bbb89079f /pkgs/development/python-modules/debugpy/hardcode-gdb.patch
parentdeb78151a9438fb202842d9dbe348365cfd767e0 (diff)
parent9f93642b79ad4f6ac95300522dd690dac02f0066 (diff)
Merge master into staging-next
This brings thousands of rebuilds. Hydra nixpkgs: ?compare=1597944
Diffstat (limited to 'pkgs/development/python-modules/debugpy/hardcode-gdb.patch')
-rw-r--r--pkgs/development/python-modules/debugpy/hardcode-gdb.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/debugpy/hardcode-gdb.patch b/pkgs/development/python-modules/debugpy/hardcode-gdb.patch
new file mode 100644
index 000000000000..780cb1aed1c4
--- /dev/null
+++ b/pkgs/development/python-modules/debugpy/hardcode-gdb.patch
@@ -0,0 +1,13 @@
+diff --git a/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/add_code_to_python_process.py b/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/add_code_to_python_process.py
+index 6d031b4..ecf21f2 100644
+--- a/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/add_code_to_python_process.py
++++ b/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/add_code_to_python_process.py
+@@ -293,7 +293,7 @@ def run_python_code_linux(pid, python_code, connect_debugger_tracing=False, show
+ is_debug = 0
+ # Note that the space in the beginning of each line in the multi-line is important!
+ cmd = [
+- 'gdb',
++ '@gdb@/bin/gdb',
+ '--nw', # no gui interface
+ '--nh', # no ~/.gdbinit
+ '--nx', # no .gdbinit