public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug remote/8967] Can't remotely debug attached process
       [not found] <20050207182801.8967.tron.thomas@verizon.net>
@ 2008-12-24 18:53 ` pedro at codesourcery dot com
  2008-12-24 18:57 ` pedro at codesourcery dot com
  1 sibling, 0 replies; 4+ messages in thread
From: pedro at codesourcery dot com @ 2008-12-24 18:53 UTC (permalink / raw)
  To: gdb-prs


------- Additional Comments From pedro at codesourcery dot com  2008-12-24 18:53 -------
The description of the bug is a bit misleading.  What is really happening, is that:

>From a terminal launch the log2 program in the background

... this doesn't really leave the log2 program running.  Since log2 is trying to
read from stdin, when you try to put it in the background, it is immediately
left stopped:

>../log2 &
Please enter a positive numeric value:  [1] 3669

[1]+  Stopped                 ../log2
[pedro@orlando][~/gdb/baseline/build/gdb/gdbserver]

>bg
[1]+ ../log2 &

[1]+  Stopped                 ../log2

>head /proc/3669/status
Name:   log2
State:  T (stopped)

gdbserver doesn't have support for attaching to stopped processes (yet), so the
attaching never completes successfully, and the socket is never open.

(Native GDB debugging just recently got support for attaching to stopped processes.)

If you instead launched log2 in the foreground in another terminal, gdbserver
would be able to attach successfully, and GDB would be able to connect to it.


-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=8967

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug remote/8967] Can't remotely debug attached process
       [not found] <20050207182801.8967.tron.thomas@verizon.net>
  2008-12-24 18:53 ` [Bug remote/8967] Can't remotely debug attached process pedro at codesourcery dot com
@ 2008-12-24 18:57 ` pedro at codesourcery dot com
  1 sibling, 0 replies; 4+ messages in thread
From: pedro at codesourcery dot com @ 2008-12-24 18:57 UTC (permalink / raw)
  To: gdb-prs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
  BugsThisDependsOn|                            |9684


http://sourceware.org/bugzilla/show_bug.cgi?id=8967

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug remote/8967] Can't remotely debug attached process
       [not found] <bug-8967-4717@http.sourceware.org/bugzilla/>
  2012-02-27 16:32 ` palves at redhat dot com
@ 2012-02-27 16:36 ` palves at redhat dot com
  1 sibling, 0 replies; 4+ messages in thread
From: palves at redhat dot com @ 2012-02-27 16:36 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=8967

Pedro Alves <palves at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
                 CC|                            |palves at redhat dot com
         Resolution|                            |FIXED
   Target Milestone|---                         |7.5

--- Comment #2 from Pedro Alves <palves at redhat dot com> 2012-02-27 16:36:01 UTC ---
I've checked in a patch.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug remote/8967] Can't remotely debug attached process
       [not found] <bug-8967-4717@http.sourceware.org/bugzilla/>
@ 2012-02-27 16:32 ` palves at redhat dot com
  2012-02-27 16:36 ` palves at redhat dot com
  1 sibling, 0 replies; 4+ messages in thread
From: palves at redhat dot com @ 2012-02-27 16:32 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=8967

Bug 8967 depends on bug 9684, which changed state.

Bug 9684 Summary: gdbserver, attach to stopped processes
http://sourceware.org/bugzilla/show_bug.cgi?id=9684

           What    |Old Value                   |New Value
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-02-27 16:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20050207182801.8967.tron.thomas@verizon.net>
2008-12-24 18:53 ` [Bug remote/8967] Can't remotely debug attached process pedro at codesourcery dot com
2008-12-24 18:57 ` pedro at codesourcery dot com
     [not found] <bug-8967-4717@http.sourceware.org/bugzilla/>
2012-02-27 16:32 ` palves at redhat dot com
2012-02-27 16:36 ` palves at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).