• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
GDB List command doesn't work??
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: GDB List command doesn't work??
      • From: Alexander von Below <email@hidden>
  • Prev by Date: Re: Kernel Debug Kit for 10.4.10
  • Next by Date: Re: GDB List command doesn't work??
  • Previous by thread: Re: Kernel Debug Kit for 10.4.10
  • Next by thread: Re: GDB List command doesn't work??
  • Index(es):
    • Date
    • Thread