• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 321
  • Last Modified:

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
0
gsdctech
Asked:
gsdctech
  • 3
  • 3
  • 2
1 Solution
 
fridomCommented:
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
 
fridomCommented:
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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
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

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now