[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] Enhanced debugging for assembler files

On Mar 31, 2006, at 4:21 AM, Keir Fraser wrote:

On 31 Mar 2006, at 03:56, Jimi Xenidis wrote:

This patch enhances how gdb handles assembler and has no performance issues and no size issues after striping.
Signed-off-by: Jimi Xenidis <jimix@xxxxxxxxxxxxxx>

Does gcc not pass '-g' through to the assembler backend? When I added -Wa,-gdwarf-2 I saw no change in file sizes.

In the gcc-2.x and 3.[01] days we had to manually add this for the ppc and mips compilers, so I did it out of habbit.
Seems it is not longer necessary with the newer gcc's

(cd arch/x86 ;gcc -... -g -D__XEN__ -D__ASSEMBLY__ -v -c trampoline.S -o trampoline.o)
gcc version 3.3.6 (Debian 1:3.3.6-10)
/usr/lib/gcc-lib/i486-linux-gnu/3.3.6/cc1 -E ... -o - |
as --gdwarf2 -V -Qy -o trampoline.o -

If not, then still would -Wa,-g not be better? It should use the best debug format for the target system, just as -g does for gcc. Otherwise I would think we should be using -gdwarf-2 for C files as well.


Xen-devel mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.