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/16587] New: 32-bit gdbserver --wrapper doesn't work on 64-bit hosts


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

            Bug ID: 16587
           Summary: 32-bit gdbserver --wrapper doesn't work on 64-bit
                    hosts
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: server
          Assignee: unassigned at sourceware dot org
          Reporter: dje at google dot com

When --wrapper is passed, we call the standard linux wait routines, and one
thing they do is call arch_setup for new inferiors.  On a 64-bit host the
wrapper could be a 64-bit program.  Logically, the loop that --wrapper support
does to walk the inferior through the wrapper shouldn't be doing all the
plethora of things that the normal linux wait routines do.

Repro:
64-bit amd64-linux, --build=i386-linux (== --host == --target)
make check RUNTESTFLAGS=wrapper.exp
[with appropriately set CC_FOR_TARGET, etc.]

-->

(gdb) PASS: gdb.server/wrapper.exp: disconnect
spawn
/g3/gnu/sourceware/main-gdb-git/b-master/obj32/gdb/testsuite/../../gdb/gdbserver/gdbserver
--once --wrapper env TEST=1 -- :2346 /g3/gnu/sourceware/main-gd\
b-git/b-master/obj32/gdb/testsuite/gdb.server/wrapper^M
Process
/g3/gnu/sourceware/main-gdb-git/b-master/obj32/gdb/testsuite/gdb.server/wrapper
created; pid = 20748^M
Can't debug 64-bit process with 32-bit GDBserver^M
Exiting^M

-- 
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]