This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug server/15967] New: gdbserver --wrapper doesn't work on Windows/MinGW/Cygwin
- From: "palves at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Wed, 18 Sep 2013 13:13:04 +0000
- Subject: [Bug server/15967] New: gdbserver --wrapper doesn't work on Windows/MinGW/Cygwin
- Auto-submitted: auto-generated
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.