After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 698371 - Run command is available even after detaching
Run command is available even after detaching
Status: RESOLVED FIXED
Product: nemiver
Classification: Other
Component: general
trunk
Other Linux
: Normal normal
: ---
Assigned To: Nemiver maintainers
Nemiver maintainers
Depends on:
Blocks:
 
 
Reported: 2013-04-19 14:59 UTC by Adam Dingle
Modified: 2013-10-13 11:38 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Adam Dingle 2013-04-19 14:59: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.
Comment 1 Dodji Seketeli 2013-10-12 16:14:58 UTC
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.
Comment 2 Adam Dingle 2013-10-13 10:29:58 UTC
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!
Comment 3 Dodji Seketeli 2013-10-13 11:36:56 UTC
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!
Comment 4 Dodji Seketeli 2013-10-13 11:38:43 UTC
(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.