Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Location of .gdbinit not always honored during STL object pretty printing setup
Location of .gdbinit not always honored during STL object pretty printing setup [message #773028] Sat, 31 December 2011 03:31 Go to next message
Eclipse UserFriend
I followed the instructions in the CDT FAQ to setup pretty printing for STL objects. However, eclipse doesn't load .gdbinit properly for all projects. It wasn't loading for my main project so I created a test project - it loads fine for that project. In both cases Window -> preferences -> C/C++ -> Debug -> GDB indicates it should use /home/flick/.gdbinit.

The failing project still tries .gdbinit despite the fact I told it to use /home/flick/.gdbinit. A work around is to copy/sym link .gdbinit to the working directory.

From debug traces console on the failure -
069,406 7source .gdbinit
069,406 &"source .gdbinit\n"
069,406 &".gdbinit: No such file or directory.\n"
069,407 7^error,msg=".gdbinit: No such file or directory."

Is there some way I can force eclipse to use the specified location ? Is there some debug tracing one can enable to see why it tries the wrong location ? Is this a bug ?

Imaging away / flick
Re: Location of .gdbinit not always honored during STL object pretty printing setup [message #773075 is a reply to message #773028] Sat, 31 December 2011 06:44 Go to previous messageGo to next message
Eclipse UserFriend
I guess you created the failing Debug Launch Configurations before you changed the default in Window -> preferences -> C/C++ -> Debug -> GDB

You have to edit the failing Debug Launch Configurations and change the location for gdbinit manually.
Re: Location of .gdbinit not always honored during STL object pretty printing setup [message #773199 is a reply to message #773075] Sat, 31 December 2011 16:05 Go to previous messageGo to next message
Eclipse UserFriend
Thanks for the response! I also thought that might be the issue but Project->Properties-> Run/Debug Settings then editing the Launch configuration and selecting Configure Workspace Settings... ->C/C++ ->Debug -> GDB also points to /home/flick/.gbinit. Is there another way to change this ? It appears to work if I create a new launch configuration ( but not duplicate an existing one ).

A search of my project tree for .gdbinit comes up empty.

Imaging away /flick
Re: Location of .gdbinit not always honored during STL object pretty printing setup [message #774051 is a reply to message #773199] Tue, 03 January 2012 02:08 Go to previous message
Eclipse UserFriend
Myron Flickner wrote on Sat, 31 December 2011 22:05
Thanks for the response! I also thought that might be the issue but Project->Properties-> Run/Debug Settings ...

When I do this I do not see the debugger options pane. Can you edit the launch configuration directly? In the menu bar click the small triangle right of the bug icon and choose "Debug Configurations...".

Quote:
It appears to work if I create a new launch configuration ( but not duplicate an existing one ).

That would support my assumption.
Previous Topic:how to add make file project type in tool chain in CDT
Next Topic:CDT 8.0.1 Regular Expressions Error Parser missing
Goto Forum:
  


Current Time: Mon Jul 07 19:58:26 EDT 2025

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

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

Back to the top