GNOME Bugzilla – Bug 698371
Run command is available even after detaching
Last modified: 2013-10-13 11:38:53 UTC
To see the problem: 1. Start Nemiver. No toolbar buttons will be enabled. 2. Use File->Attach to attach to a process. 3. Use File->Detatch to detach. The Run or Restart button will now still be enabled. If you press it, you'll see a message "Could not find file". I think it should be disabled in this situation.
Correct, this is a bug. I am looking into it -- better late than never. Sorry for the delay in looking into this, Adam. Thank you for taking the time to file all these bugs. It's appreciated.
Sure thing. I hadn't seen too much activity on Nemiver for a while, so I wasn't sure whether the project was still active - glad to hear it is!
https://git.gnome.org/browse/nemiver/commit/?id=483dcbbc1 There is a small complication, though. Normally, GDB won't take commands if the target is running. The target must be stopped first. In your case here, once you do File -> Attach, Nemiver instructs GDB to attach to the process; GDB thus attaches to the process and stops it. So doing File -> Detach works fine. Now imagine you do File -> Attach; then 'continue'. If you do File -> Detach, weird things happen. The detach plumbing now first stops the target (sending a SIGINT) and then detaches from it. The complication is that a popup shows off saying that target has received a signal. In normal operations, if your target receives a SIGNAL from below while you are debugging it, it's useful/important that you notice it. But in this case, it's rather annoying. To prevent this, I would need to handle bug #710033 first. I am marking this fixed for now, as I have filled #710033 to track that separate issue. Thank you for your time!
(In reply to comment #2) > Sure thing. I hadn't seen too much activity on Nemiver for a while, so I > wasn't sure whether the project was still active - glad to hear it is! It sure is :-) I am using it everyday for work ;-) I think I should roll out a release soon to unlash the stack of fixes I have under my belt ;-) I wish I'd have more time to spend on this, though. Cheers.