Statistics: Posted by Pratik_yadav — Mon Sep 25, 2017 8:13 pm
Statistics: Posted by Her Mary — Mon Sep 25, 2017 10:50 am
Code:
CFLAGS = -Og -ggdb
GDBSTUBFILES := $(wildcard ./gdbstub_files/*)GDBOBJFILES = $(subst $(GDBSTUBSRC),$(GDBSTUB_BUILD),$(GDBSTUBSRC:%.S=%.o))
GDBOBJFILES += $(subst $(GDBSTUBSRC),$(GDBSTUB_BUILD),$(GDBSTUBSRC:%.c=%.o))
GDBSTUBSRC = $(filter %.c %.S,$(GDBSTUBFILES))
@-mkdir -p $(GDBSTUB_BUILD)
./gdbstub_build/gdbstub_files/gdbstub-entry.o : ./gdbstub_files/gdbstub-entry.S
@echo "this is inside making of gdbstub-entry.o"
mkdir -p $(dir $@)
$(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@
./gdbstub_build/gdbstub_files/gdbstub.o : ./gdbstub_files/gdbstub.c
@echo "this is inside making of gdbstub.c"
mkdir -p $(dir $@)
$(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@
Code:
xtensa-lx106-elf-gdb -b 115200
(gdb) file out/build/app.out
(gdb) set remote hardware-breakpoint-limit 1
(gdb) set remote hardware-watchpoint-limit 1
(gdb) set debug xtensa 4
(gdb) target remote /dev/ttyUSB0
Statistics: Posted by Pratik_yadav — Thu Sep 21, 2017 6:55 pm