http://bugs.winehq.org/show_bug.cgi?id=20509
Eric Pouech eric.pouech@orange.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |eric.pouech@orange.fr
--- Comment #2 from Eric Pouech eric.pouech@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+