GDB List command doesn't work??
GDB List command doesn't work??
- Subject: GDB List command doesn't work??
- From: David Scott <email@hidden>
- Date: Tue, 26 Jun 2007 17:03:10 -0400
Hello,
The gdb list command doesn't work for me. I am using OSX 10.4.9 and
XCode 2.4.1 installed although I am running gdb on the command line
so I'm not sure if that matters.
Anyway, when I run gdb, the LIST command fails with the following error:
(gdb) list
1 {standard input}: No such file or directory.
in {standard input}
This also fails:
(gdb) list test2.c:1
No source file named test2.c.
This also fails:
(gdb) list func1
No line number known for func1.
I have a very simple app with one .c file. I am building with the -g
switch
Here is my make file:
CC = gcc
CFLAGS = -g
LFLAGS = -g
INLCUDE = .
test2: test2.o
$(CC) $(LFLAGS) -o test2 test2.o
test2.o: test2.c
$(CC) -I$(INCLUDE) $(CFLAGS) -c test2.c
What could I be doing wrong? This works perfectly on Linux. It even
fails if a supply the complete path to the source file.
This is VERY frustrating so any help would be greatly appreciated.
I'm sure it is a simple mistake on my part, but google searches have
yielded nothing
Thanks in advance.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden