[Bug 20509] gdb proxy mode: random reply to Offsets query

wine-bugs at winehq.org wine-bugs at winehq.org
Sun Nov 1 05:24:24 CST 2009


http://bugs.winehq.org/show_bug.cgi?id=20509


Eric Pouech <eric.pouech at orange.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |eric.pouech at orange.fr




--- Comment #2 from Eric Pouech <eric.pouech at orange.fr>  2009-11-01 05:24:23 ---
first of all wine_segs[0..2] must be initialized to 0 in gdb_init_context

it would be rather straightforward to get a correct value for wine_segs[0] (aka
code) as it's the base address of the main module, which we could get in
gdb_startup

however, wine_segs[1] (aka data) would be more difficult to get
note, it seems that when Data=XXX, BSS=XXX is ignored by gdb

moreover, latest gdb version also use CodeSeg, DataSeg (instead of Code, Data)
in order to provide linear addresses instead of offsets for relocation, which
will be handier in our case

HTH
A+

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list