James
I assemble with gcc (not as/gas) and use these setting in my Makefile.
ASFLAGS = -mcpu=arm7tdmi -ggdb $(INCLUDES) -D_GNU_ASSEMBLER_ -x assembler-with-cpp -Wa,-gstabs
CC = arm-elf-gcc
.S.o:
@$(CC) $(ASFLAGS) $< -c -o $@
.s.o:
@$(CC) $(ASFLAGS) $< -c -o $@
Just realized that gcc is being passed -ggdb and the assembler is being passed -gstabs.
Sorry I don't have time right now to work it out, but I CAN view, set breakpoints, &
single step in the assembly source.
Regards
-Bill Knight
theARMPatch
On Mon, 17 May 2004 18:12:31 -0400, James Dabbs wrote:
Using the GNU toolchain, is it possible to assemble a .s file and link
it into a project so that ELF knows about the source? I would like to
be able to set breakpoints and single-step with assembly source files,
if this is possible.
Thanks,
James Dabbs, TGA