473,719 Members | 2,065 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

GDB .... no debugging symbols found

Hug
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.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...(no debugging symbols found)...
------------------------------
When I type bt I have not informations, just that :
----------------------------------
#0 0x08053bd3 in strcpy ()
#1 0x081038c8 in ?? ()
#2 0x08051984 in strcpy ()
#3 0x0804dfe0 in strcpy ()
#4 0x0805aa73 in strcpy ()
#5 0x420158d4 in __libc_start_ma in () from /lib/i686/libc.so.6
------------------------------------------------
not very helpful ;)
I can copy my Makefile to show and tell me where I am wrong:
------------------------------------------------------
### PROJECT MAKEFILE ##

EXEC := gwrap
LIBS := ireader owriter

### DO NOT EDIT PAST THIS POINT ###

# compiler flags
export CXX := g++
export CXXFLAGS := -g -Wall -O2
LDFLAGS := -s
CPPFLAGS := $(foreach lib,$(LIBS),-I$(lib))
RM := rm -f

# files
SRCS := $(wildcard *.cpp)
OBJS := $(SRCS:.cpp=.o)
ALIBS := $(foreach lib,$(LIBS),$(l ib)/$(lib).a)

# Windows specific
ifeq ($(OS), Windows_NT)
RM := del
EXEC := $(EXEC).exe
ALIBS := $(subst /,\,$(ALIBS))
endif

# link
all: $(OBJS) $(ALIBS)
$(CXX) $(CXXFLAGS) $(LDFLAGS) -o $(EXEC) $^
# library archive
%.a:
$(MAKE) $@ -C $(*D)

# depend
..PHONY: depend
depend:
$(CXX) -MM $(CXXFLAGS) $(CPPFLAGS) $(SRCS) >$@
-include depend

# clean
mostlyclean:
$(RM) $(OBJS) $(EXEC) depend
clean:
$(RM) $(OBJS) $(ALIBS) $(EXEC) depend

------------------------------------------------------

Thanks a lot
R.
Jul 23 '05 #1
6 4774
Hug wrote:
Hello everybody

I try to use gdb to debug my program
but i have this message :

---------------------------
GNU gdb 5.3 [...]


This is off-topic here. Please consider posting to a newsgroup
dedicated to the tool you're using or to the OS you're on.

V
Jul 23 '05 #2
Sure, this group is not the most suitable group for this question even
though you suppose C/C++ guys should have more experience on gdb or make.
Anyway, for saving your time, I try to answer this question here.

insert the following lines:
%.o:
$(CXX) $(CXXFLAGS) -c $<
"Hug" <di*********@if rance.com> wrote in message
news:70******** *************** **@posting.goog le.com...
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. Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i686-pc-linux-gnu"...(no debugging symbols found)... ------------------------------
When I type bt I have not informations, just that :
----------------------------------
#0 0x08053bd3 in strcpy ()
#1 0x081038c8 in ?? ()
#2 0x08051984 in strcpy ()
#3 0x0804dfe0 in strcpy ()
#4 0x0805aa73 in strcpy ()
#5 0x420158d4 in __libc_start_ma in () from /lib/i686/libc.so.6
------------------------------------------------
not very helpful ;)
I can copy my Makefile to show and tell me where I am wrong:
------------------------------------------------------
### PROJECT MAKEFILE ##

EXEC := gwrap
LIBS := ireader owriter

### DO NOT EDIT PAST THIS POINT ###

# compiler flags
export CXX := g++
export CXXFLAGS := -g -Wall -O2
LDFLAGS := -s
CPPFLAGS := $(foreach lib,$(LIBS),-I$(lib))
RM := rm -f

# files
SRCS := $(wildcard *.cpp)
OBJS := $(SRCS:.cpp=.o)
ALIBS := $(foreach lib,$(LIBS),$(l ib)/$(lib).a)

# Windows specific
ifeq ($(OS), Windows_NT)
RM := del
EXEC := $(EXEC).exe
ALIBS := $(subst /,\,$(ALIBS))
endif

