Mail Archives: djgpp/2001/06/05/15:23:29
> From: "Igor Bujna" <igor DOT bujna AT maxi-tip DOT cz>
> Date: Tue, 5 Jun 2001 17:51:25 +0200
>
> CC = gcc
> INCLUDE = .
> .SUFFIXES: .c .h
> CFLAGS=-g -Wall -I$(INCLUDE)
> LIBS=-lpanel -lpdcurses
>
> OBJS = menurt.o main.o
>
> main: $(OBJS)
> $(CC) $(OBJS) -o main $(LIBS)
>
> %.o: %.c *.h
> $(CC) $(CFLAGS) $(INCLUDEDIR) -c -o $*.o $<
>
> When i compiling the "main" program everything are OK.
> When i run this program over rhgdb still everything OK.But when i
> go in function,which is in menurt.c a see this warning.
> "The selected breakpoint is invalid, probablythis file is not compiled
> with debugging information or for this line is no code generated.."
> I put breakpoint on this line "cprintf ("%i", cislo);"
> What i was doing bad.
Try replacing -g with -gstabs+ in CFLAGS, then recompile and relink
all of the sources, and see if that helps.
Also, does this happen for only that one line, or for any line in
menurt.c?
- Raw text -