> >Actually that patch is not ok. The issues you fix on m68k appear > >on arm/eabi after applying your patch. bswap part appears ok, but > >the padding is needed atleast on arm. > How do you test this patch ? Do you use native gdb on ARM ? Because, for > m68k, cross-compiled gdb does not work (it cannot have sizeof(prstatus_t) for > m68k).
I tried both native and cross-gdb, version 7.2. Both fail with your patch applied and work fine without it. Before your patch, objdump (CodeSourcery cs2009q3 cross) output looks like: -snip- Sections: Idx Name Size VMA LMA File off Algn 0 note0 000001bc 00000000 00000000 000000d4 2**0 CONTENTS, READONLY 1 .reg/23968 00000048 00000000 00000000 00000130 2**2 CONTENTS 2 .reg 00000048 00000000 00000000 00000130 2**2 CONTENTS 3 .auxv 00000070 00000000 00000000 00000220 2**2 CONTENTS 4 load1 00000000 00008000 00000000 00001000 2**12 ALLOC, READONLY, CODE -snip- after: -snip- Sections: Idx Name Size VMA LMA File off Algn 0 note0 000001bc 00000000 00000000 000000d4 2**0 CONTENTS, READONLY 1 .auxv 00000070 00000000 00000000 00000220 2**2 CONTENTS 2 load1 00000000 00008000 00000000 00001000 2**12 ALLOC, READONLY, CODE CONTENTS, ALLOC, LOAD -snip-