I'm writing code in both C and x86 Assembly with NASM.
I'm using gdb to compile (with gdb-dashboard, if that's important).
When I try to set a breakpoint with b foo.asm:5
I get a No line 5 in file "foo.asm" Make breakpoint pending on future shared library load? (y or [n])
.
gdb was working fine until a updated Ubuntu a couple days ago. Breakpoints work fine for the file in C.
I've been using Google Shell to debug my code. Using the exact same tools and the very same files, it works like it's supposed to. I've tried restarting my computer. I've tried reinstalling NASM and GDB.
I'm using the following Makefile to compile:
AS := nasm
ASFLAGS := -f elf64 -F DWARF -g -Wall
CC := gcc
CFLAGS := -Wall -Wextra -pedantic -g
TARGET := main
.PHONY: all
all: $(TARGET)
foo.o: foo.asm
$(AS) $(ASFLAGS) $<
main.o: main.c
$(CC) $(CFLAGS) -c $< -o $@
$(TARGET): main.o foo.o
$(CC) $(CFLAGS) $^ -o $@
.PHONY: clean
clean:
rm -rf *.o $(TARGET)
What is the problem, and how can I solve it?