From d8c11c3841ffb8be42213a851b523bc0081303fb Mon Sep 17 00:00:00 2001 From: ajasts Date: Mon, 3 Mar 2025 10:39:42 +0200 Subject: [PATCH] Fixed debugging issue, now breakpoints work --- lab1/Makefile | 3 +-- lab2/Makefile | 7 +++---- lab3/Makefile | 9 ++++----- 3 files changed, 8 insertions(+), 11 deletions(-) diff --git a/lab1/Makefile b/lab1/Makefile index 67420fe..12a7431 100644 --- a/lab1/Makefile +++ b/lab1/Makefile @@ -20,7 +20,6 @@ CFLAGS = -I.. -I../inc \ -mfpu=fpv4-sp-d16 \ -ffunction-sections \ -fdata-sections \ - -g \ -gstrict-dwarf \ -Wall \ -I$(ARMGCC_ROOT)/arm-none-eabi/include/newlib-nano \ @@ -43,7 +42,7 @@ LFLAGS = -Wl,-T,../config.lds \ all: $(NAME).out main.o: main.c - @$(CC) $(CFLAGS) $< -c -o $@ + @$(CC) $(CFLAGS) -g $< -c -o $@ system.o: ../system.c @$(CC) $(CFLAGS) $< -c -o $@ diff --git a/lab2/Makefile b/lab2/Makefile index bdbe9ae..06c5834 100644 --- a/lab2/Makefile +++ b/lab2/Makefile @@ -20,7 +20,6 @@ CFLAGS = -I.. -I../inc -I../common \ -mfpu=fpv4-sp-d16 \ -ffunction-sections \ -fdata-sections \ - -g \ -gstrict-dwarf \ -Wall \ -I$(ARMGCC_ROOT)/arm-none-eabi/include/newlib-nano \ @@ -43,13 +42,13 @@ LFLAGS = -Wl,-T,../config.lds \ all: $(NAME).out main.o: main.c - @$(CC) $(CFLAGS) $< -c -o $@ + @$(CC) $(CFLAGS) -g $< -c -o $@ bump.o: ../common/bump.c - @$(CC) $(CFLAGS) $< -c -o $@ + @$(CC) $(CFLAGS) -g $< -c -o $@ delay.o: ../common/delay.c - @$(CC) $(CFLAGS) $< -c -o $@ + @$(CC) $(CFLAGS) -g $< -c -o $@ clock.o: ../common/clock.c @$(CC) $(CFLAGS) $< -c -o $@ diff --git a/lab3/Makefile b/lab3/Makefile index baf7de6..8cd1e5a 100644 --- a/lab3/Makefile +++ b/lab3/Makefile @@ -20,7 +20,6 @@ CFLAGS = -I.. -I../inc -I../common \ -mfpu=fpv4-sp-d16 \ -ffunction-sections \ -fdata-sections \ - -g \ -gstrict-dwarf \ -Wall \ -I$(ARMGCC_ROOT)/arm-none-eabi/include/newlib-nano \ @@ -43,19 +42,19 @@ LFLAGS = -Wl,-T,../config.lds \ all: $(NAME).out main.o: main.c - @$(CC) $(CFLAGS) $< -c -o $@ + @$(CC) $(CFLAGS) -g $< -c -o $@ bump.o: ../common/bump.c - @$(CC) $(CFLAGS) $< -c -o $@ + @$(CC) $(CFLAGS) -g $< -c -o $@ delay.o: ../common/delay.c - @$(CC) $(CFLAGS) $< -c -o $@ + @$(CC) $(CFLAGS) -g $< -c -o $@ clock.o: ../common/clock.c @$(CC) $(CFLAGS) $< -c -o $@ reflectance.o: ../common/reflectance.c - @$(CC) $(CFLAGS) $< -c -o $@ + @$(CC) $(CFLAGS) -g $< -c -o $@ cpu.o: ../common/cpu.c @$(CC) $(CFLAGS) $< -c -o $@