473,795 Members | 3,255 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

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=$(PROGR AM)
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

Mar 22 '07 #1
1 3729
[cross-posting deleted]

On Mar 22, 5:48 am, "seba" <sebastiano.ber t...@gmail.comw rote:
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=$(PROGR AM)
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

Mar 22 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
4403
by: Torbak | last post by:
I got some question about symbols in libraries ... In libraries, there is public symbols and "not public" symbols (private, static)... In C when we use the "static" keyword on the declaration of a function, the function is not public in the library. 1- When I use a class, all is symbols are put in the public section of the library. How can I change that. The keyword "private" in a class is only for the langage or does it change (like...
1
1249
by: brong | last post by:
Hi there, I encountered a problem when I was using gdb. I used CTRL+ALT+ESC to kill a running gdb process, but later on, when I tried to use gdb again, I found some strange problem like this: GNU gdb 6.3 Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are
6
4782
by: Hug | last post by:
Hello everybody I try to use gdb to debug my program but i have this message : --------------------------- GNU gdb 5.3 Copyright 2002 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions.
12
1719
by: Cleverbum | last post by:
Hi, I'm a complete beginner, having written my second program and finally got it to compile, I've got an error I can't track down occurring at runtime - basically whatever I do it says Segmentation Fault. I was wondering if there was any way I could get a slightly more verbose description of the error so that I could think about sorting it out. Someone mentioned to me that the g++ option -DRANGE_CHECKING would check if i was accessing...
2
3704
by: Zach | last post by:
I compiled a game client and it crashed (segmentation fault) resulting in a core file being generated. I'm trying to find out exactly what caused it to crash. Any ideas how I can do this with gdb? In the Makefile can I just add a "-g" flag to have the binary produced with debugging symbols? The source is written in ANSI C. This is what I have now: "CC = gcc" The client binary is 433680 and the core file produced when it crashed
3
2233
by: SteveD | last post by:
Hi guys, http://luaforge.net/frs/?group_id=327 pgdb.zip is an addition to scite-debug, which adds source debugging to the popular SciTE programmer's editor. gdbpy.zip is a standalone version which can be run from Emacs. These allow you to single-step from Python to C code in a debugger session.
5
1951
by: Ron Ford | last post by:
I thought I would ask a question that is decidedly non-political, although I will admit that a frenchman made my fourth. As well as infinite cheeseburgers, and, of course, jenny. When I believe to be issuing commands to dos that will step me through gdb, I receive counter-communication that talks of target exec. What do I need to do to not read of "target exec" and step through? Dankenstein,
6
9933
by: tvnaidu | last post by:
creating execuable file in Linux by linking some static libraries (to link ibxyz.a, using -lxyz option). if I strip all symbols in static library (strip -s libxyz.a), then if try to link again, then I gets lot of "undefined reference", can't I do strip on static library using below command? strip -s xyz.a
0
2813
by: tvnaidu | last post by:
gdb list command - doesnot show source - where I should copy source ? # gdb /pfrm2.0/bin/cacd Could not find platform independent libraries <prefix> Could not find platform dependent libraries <exec_prefix> Consider setting $PYTHONHOME to <prefix> 'import site' failed; use -v for traceback GNU gdb (GDB) 7.0.1 Copyright (C) 2009 Free Software Foundation, Inc.
0
10438
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10214
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10164
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10001
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9042
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7540
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5437
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4113
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3727
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.