Rewrite/fix cygwin1.dbg generation

Pedro Alves pedro_alves@portugalmail.pt
Thu Nov 8 00:05:00 GMT 2007


Christopher Faylor wrote:

> That would be fine with me.  OTOH, if the dllfixdbg isn't doing the
> right thing for gdb couldn't it be adapted to include the required
> sections?
> 

Yep.  Here is a patch that does that.

Testsuite shows no changes, I could build cygwin in cygwin with
this, and gdb doesn't complain anymore.

Also tested that the cygheap can grow as much as the previous
version.

  >objdump.exe -h new-cygwin1.dll

new-cygwin1.dll:     file format pei-i386

Sections:
Idx Name          Size      VMA       LMA       File off  Algn
    0 .text         001350d4  61001000  61001000  00000400  2**4
                    CONTENTS, ALLOC, LOAD, READONLY, CODE, DATA
    1 .autoload_text 000013d8  61137000  61137000  00135600  2**2
                    CONTENTS, ALLOC, LOAD, CODE
    2 .data         0000b51c  61139000  61139000  00136a00  2**4
                    CONTENTS, ALLOC, LOAD, DATA
    3 .rdata        0004fb80  61145000  61145000  00142000  2**4
                    CONTENTS, ALLOC, LOAD, READONLY, DATA
    4 .bss          00009530  61195000  61195000  00000000  2**4
                    ALLOC
    5 .edata        00008487  6119f000  6119f000  00191c00  2**2
                    CONTENTS, ALLOC, LOAD, READONLY, DATA
    6 .rsrc         00000420  611a8000  611a8000  0019a200  2**2
                    CONTENTS, ALLOC, LOAD, DATA
    7 .reloc        00013434  611a9000  611a9000  0019a800  2**2
                    CONTENTS, ALLOC, LOAD, READONLY, DATA
    8 .cygwin_dll_common 00017ae4  611bd000  611bd000  001ade00  2**2
                    CONTENTS, ALLOC, LOAD, DATA, SHARED
    9 .gnu_debuglink 00000010  611d5000  611d5000  001c5a00  2**2
                    CONTENTS, READONLY, DEBUGGING, EXCLUDE
   10 .idata        0000a000  611d6000  611d6000  001c5c00  2**2
                    CONTENTS, ALLOC, LOAD, DATA
   11 .cygheap      000a0000  611e0000  611e0000  00000000  2**2
                    ALLOC

  >objdump.exe -h cygwin1.dbg

cygwin1.dbg:     file format pei-i386

Sections:
Idx Name          Size      VMA       LMA       File off  Algn
    0 .text         001350d4  61001000  61001000  00000000  2**4
                    ALLOC, LOAD, READONLY, CODE, DATA
    1 .autoload_text 000013d8  61137000  61137000  00000000  2**2
                    ALLOC, LOAD, CODE
    2 .data         0000b51c  61139000  61139000  00000000  2**4
                    ALLOC, LOAD, DATA
    3 .rdata        0004fb80  61145000  61145000  00000000  2**4
                    ALLOC, LOAD, READONLY, DATA
    4 .bss          00009530  61195000  61195000  00000000  2**4
                    ALLOC
    5 .edata        00008487  6119f000  6119f000  00000000  2**2
                    ALLOC, LOAD, READONLY, DATA
    6 .rsrc         00000420  611a8000  611a8000  00000000  2**2
                    ALLOC, LOAD, DATA
    7 .reloc        00013434  611a9000  611a9000  00000000  2**2
                    ALLOC, LOAD, READONLY, DATA
    8 .cygwin_dll_common 00017ae4  611bd000  611bd000  00000000  2**2
                    ALLOC, LOAD, DATA, SHARED
    9 .idata        0000a000  611d6000  611d6000  00000000  2**2
                    ALLOC, LOAD, DATA
   10 .cygheap      000a0000  611e0000  611e0000  00000000  2**2
                    ALLOC
   11 .stab         00212ce8  61280000  61280000  00000380  2**2
                    CONTENTS, READONLY, DEBUGGING, EXCLUDE
   12 .stabstr      006b00a6  61493000  61493000  00213180  2**0
                    CONTENTS, READONLY, DEBUGGING, EXCLUDE

Cheers,
Pedro Alves

-------------- next part --------------
A non-text attachment was scrubbed...
Name: sepdebug.diff
Type: text/x-diff
Size: 1275 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20071108/0c24fc31/attachment.bin>


More information about the Cygwin-patches mailing list