Breakpoint not working properly in DDD

Hello,

When i set the breakpoints, the execution stops exactly at the breakspoint where it is set, but there is no green arrow in that position, beacause of which, i am unable to print the value of the variable at those positions.


test.jpg
gsdctechAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

fridomCEO/ProgrammerCommented:
I'm sorry  but that  does not make sense. you are at the breakpoint then you can go  on the  variable and right-click then you can choose e.g display *var_name and the variable will be displayed, or you can use the gdb command line and type in what you like to inspect there. Unfortunatly gdb can not show variables which are held in registers. That makes debugging sort of pain sometimes....

Regards
Friedrich
0
gsdctechAuthor Commented:
But in the snapshot which i have shown, the program has halted at the breakpoint and am trying to print the variable modulated signal, but i get the error "No symbol in current context", as if it is not at the breakpoint location.

0
fridomCEO/ProgrammerCommented:
That is what I pointed out with register variables. You have to check the Assembler and Processor state to figure out the value. So see the assembler code, there must be some comparison to some register variables, and this  will be the "value" of the variable. I wrote this makes debugging sometimes a pain....

Regards
Friedrich
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

Duncan RoeSoftware DeveloperCommented:
Also, rebuild without any optimisation if possible
0
gsdctechAuthor Commented:
Duncan... what do you mean by "without any optimisation"
0
Duncan RoeSoftware DeveloperCommented:
Make sure there is no -O option given to gcc
0
Duncan RoeSoftware DeveloperCommented:
Or the Sun compiler, if you're using that
0
gsdctechAuthor Commented:
ahh ok... it was run in debug mode, not optimal mode.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux OS Dev

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.