# link
all: $(OBJS) $(ALIBS)
$(CXX) $(CXXFLAGS) $(LDFLAGS) -o $(EXEC) $^
# library archive
%.a:
$(MAKE) $@ -C $(*D)

# depend
.PHONY: depend
depend:
$(CXX) -MM $(CXXFLAGS) $(CPPFLAGS) $(SRCS) >$@
-include depend

# clean
mostlyclean:
$(RM) $(OBJS) $(EXEC) depend
clean:
$(RM) $(OBJS) $(ALIBS) $(EXEC) depend

------------------------------------------------------

Thanks a lot
R.

Jul 23 '05 #3
modemer wrote:
Sure, this group is not the most suitable group for this question even
though you suppose C/C++ guys should have more experience on gdb or make.
Anyway, for saving your time, I try to answer this question here.

insert the following lines:
%.o:
$(CXX) $(CXXFLAGS) -c $<


If I am using Borland Builder and their IDE,
I never see a makefile. The same is true when
I am using Visual Studio C++.

Nowadays, with IDE's everywhere, why would people
have much experience with make?

Why do you assume people have experience with
gdb? After all, isn't Microsoft C++ the world
leader and if you use their product you have no
need for anything else {heavy sarcasm here}.

BTW, please don't top-post. You've read the
articles and know the policy.

--
Thomas Matthews

C++ newsgroup welcome message:
http://www.slack.net/~shiva/welcome.txt
C++ Faq: http://www.parashift.com/c++-faq-lite
C Faq: http://www.eskimo.com/~scs/c-faq/top.html
alt.comp.lang.l earn.c-c++ faq:
http://www.comeaucomputing.com/learn/faq/
Other sites:
http://www.josuttis.com -- C++ STL Library book
http://www.sgi.com/tech/stl -- Standard Template Library
Jul 23 '05 #4
"Thomas Matthews" <Th************ *************@s bcglobal.net> wrote in
message news:pI******** ********@newssv r19.news.prodig y.com...
modemer wrote:
Sure, this group is not the most suitable group for this question even
though you suppose C/C++ guys should have more experience on gdb or make. Anyway, for saving your time, I try to answer this question here.

insert the following lines:
%.o:
$(CXX) $(CXXFLAGS) -c $<
If I am using Borland Builder and their IDE,
I never see a makefile. The same is true when
I am using Visual Studio C++.


You couldn't see a makefile doesn't mean other people are same as you.

Nowadays, with IDE's everywhere, why would people
have much experience with make?

Why do you assume people have experience with
gdb? After all, isn't Microsoft C++ the world
leader and if you use their product you have no
need for anything else {heavy sarcasm here}.
Looks like Windows world is all of your world :-)
BTW, please don't top-post. You've read the
articles and know the policy.
sorry, why do you assume people have read the articles and the policy?

--
Thomas Matthews

C++ newsgroup welcome message:
http://www.slack.net/~shiva/welcome.txt
C++ Faq: http://www.parashift.com/c++-faq-lite
C Faq: http://www.eskimo.com/~scs/c-faq/top.html
alt.comp.lang.l earn.c-c++ faq:
http://www.comeaucomputing.com/learn/faq/
Other sites:
http://www.josuttis.com -- C++ STL Library book
http://www.sgi.com/tech/stl -- Standard Template Library

Jul 23 '05 #5
modemer wrote:

You couldn't see a makefile doesn't mean other people are same as you. Did _you_ write this?
Seems like you believe that everybody should be using gdb.
Do you read what you write?

Nowadays, with IDE's everywhere, why would people
have much experience with make?

Why do you assume people have experience with
gdb? After all, isn't Microsoft C++ the world
leader and if you use their product you have no
need for anything else {heavy sarcasm here}.

Looks like Windows world is all of your world :-)

Actually, my world consists of 80% embedded systems,
5% Unix/Linux, and 10% Microsoft windows.

