This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
*Program*: int abc(int p,int q) { int r; r = p + q; return r; }
int main() { int a=10,b=20,c; c = abc(a,b); return 0; }
-------------------------------------------------------------------------------------------------------------------------------------------------------- * GDB output*
Thanks, Nagaraju M
On Fri, 2009-07-03 at 18:02 +0530, nagaraju.m wrote:
I am new new to gdb. Thanks for the useful information that you provided. I have tried as you suggested, i checked function prologue but it is defined properly.
In my code "step", "stepi" and "continue" are behaving normally. "next" issue is not only with my target it is with simulator also.
When i debugged it with gdb it is behaving correctly up to
"*if(!frame_id_eq (get_frame_id (get_current_frame ()), step_frame_id) && frame_id_eq (frame_unwind_id (get_current_frame ()), step_frame_id))*" this condition in infrun file in gdb. After this *start* and *end* points are changing as a result it is simply single stepping.
I am not able to trace the issue for here...
Can you please show me the path to resolve this issue...
Hi Nagaraju,
This is the test for whether the code is stepping into a function. Could you post the output when you run "next" after "set debug infrun 1".
The suspicion is that your frame unwinder is not working correctly.
HTH,
Jeremy
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |