Skip to content

Commit 45b6f40

Browse files
viuginick1valich
authored andcommitted
Revert "notify debugger about gdb_wrapper pid to kill it when debugging finished (#149)"
This reverts commit bff3618
1 parent 235f8fa commit 45b6f40

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

bin/gdb_wrapper

+1-4
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,7 @@ unless options.ruby_path
6565
exit 1
6666
end
6767

68-
main_process_argv = ARGV
69-
main_process_argv << '--gdb-wrapper-pid' << "#{Process.pid}"
70-
argv = '["' + main_process_argv * '", "' + '"]'
71-
68+
argv = '["' + ARGV * '", "' + '"]'
7269
child_argv = '["' + ARGV * '", "' + "', '--ignore-port" + '"]'
7370
debugger_loader_path = File.expand_path(File.dirname(__FILE__)) + '/../lib/ruby-debug-ide/attach/debugger_loader'
7471

bin/rdebug-ide

-4
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ options = OpenStruct.new(
2828
'value_as_nested_element' => false,
2929
'attach_mode' => false,
3030
'cli_debug' => false,
31-
'gdb_wrapper_pid' => nil,
3231
'key_value_mode' => false
3332
)
3433

@@ -44,8 +43,6 @@ EOB
4443

4544
opts.on("-h", "--host HOST", "Host name used for remote debugging") {|host| options.host = host}
4645
opts.on("-p", "--port PORT", Integer, "Port used for remote debugging") {|port| options.port = port}
47-
opts.on("-gdbp", "--gdb-wrapper-pid PID", Integer, "Pid of corresponding gdb_wrapper (for attach case)") {|pid| options.gdb_wrapper_pid = pid}
48-
4946
opts.on("--dispatcher-port PORT", Integer, "Port used for multi-process debugging dispatcher") do |dp|
5047
options.dispatcher_port = dp
5148
end
@@ -176,7 +173,6 @@ Debugger.value_as_nested_element = options.value_as_nested_element || options.rm
176173
Debugger.key_value_mode = options.key_value_mode
177174

178175
if options.attach_mode
179-
at_exit {Process.kill('INT', options.gdb_wrapper_pid)} if options.gdb_wrapper_pid
180176
if Debugger::FRONT_END == "debase"
181177
Debugger.init_variables
182178
end

0 commit comments

Comments
 (0)