473,395 Members | 1,521 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

problem while debuging

hello everyone ,
i don know is this question should be asked in gbd forums or here
itself:

the problem is that after i compile my program with gcc a lot of ^M
type of symbols are added in the source file
now when i try to debug the program with gdb it doesn't go the normal
way .

what possibly could be wrong here.
thank you
mohan
Jul 26 '08 #1
4 1012
mohi wrote:
hello everyone ,
i don know is this question should be asked in gbd forums or here
itself:

the problem is that after i compile my program with gcc a lot of ^M
type of symbols are added in the source file
now when i try to debug the program with gdb it doesn't go the normal
way .
Compilers read source files, they don't change them. Sounds like you
have a tool problem, not a C one.
what possibly could be wrong here.
Something beyond the scope of this group.

--
Ian Collins.
Jul 26 '08 #2
mohi wrote:
hello everyone ,
i don know is this question should be asked in gbd forums or here
itself:

the problem is that after i compile my program with gcc a lot of ^M
type of symbols are added in the source file
now when i try to debug the program with gdb it doesn't go the normal
way .

what possibly could be wrong here.
thank you
mohan
I think you are saving your files with "Windows" style line-endings on a
Unix system. But I could be wrong. In any case, as Ian said, compilers
do not modify their source files. It seems like an editor configuration
problem to me.

Jul 26 '08 #3
On 26 Jul 2008 at 9:01, santosh wrote:
mohi wrote:
>i don know is this question should be asked in gbd forums or here
itself:
Here is perfectly appropriate, despite what some bitter misanthropists
will try to tell you.
>the problem is that after i compile my program with gcc a lot of ^M
type of symbols are added in the source file
now when i try to debug the program with gdb it doesn't go the normal
way .

I think you are saving your files with "Windows" style line-endings on a
Unix system.
Yes. Besides fixing his editor setup, the OP could also try running
something like dos2unix on his source files, or do a good old-fashioned
tr -d '\r'

Jul 26 '08 #4
In article <g6**********@registered.motzarella.org>,
santosh <sa*********@gmail.comwrote:
>mohi wrote:
>hello everyone ,
i don know is this question should be asked in gbd forums or here
itself:

the problem is that after i compile my program with gcc a lot of ^M
type of symbols are added in the source file
now when i try to debug the program with gdb it doesn't go the normal
way .

what possibly could be wrong here.
thank you
mohan

I think you are saving your files with "Windows" style line-endings on a
Unix system. But I could be wrong. In any case, as Ian said, compilers
do not modify their source files. It seems like an editor configuration
problem to me.
I would imagine that it is possible to create a conforming C compiler
that does modify its source files. Thus, in the argot of this group,
such things do exist.

Jul 27 '08 #5

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

Similar topics

9
by: mickeyg | last post by:
Is there a way to step thru php application? What tools do I need? I will like to see what lines are being executed and maybe variables values Thanks in advance
6
by: Tom | last post by:
I try to write a simple tcp based job queue server. It's purpose is to get commands from a client and store them in a queue (STL). The server has a thread which checks periodically the queue,...
1
by: Rogers | last post by:
When I tried to run an application developed by VB.net in IIS6,This error occured,The error message is "Current credit level setting desn't support Debuging"(in chinese),I dont't know how to...
2
by: Balamurali C | last post by:
Hi All I'm having one problem, since im debuging this last one week I'm not able to do. Problem: In my webage I have two Frames(top & bottom) in the top frame I'm displaying some...
3
by: Tina | last post by:
How can I debug with a querystring in vs.net? Is there some place to put the querystring? thanks, T
2
by: Vilsad | last post by:
Hi, I have VS 2005 installed on my system and it was working fine till today noon, but when i am trying to run my project (in vb.net) it saying 'error while trying to run project: unable to start...
1
by: DJG79 | last post by:
Hi all, I am using an open source menu that i found and it works great, except for one thing that when the web page is not scrolled to the very top the drop down links will not stay visible. Has...
4
by: psbasha | last post by:
Hi, How to check the class attributes/member variable values while debuging in 'PythonWin'?. I need to watch all the member varibales values of a class ,given the object or etc. Thanks PSB
2
by: alexis.meilland | last post by:
Hello, Well, I have a problem with a dynamic debuging. My program is winform program written in Managed c++. I compile dynamically a dll in vb.net. It works well. To execute a function in...
2
by: =?ISO-8859-1?B?RulybmFz?= | last post by:
Hey all, I have a URGENT problem and I hope someone could help me... scenery: I have a windows app, coded using C# (framework 1.1 - VS2003)... The exe and dlls of the app is are stored in a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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...
0
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...

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.