Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [cdt-dev] Wrong frame level info from CDT.

Hi,

This happens in a nested function call ( when frame level >= 3 ),
whenever there is a return from the function (frame level > 3).  Instead
of doing a Step Over (F6), do a Step Into (F5) and the error could be
reproduced. 

As mentioned in the previous mail, sometimes the frameLevel or the
frameCount issues a wrong mi frame level command, resulting in 'No frame
with frame# or frame_address -1" from GDB.

Hope the information would be enough to reproduce this error. Please let
me know if any further indepth information would be required for
reproducing this.

Thanks & Regards,
Anita Birje



-----Original Message-----
From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx]
On Behalf Of Mikhail Khodjaiants
Sent: Tuesday, November 29, 2005 3:24 AM
To: CDT General developers list.
Subject: Re: [cdt-dev] Wrong frame level info from CDT.

Do you have a test case? I can't reproduce it.

----- Original Message -----
From: "Birje, Anita (STSD)" <anita.birje@xxxxxx>
To: "CDT General developers list." <cdt-dev@xxxxxxxxxxx>
Sent: Friday, November 25, 2005 7:56 AM
Subject: [cdt-dev] Wrong frame level info from CDT.


> Hi,
> 
> While trying to debug a program, I get wrong frame level info from
CDT,
> therefore passing a command to MI GDB as follows
> mi stack-select-frame -1
> results in a 'No frame with frame# or frame_address -1" from GDB.
> 
> After going through the code, realized , 'Thread.java' returns '-1' at
> line 277 :
> int miLevel = getStackFrameCount()- frameLevel;
> 
> The 'frameLevel' estimated is incorrect which is done in 'Thread.java'
> at line 256:
> frameLevel = stackframe.getLevel();
> This is probably due to the wrong level set at line 124 in
'Thread.java'
> :
> currentFrames.add(new StackFrame(this, miFrames[i], depth -
> miFrames[i].getLevel()));
> 
> Did anyone encounter this problem or knows the solution, please help.
> 
> Regards,
> Anita
> _______________________________________________
> cdt-dev mailing list
> cdt-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/cdt-dev
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev


Back to the top