My compilers consist of:
Metaware High C/C++, Greenhills, ARM Ltd., Tasking,
Intel, Microsoft, Borland and GNU.

I just hate when people are not open-minded and
believe that everybody in the world has their
platform, or are ignorant and believe that their
platform is the only one that exists.
BTW, please don't top-post. You've read the
articles and know the policy.

sorry, why do you assume people have read the articles and the policy?

Thanks for complying to the policy.
Now, read the FAQ. See below.

Do you always need to have the last word in a
discussion?

--
Thomas Matthews

C++ newsgroup welcome message:
http://www.slack.net/~shiva/welcome.txt
C++ Faq: http://www.parashift.com/c++-faq-lite
C Faq: http://www.eskimo.com/~scs/c-faq/top.html
alt.comp.lang.l earn.c-c++ faq:
http://www.comeaucomputing.com/learn/faq/
Other sites:
http://www.josuttis.com -- C++ STL Library book
http://www.sgi.com/tech/stl -- Standard Template Library
Jul 23 '05 #6
Hug
"modemer" <me@privacy.net .invalid> wrote in message news:<d1******* ***@domitilla.a ioe.org>...
Sure, this group is not the most suitable group for this question even
though you suppose C/C++ guys should have more experience on gdb or make.
Anyway, for saving your time, I try to answer this question here.

insert the following lines:
%.o:
$(CXX) $(CXXFLAGS) -c $<


Thks a lot, you save a lot of my time.
Jul 23 '05 #7

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

Similar topics

7
2161
by: Mikael Östberg | last post by:
Hello all! I have been working on a project for some time now and yesterday, my debugger stopped working. It is a class library which I run from a Win32 test app, so no IIS involved at this point. I can still set breakpoints and when debugging the breakpoints get hit - just like it would work normally.
2
1729
by: skohnle | last post by:
I have a C# application that loads a C callable dll via DllImport. The function gets called fine, but I can not debug it (Step into it). When the dll loads, the symbols are not found, and also the break point has the "?" all the time. What is going wrong here? I have tried everything I can think of. I am currently using Visual Studio .NET 2003. Thanks,
13
2274
by: Bonj | last post by:
is there a way, using windbg.exe and dbgclr.exe together, to debug a mixed DLL? (without using VS IDE) i.e., to sort of make windbg "take over" when it gets to the unmanaged part... ?
0
3226
by: ZMan | last post by:
Scenario: This is about debugging server side scripts that make calls to middle-tier business DLLs. The server side scripts are legacy ASP 3.0 pages, and the DLLs are managed DLLs converted/developed with VB.NET. What I want from debugging is to be able to step into the methods in the DLLs called from ASP scripts using Visual Studio .NET. Background: For typical script debugging issues, you can read and follow the two documents on...
2
3274
by: Alex Clark | last post by:
Hi All, My system: WinXP Pro, VS.NET 2003, SQL Server Personal Edition. I'm having problems with my old favourite demon, SQL Debugging from within VS.NET. I have to say I've found this particular feature to be one of the most useful and (sadly) unreliable/fragile features in VS.NET, it seems the slightest thing will break it.
5
7801
by: phnimx | last post by:
Hi , We have developed a number of plug-in .NET Library Components that we typically deploy with our various applications by installing them into the GAC. Each of the applications contains an app.config file referencing arbitrary versions of the plug-in components they wish to consume. Here's the problem: Assuming I have installed any one of our application software,
1
3718
by: seba | last post by:
Hi everybody, I'm trying to debud a c++ program using gdb, but I have this problem. $ 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".
2
3701
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
0
2411
by: =?Utf-8?B?QWxoYW1icmEgRWlkb3MgRGVzYXJyb2xsbw==?= | last post by:
Hi misters, i have application winforms in VB.NET When I press F5, for executing Debug....it's slows... I see,
0
9360
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
9208
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
9123
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
7993
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
6658
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
4481
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...
0
4744
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3185
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
2562
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.