public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug server/15967] New: gdbserver --wrapper doesn't work on Windows/MinGW/Cygwin
@ 2013-09-18 13:13 palves at redhat dot com
  2013-09-18 13:14 ` [Bug server/15967] " palves at redhat dot com
  2013-09-18 13:21 ` cvs-commit at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: palves at redhat dot com @ 2013-09-18 13:13 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=15967

            Bug ID: 15967
           Summary: gdbserver --wrapper doesn't work on
                    Windows/MinGW/Cygwin
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: server
          Assignee: unassigned at sourceware dot org
          Reporter: palves at redhat dot com
              Host: *-*-mingw* *-*-cygwin*
            Target: *-*-mingw* *-*-cygwin*

--wrapper doesn't work on the Windows ports of gdbserver.

On Cygwin:

 $ ./gdbserver.exe --wrapper /usr/bin/env TEST=1 -- :9999 /usr/bin/echo 1
 Process /usr/bin/echo created; pid = 488
 1

 Child exited with status 0
 No program to debug.  GDBserver exiting.
 $

gdbserver did one resume too many, and didn't actually end up debugging
the right process.

MinGW will be the same, but of course you'll need to find some other wrapper.

--wrapper works by gdbserver expecting one extra exec/trap in the initial
create_inferior phase, in addition to the one(s) for the shell, but the Windows
debug API is not like that.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

end of thread, other threads:[~2013-09-18 13:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-18 13:13 [Bug server/15967] New: gdbserver --wrapper doesn't work on Windows/MinGW/Cygwin palves at redhat dot com
2013-09-18 13:14 ` [Bug server/15967] " palves at redhat dot com
2013-09-18 13:21 ` cvs-commit at gcc dot gnu.org

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).