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

* [Bug server/15967] gdbserver --wrapper doesn't work on Windows/MinGW/Cygwin
  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 ` palves at redhat dot com
  2013-09-18 13:21 ` cvs-commit at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: palves at redhat dot com @ 2013-09-18 13:14 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #1 from Pedro Alves <palves at redhat dot com> ---
I think that until this is properly implemented, it'd be nice to make --wrapper
error out on ports that don't support it.

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


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

* [Bug server/15967] gdbserver --wrapper doesn't work on Windows/MinGW/Cygwin
  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
  1 sibling, 0 replies; 3+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2013-09-18 13:21 UTC (permalink / raw)
  To: gdb-prs

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

--- Comment #2 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
CVSROOT:    /cvs/src
Module name:    src
Changes by:    palves@sourceware.org    2013-09-18 13:21:41

Modified files:
    gdb/testsuite  : ChangeLog 
    gdb/testsuite/gdb.server: wrapper.exp 

Log message:
    gdbserver --wrapper also doesn't work on Cygwin.

    Skip the test on Cygwin too.

    2013-09-18  Pedro Alves  <palves@redhat.com>

    PR server/15967
    * gdb.server/wrapper.exp: Also return unsupported for Cygwin, and
    change text.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/ChangeLog.diff?cvsroot=src&r1=1.3812&r2=1.3813
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.server/wrapper.exp.diff?cvsroot=src&r1=1.1&r2=1.2

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