Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

GDB List command doesn't work??



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: http://lists.apple.com/mailman/options/darwin-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.