http://bugs.winehq.org/show_bug.cgi?id=20509
Summary: gdb proxy mode: random reply to Offsets query? Product: Wine Version: 1.1.32 Platform: PC OS/Version: Linux Status: UNCONFIRMED Severity: minor Priority: P2 Component: winedbg AssignedTo: wine-bugs@winehq.org ReportedBy: pebolle@tiscali.nl
0) In gdb proxy mode the replies to "query packets" are constructed in programs/winedbg/gdbproxy.c:packet_query(). The reply to qOffsets is based on gdbctx->wine_segs (that reply has the form: Text=[...];Data=[...];Bss=[...]).
1) As far as I can see gdbctx->wine_segs is never properly set, so the reply seems to be (basically) random.
2) If the above is correct, the code needs a patch. I have no idea to what value(s) gdbctx->wine_segs should be set, so I can't draft that patch.