Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » debugging and global variables
debugging and global variables [message #71814] Wed, 28 May 2003 08:41 Go to next message
Eclipse UserFriend
Originally posted by: xetor.gmx.net

Hallo,

1) it is possible to watch a global variable in the debug perspective
in the variable view (if I go with the cursor to the global variable
the content was showed in the source view, but this is not so good for

complex structs)?

2) can I access the gdb direct via the console to interact with the gdb
manualy?

3) in the debug perspective is the expressions view avaible with the
feature
add global varialbe, but it dosnt work! help?

(I use Eclipse Version: 2.1.0, CDT 1.1.0 Build 2003.05.15, MinGW 2.0.0-3,
gcc-3.2.2-20030208-1 and gdb-5.2.1-20021009)

thanks

harald
Re: debugging and global variables [message #71943 is a reply to message #71814] Wed, 28 May 2003 15:33 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mikhailk.qnx.com

"harald" <xetor@gmx.net> wrote in message news:bb1sno$g2j$1@rogue.oti.com...
> Hallo,
>
> 1) it is possible to watch a global variable in the debug perspective
> in the variable view (if I go with the cursor to the global variable
> the content was showed in the source view, but this is not so good for
>
> complex structs)?

The "Variables" view displays only local variables and arguments for the
selected stack frame.
You can use the "Add Expression (C/C++)" option to add a global variable to
the "Expressions" view.

>
> 2) can I access the gdb direct via the console to interact with the gdb
> manualy?

Yes, you can. Use the "Show Debugger Console" option to switch to gdb
console. It doesn't have a gdb prompt but you can type gdb commands in it.

>
> 3) in the debug perspective is the expressions view avaible with the
> feature
> add global varialbe, but it dosnt work! help?

The "Add Globals" option has not implemented for some platforms.

>
> (I use Eclipse Version: 2.1.0, CDT 1.1.0 Build 2003.05.15, MinGW 2.0.0-3,
> gcc-3.2.2-20030208-1 and gdb-5.2.1-20021009)
>
> thanks
>
> harald
>
Re: debugging and global variables [message #72107 is a reply to message #71943] Wed, 28 May 2003 19:27 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: xetor.t-online.de

Mikhail Khodjaiants wrote:
for wich platforms is the feature "Add Globals" implemented ?

> "harald" <xetor@gmx.net> wrote in message news:bb1sno$g2j$1@rogue.oti.com...
> > Hallo,
> >
> > 1) it is possible to watch a global variable in the debug perspective
> > in the variable view (if I go with the cursor to the global variable
> > the content was showed in the source view, but this is not so good for
> >
> > complex structs)?

> The "Variables" view displays only local variables and arguments for the
> selected stack frame.
> You can use the "Add Expression (C/C++)" option to add a global variable to
> the "Expressions" view.

> >
> > 2) can I access the gdb direct via the console to interact with the gdb
> > manualy?

> Yes, you can. Use the "Show Debugger Console" option to switch to gdb
> console. It doesn't have a gdb prompt but you can type gdb commands in it.

> >
> > 3) in the debug perspective is the expressions view avaible with the
> > feature
> > add global varialbe, but it dosnt work! help?

> The "Add Globals" option has not implemented for some platforms.

> >
> > (I use Eclipse Version: 2.1.0, CDT 1.1.0 Build 2003.05.15, MinGW 2.0.0-3,
> > gcc-3.2.2-20030208-1 and gdb-5.2.1-20021009)
> >
> > thanks
> >
> > harald
> >
Re: debugging and global variables [message #72125 is a reply to message #72107] Wed, 28 May 2003 19:44 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: xetor.t-online.de

harald wrote:

Sorry for last wrote.

For wich platforms is the feature "Add Globals" implemented ?
I use W2K and Windows XP and I see a window "selection needed | Select
Variables" , but no variables are shown, but a global variable is used.

Thanks

> > "harald" <xetor@gmx.net> wrote in message
news:bb1sno$g2j$1@rogue.oti.com...
> > > Hallo,
> > >
> > > 1) it is possible to watch a global variable in the debug perspective
> > > in the variable view (if I go with the cursor to the global variable
> > > the content was showed in the source view, but this is not so good for
> > >
> > > complex structs)?

> > The "Variables" view displays only local variables and arguments for the
> > selected stack frame.
> > You can use the "Add Expression (C/C++)" option to add a global variable to
> > the "Expressions" view.

> > >
> > > 2) can I access the gdb direct via the console to interact with the gdb
> > > manualy?

> > Yes, you can. Use the "Show Debugger Console" option to switch to gdb
> > console. It doesn't have a gdb prompt but you can type gdb commands in it.

> > >
> > > 3) in the debug perspective is the expressions view avaible with the
> > > feature
> > > add global varialbe, but it dosnt work! help?

> > The "Add Globals" option has not implemented for some platforms.

> > >
> > > (I use Eclipse Version: 2.1.0, CDT 1.1.0 Build 2003.05.15, MinGW 2.0.0-3,
> > > gcc-3.2.2-20030208-1 and gdb-5.2.1-20021009)
> > >
> > > thanks
> > >
> > > harald
> > >
Re: debugging and global variables [message #72161 is a reply to message #72125] Wed, 28 May 2003 20:25 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mikhailk.qnx.com

This feature works for Linux and QNX Neutrino.

"harald" <xetor@t-online.de> wrote in message
news:bb33i3$ln9$1@rogue.oti.com...
> harald wrote:
>
> Sorry for last wrote.
>
> For wich platforms is the feature "Add Globals" implemented ?
> I use W2K and Windows XP and I see a window "selection needed | Select
> Variables" , but no variables are shown, but a global variable is used.
>
> Thanks
>
> > > "harald" <xetor@gmx.net> wrote in message
> news:bb1sno$g2j$1@rogue.oti.com...
> > > > Hallo,
> > > >
> > > > 1) it is possible to watch a global variable in the debug
perspective
> > > > in the variable view (if I go with the cursor to the global
variable
> > > > the content was showed in the source view, but this is not so
good for
> > > >
> > > > complex structs)?
>
> > > The "Variables" view displays only local variables and arguments for
the
> > > selected stack frame.
> > > You can use the "Add Expression (C/C++)" option to add a global
variable to
> > > the "Expressions" view.
>
> > > >
> > > > 2) can I access the gdb direct via the console to interact with the
gdb
> > > > manualy?
>
> > > Yes, you can. Use the "Show Debugger Console" option to switch to gdb
> > > console. It doesn't have a gdb prompt but you can type gdb commands in
it.
>
> > > >
> > > > 3) in the debug perspective is the expressions view avaible with the
> > > > feature
> > > > add global varialbe, but it dosnt work! help?
>
> > > The "Add Globals" option has not implemented for some platforms.
>
> > > >
> > > > (I use Eclipse Version: 2.1.0, CDT 1.1.0 Build 2003.05.15, MinGW
2.0.0-3,
> > > > gcc-3.2.2-20030208-1 and gdb-5.2.1-20021009)
> > > >
> > > > thanks
> > > >
> > > > harald
> > > >
>
>
>
>
>
>
>
>
Re: debugging and global variables [message #72303 is a reply to message #72161] Thu, 29 May 2003 08:11 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: xetor.t-online.de

it is planed to port this feature to other platforms like win32 or HPUX ?

"Mikhail Khodjaiants" <mikhailk@qnx.com> schrieb im Newsbeitrag
news:bb362p$o7e$1@rogue.oti.com...
> This feature works for Linux and QNX Neutrino.
>
> "harald" <xetor@t-online.de> wrote in message
> news:bb33i3$ln9$1@rogue.oti.com...
> > harald wrote:
> >
> > Sorry for last wrote.
> >
> > For wich platforms is the feature "Add Globals" implemented ?
> > I use W2K and Windows XP and I see a window "selection needed | Select
> > Variables" , but no variables are shown, but a global variable is used.
> >
> > Thanks
> >
> > > > "harald" <xetor@gmx.net> wrote in message
> > news:bb1sno$g2j$1@rogue.oti.com...
> > > > > Hallo,
> > > > >
> > > > > 1) it is possible to watch a global variable in the debug
> perspective
> > > > > in the variable view (if I go with the cursor to the global
> variable
> > > > > the content was showed in the source view, but this is not so
> good for
> > > > >
> > > > > complex structs)?
> >
> > > > The "Variables" view displays only local variables and arguments for
> the
> > > > selected stack frame.
> > > > You can use the "Add Expression (C/C++)" option to add a global
> variable to
> > > > the "Expressions" view.
> >
> > > > >
> > > > > 2) can I access the gdb direct via the console to interact with
the
> gdb
> > > > > manualy?
> >
> > > > Yes, you can. Use the "Show Debugger Console" option to switch to
gdb
> > > > console. It doesn't have a gdb prompt but you can type gdb commands
in
> it.
> >
> > > > >
> > > > > 3) in the debug perspective is the expressions view avaible with
the
> > > > > feature
> > > > > add global varialbe, but it dosnt work! help?
> >
> > > > The "Add Globals" option has not implemented for some platforms.
> >
> > > > >
> > > > > (I use Eclipse Version: 2.1.0, CDT 1.1.0 Build 2003.05.15, MinGW
> 2.0.0-3,
> > > > > gcc-3.2.2-20030208-1 and gdb-5.2.1-20021009)
> > > > >
> > > > > thanks
> > > > >
> > > > > harald
> > > > >
> >
> >
> >
> >
> >
> >
> >
> >
>
>
Re: debugging and global variables [message #72376 is a reply to message #72303] Thu, 29 May 2003 15:08 Go to previous message
Eclipse UserFriend
Originally posted by: mikhailk.qnx.com

"harald" <xetor@t-online.de> wrote in message
news:bb4fhp$ivk$1@rogue.oti.com...
> it is planed to port this feature to other platforms like win32 or HPUX ?
Yes, it is. But the problem is how to extract the globals. The current
implementation is not reliable.

>
> "Mikhail Khodjaiants" <mikhailk@qnx.com> schrieb im Newsbeitrag
> news:bb362p$o7e$1@rogue.oti.com...
> > This feature works for Linux and QNX Neutrino.
> >
> > "harald" <xetor@t-online.de> wrote in message
> > news:bb33i3$ln9$1@rogue.oti.com...
> > > harald wrote:
> > >
> > > Sorry for last wrote.
> > >
> > > For wich platforms is the feature "Add Globals" implemented ?
> > > I use W2K and Windows XP and I see a window "selection needed | Select
> > > Variables" , but no variables are shown, but a global variable is
used.
> > >
> > > Thanks
> > >
> > > > > "harald" <xetor@gmx.net> wrote in message
> > > news:bb1sno$g2j$1@rogue.oti.com...
> > > > > > Hallo,
> > > > > >
> > > > > > 1) it is possible to watch a global variable in the debug
> > perspective
> > > > > > in the variable view (if I go with the cursor to the global
> > variable
> > > > > > the content was showed in the source view, but this is not so
> > good for
> > > > > >
> > > > > > complex structs)?
> > >
> > > > > The "Variables" view displays only local variables and arguments
for
> > the
> > > > > selected stack frame.
> > > > > You can use the "Add Expression (C/C++)" option to add a global
> > variable to
> > > > > the "Expressions" view.
> > >
> > > > > >
> > > > > > 2) can I access the gdb direct via the console to interact with
> the
> > gdb
> > > > > > manualy?
> > >
> > > > > Yes, you can. Use the "Show Debugger Console" option to switch to
> gdb
> > > > > console. It doesn't have a gdb prompt but you can type gdb
commands
> in
> > it.
> > >
> > > > > >
> > > > > > 3) in the debug perspective is the expressions view avaible with
> the
> > > > > > feature
> > > > > > add global varialbe, but it dosnt work! help?
> > >
> > > > > The "Add Globals" option has not implemented for some platforms.
> > >
> > > > > >
> > > > > > (I use Eclipse Version: 2.1.0, CDT 1.1.0 Build 2003.05.15, MinGW
> > 2.0.0-3,
> > > > > > gcc-3.2.2-20030208-1 and gdb-5.2.1-20021009)
> > > > > >
> > > > > > thanks
> > > > > >
> > > > > > harald
> > > > > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> >
> >
>
>
Previous Topic:how do I install new version of CDT
Next Topic:Source builds of latest release?
Goto Forum:
  


Current Time: Thu May 09 05:09:33 GMT 2024

Powered by FUDForum. Page generated in 0.02902 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top