Visit Jeremy's Blog.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


  Search this Thread
Old 08-30-2004, 01:35 PM   #1
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)

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

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

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?


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 07:03 AM
Help debugging with gdb and core files Programming 1 05-28-2005 04:58 AM
gdb crashes when debugging pthread-ed program tbruer1138 Programming 0 04-21-2005 05:38 PM
gdb problem during debugging xine crash ... rs_javadi Linux - Software 0 08-24-2004 06:25 AM
Multi-thread debugging with gdb on RedHat 9.0 Rodney Riggs Linux - Software 0 09-23-2003 04:34 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:42 PM.

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