This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug server/15967] New: gdbserver --wrapper doesn't work on Windows/MinGW/Cygwin


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]