[haiku-bugs] Re: [Haiku] #10958: Odd signal behavior when starting certain command line applications via Debugger

  • From: "bonefish" <trac@xxxxxxxxxxxx>
  • Date: Sat, 21 Jun 2014 08:47:10 -0000

#10958: Odd signal behavior when starting certain command line applications via
Debugger
-------------------------------------+----------------------------
   Reporter:  anevilyak              |      Owner:  anevilyak
       Type:  bug                    |     Status:  new
   Priority:  normal                 |  Milestone:  R1
  Component:  Applications/Debugger  |    Version:  R1/Development
 Resolution:                         |   Keywords:
 Blocked By:                         |   Blocking:
Has a Patch:  0                      |   Platform:  All
-------------------------------------+----------------------------
Changes (by bonefish):

 * owner:  nobody => anevilyak
 * component:  System => Applications/Debugger


Comment:

 To clarify: The mentioned IDEs have a console window/view. I'm not sure
 whether it is even a full-blown TTY. The debugged program certainly won't
 survive quitting the IDE. kdbg starts an xterm which it closes when
 quitting. So the situation is the same. I.e. being able to resume the
 debugged program after quitting the debugger doesn't seem to be a general
 expectation. At least when it was started by the debugger.

 We could relatively easily get around the restriction, though. A `debug`
 command line program could be created that clones debugger's command line
 options. It would start Debugger in the background (i.e. not associated
 with the TTY). When attaching the debugger to a running program, `debug`
 could quit immediately after sending the command line arguments to
 Debugger. When a debugged program is to be launched first, `debug` would
 launch the debugged program (upon Debugger's request) and continue running
 (respectively waiting) until the program quits and Debugger's team window
 has been closed (allows restarting the program). Even after quitting
 Debugger `debug` would continue until the program terminates. This would
 fix the issue this ticket is about.

 Regarding Debugger starting a new Terminal, that can certainly be added as
 an option.

 Anyway, I don't find either restriction (having to run a CLI program with
 Debugger from the command line, and not being able to resume a CLI program
 when quitting Debugger) that bad. IOW low priority IMO.

--
Ticket URL: <https://dev.haiku-os.org/ticket/10958#comment:3>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: