Hello,

try Self^.VarName


-- 
Att,

Wanderlan Santos dos Anjos


On Dec 14, 2007 7:26 PM, ik <[EMAIL PROTECTED]> wrote:

> Hello,
>
> I'm not sure if this is the right malling list, or not...
> Anyway I'm using FPC 2.2.0 and Lazarus 0.9.24 on Linux.
>
> I have a public variable (that is accessed by several methods on
> specific events), but when I try to debug my code, gdb gives me
> (inside Lazarus) the following error:
>
> No symbol "..." in current context.
>
> A POC can look like that:
>
> TFormName = class (TForm)
> ...
> public
>   VarName : Type;
> ...
> endl
>
> ...
> procedure TFormName.FormCreate ...
> begin
>   VarName := Value;
>
>   Something.SomethingElse := VarName + AnothetThing; //Breakpoint on
> the variable
> end;
> ...
>
> And so does any other method will always return the above message.
>
> Am I missing something or the variable name is not accessible by gdb
> (maybe FPC changed the symbol name) ?
>
> Ido
> --
> http://ik.homelinux.org/
>
> _________________________________________________________________
>     To unsubscribe: mail [EMAIL PROTECTED] with
>                "unsubscribe" as the Subject
>   archives at http://www.lazarus.freepascal.org/mailarchives
>

Reply via email to