LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices



Reply
 
Search this Thread
Old 08-30-2004, 02:35 PM   #1
icoming
Member
 
Registered: Feb 2004
Posts: 96

Rep: Reputation: 15
i have used 'ggdb3' when i compile a software,why gdb didn't find debugging symbols


i have used 'ggdb3' when i compile a software,why gdb didn't find debugging symbols.
what i what to compile is the program of ftp,and it's original Makefile is as follow:

all: ftp

include ../MCONFIG
include ../MRULES

ifneq ($(USE_GLIBC),1)
CFLAGS += -D_GNU_SOURCE
endif

ifeq ($(USE_READLINE),1)
CFLAGS += -D__USE_READLINE__
LIBS += -lreadline $(LIBTERMCAP)
endif

ftp: cmds.o cmdtab.o domacro.o ftp.o glob.o main.o ruserpass.o
$(CC) $(LDFLAGS) $^ $(LIBS) -o $@

domacro.o ftp.o glob.o main.o ruserpass.o: ftp_var.h pathnames.h
cmds.o cmdtab.o: ftp_var.h pathnames.h cmds.h
cmds.o glob.o: glob.h

install: ftp
install -s -m$(BINMODE) ftp $(INSTALLROOT)$(BINDIR)
ln -sf ftp $(INSTALLROOT)$(BINDIR)/pftp
install -m$(MANMODE) ftp.1 $(INSTALLROOT)$(MANDIR)/man1
ln -sf ftp.1 $(INSTALLROOT)$(MANDIR)/man1/pftp.1

clean:
rm -f *.o ftp
~
i add ggdb3 to CFLAGS:CFLAGS+=ggdb3.
when i run 'make',gcc just run like this:
gcc -pipe -O2 -Wall -W -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wcast-align -ggdb3 -D__USE_READLINE__ glob.c -c

why is there still no debugging symbols?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
fortran debugging question with g77 and gdb miasmak Programming 1 08-16-2006 08:03 AM
Help debugging with gdb and core files moon.es Programming 1 05-28-2005 05:58 AM
gdb crashes when debugging pthread-ed program tbruer1138 Programming 0 04-21-2005 06:38 PM
gdb problem during debugging xine crash ... rs_javadi Linux - Software 0 08-24-2004 07:25 AM
Multi-thread debugging with gdb on RedHat 9.0 Rodney Riggs Linux - Software 0 09-23-2003 05:34 PM


All times are GMT -5. The time now is 02:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration