Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » GDB options
GDB options [message #208912] Wed, 30 January 2008 11:50 Go to next message
Eclipse UserFriend
Hello,
When Im debugging my C program, quite often gdb can't evaluate variables
values and displays "No symbol xx in current context". I would like to
ask you which are the "correct" gcc options for a accurate debugging.

Thanks
Tex.
Re: GDB options [message #209120 is a reply to message #208912] Mon, 04 February 2008 12:38 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jim.marshall.wbemsolutions.com

Tex-Twil wrote:
> Hello,
> When Im debugging my C program, quite often gdb can't evaluate variables
> values and displays "No symbol xx in current context". I would like to
> ask you which are the "correct" gcc options for a accurate debugging.
>
> Thanks
> Tex.
The only option you should need is the "-g" option. Are your sources
compiled with optimizations turned on (-Ox)? If so the variable may be
optimized away. Or are you possibly referring to a macro?
Re: GDB options [message #209153 is a reply to message #209120] Tue, 05 February 2008 06:14 Go to previous messageGo to next message
Eclipse UserFriend
Hi,
the -g param inproves the debugger behavior, thanks.

Tex
Jim Marshall wrote:
> Tex-Twil wrote:
>> Hello,
>> When Im debugging my C program, quite often gdb can't evaluate variables
>> values and displays "No symbol xx in current context". I would like to
>> ask you which are the "correct" gcc options for a accurate debugging.
>>
>> Thanks
>> Tex.
> The only option you should need is the "-g" option. Are your sources
> compiled with optimizations turned on (-Ox)? If so the variable may be
> optimized away. Or are you possibly referring to a macro?
Re: GDB options [message #209189 is a reply to message #209153] Tue, 05 February 2008 07:33 Go to previous messageGo to next message
Eclipse UserFriend
.... but I still have the "No symbol xx in current context" on some
variables. The strange thing is that those variables are correctly
displayed the the "Variables" debug window.

cheers,
Tex
Tex-Twil wrote:
> Hi,
> the -g param inproves the debugger behavior, thanks.
>
> Tex
> Jim Marshall wrote:
>> Tex-Twil wrote:
>>> Hello,
>>> When Im debugging my C program, quite often gdb can't evaluate variables
>>> values and displays "No symbol xx in current context". I would like to
>>> ask you which are the "correct" gcc options for a accurate debugging.
>>>
>>> Thanks
>>> Tex.
>> The only option you should need is the "-g" option. Are your sources
>> compiled with optimizations turned on (-Ox)? If so the variable may be
>> optimized away. Or are you possibly referring to a macro?
Re: GDB options [message #209203 is a reply to message #209189] Tue, 05 February 2008 16:09 Go to previous message
Eclipse UserFriend
Originally posted by: jim.marshall.wbemsolutions.com

Tex-Twil wrote:
> ... but I still have the "No symbol xx in current context" on some
> variables. The strange thing is that those variables are correctly
> displayed the the "Variables" debug window.
We would need more info on what you are referring to.
>
> cheers,
> Tex
Previous Topic:How to get unique documents for multiple editors editing the same file?
Next Topic:entire .cpp file when I clink on a function in the outline?
Goto Forum:
  


Current Time: Thu May 29 10:07:50 EDT 2025

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

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

Back to the top