#7829 - fawnha - Thu Jun 26, 2003 3:44 am
Hi,
I am trying to debug using arm-gdb but when I select SOURCE it returns to assembly output (and selects ASSEMBLY). When I select MIXED it does show mixed output. Can anyone suggest why I can't see the source? I think it might be something to do with how I compile the program. My NMAKE file is as follows (the name of the program is "Third Strike" and I have one source file called "main.c"):
CFLAGS = -c -O0
MODEL = -mthumb -mthumb-interwork
all : thirdstrike.bin
thirdstrike.bin : thirdstrike.elf
objcopy -O binary thirdstrike.elf thirdstrike.bin
thirdstrike.elf : main.o
gcc $(MODEL) -g -o thirdstrike.elf main.o
main.o : main.c
gcc $(CFLAGS) -g $(MODEL) main.c
Thanks for any help,
Hamish
I am trying to debug using arm-gdb but when I select SOURCE it returns to assembly output (and selects ASSEMBLY). When I select MIXED it does show mixed output. Can anyone suggest why I can't see the source? I think it might be something to do with how I compile the program. My NMAKE file is as follows (the name of the program is "Third Strike" and I have one source file called "main.c"):
CFLAGS = -c -O0
MODEL = -mthumb -mthumb-interwork
all : thirdstrike.bin
thirdstrike.bin : thirdstrike.elf
objcopy -O binary thirdstrike.elf thirdstrike.bin
thirdstrike.elf : main.o
gcc $(MODEL) -g -o thirdstrike.elf main.o
main.o : main.c
gcc $(CFLAGS) -g $(MODEL) main.c
Thanks for any help,
Hamish