Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > GDB - no debugging symbols found (GDB Vs GCC?)

Reply
Thread Tools

GDB - no debugging symbols found (GDB Vs GCC?)

 
 
seba
Guest
Posts: n/a
 
      03-22-2007
Hi everybody,

I'm trying to debud a c++ program using gdb, but I have this problem.

[seba@localhost rel15]$ gdb
GNU gdb Red Hat Linux (6.5-15.fc6rh)
(gdb) file ./newcall
Reading symbols from /home/seba/workspace2/rel15/newcall...(no
debugging symbols found)...done.
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb)

Someone told me maybe there is a problem between compiler and gdb. So
I report here some information:
- os: Fedora Core 2.6.20-1.2925.fc6
- gdb version:6.5-15.fc6rh
- gcc version: 4.1.1 20070105 (Red Hat 4.1.1-51)

And this is makefile I'm using:
---------------------------------------------------------------------------------
begin makefile ----------
CC = g++ -I/opt/FSFlibg++/lib/g++-include
CFLAGS = -g -Wall
LIBFLAG = -lm -lefence
OBJS = main.o \
network.o \
SRCS = main.cpp \
network.cpp \
HDRS = network.hpp \
LIBS =
MAKEFILE = Makefile
PROGRAM = newcall

all: $(PROGRAM)

$(PROGRAM): $(OBJS) $(LIBS)
@echo -n "Loading $(PROGRAM) ... "
@$(CC) $(CFLAGS) $(OBJS) $(LIBS) -o $(PROGRAM) $(LIBFLAG)
@echo "done"

clean:; @rm -f $(OBJS)
depend:; @mkmf -f $(MAKEFILE) PROGRAM=$(PROGRAM)
index:; @ctags -wx $(HDRS) $(SRCS)
tags: $(HDRS) $(SRCS); @ctags $(HDRS) $(SRCS)

# DO NOT DELETE THIS LINE -- make depend depends on it.

---------------------------------------------------------------------------------
end makefile ----------





Thanks a lot

Sebastiano

 
Reply With Quote
 
 
 
 
mlimber
Guest
Posts: n/a
 
      03-22-2007
[cross-posting deleted]

On Mar 22, 5:48 am, "seba" <(E-Mail Removed)> wrote:
> Hi everybody,
>
> I'm trying to debud a c++ program using gdb, but I have this problem.
>
> [seba@localhost rel15]$ gdb
> GNU gdb Red Hat Linux (6.5-15.fc6rh)
> (gdb) file ./newcall
> Reading symbols from /home/seba/workspace2/rel15/newcall...(no
> debugging symbols found)...done.
> Using host libthread_db library "/lib/libthread_db.so.1".
> (gdb)
>
> Someone told me maybe there is a problem between compiler and gdb. So
> I report here some information:
> - os: Fedora Core 2.6.20-1.2925.fc6
> - gdb version:6.5-15.fc6rh
> - gcc version: 4.1.1 20070105 (Red Hat 4.1.1-51)
>
> And this is makefile I'm using:
> ---------------------------------------------------------------------------------
> begin makefile ----------
> CC = g++ -I/opt/FSFlibg++/lib/g++-include
> CFLAGS = -g -Wall
> LIBFLAG = -lm -lefence
> OBJS = main.o \
> network.o \
> SRCS = main.cpp \
> network.cpp \
> HDRS = network.hpp \
> LIBS =
> MAKEFILE = Makefile
> PROGRAM = newcall
>
> all: $(PROGRAM)
>
> $(PROGRAM): $(OBJS) $(LIBS)
> @echo -n "Loading $(PROGRAM) ... "
> @$(CC) $(CFLAGS) $(OBJS) $(LIBS) -o $(PROGRAM) $(LIBFLAG)
> @echo "done"
>
> clean:; @rm -f $(OBJS)
> depend:; @mkmf -f $(MAKEFILE) PROGRAM=$(PROGRAM)
> index:; @ctags -wx $(HDRS) $(SRCS)
> tags: $(HDRS) $(SRCS); @ctags $(HDRS) $(SRCS)
>
> # DO NOT DELETE THIS LINE -- make depend depends on it.
>
> ---------------------------------------------------------------------------------
> end makefile ----------
>
> Thanks a lot
>
> Sebastiano


This is off-topic here since it is specific to your platform/tools.
You should ask in a forum dedicated to the GNU tool chain. See the FAQ
for what is on-topic here and for a partial list of other newsgroups
you might consider:

http://www.parashift.com/c++-faq-lit...t.html#faq-5.9

Cheers! --M

 
Reply With Quote
 
 
 
Reply

Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Debugging with gdb: pystack macro for gdb to show python stack trace Timothy Madden Python 1 09-17-2009 11:47 AM
gdb doesn't find symbols briseight@gmail.com C++ 2 08-01-2007 09:20 AM
Capturing gdb output in pyhton script using gdb -batch -x arguments Surendra Python 0 03-23-2006 02:47 PM
GDB .... no debugging symbols found Hug C++ 6 03-17-2005 03:38 PM
NAN error and debugging with GDB Codas obfuscatus C Programming 10 01-08-2004 10:28 PM



Advertisments