Breakpoint not working properly in DDD

gsdctech
gsdctech used Ask the Experts™
on
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
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
fridomCEO/Programmer

Commented:
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

Author

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.

CEO/Programmer
Commented:
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
Introduction to R

R is considered the predominant language for data scientist and statisticians. Learn how to use R for your own data science projects.

Duncan RoeSoftware Developer

Commented:
Also, rebuild without any optimisation if possible

Author

Commented:
Duncan... what do you mean by "without any optimisation"
Duncan RoeSoftware Developer

Commented:
Make sure there is no -O option given to gcc
Duncan RoeSoftware Developer

Commented:
Or the Sun compiler, if you're using that

Author

Commented:
ahh ok... it was run in debug mode, not optimal mode.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial