[Bug 59720] The environment variable are not set when debugging

jbb jbb at kdevelop.org
Wed Jun 25 08:30:09 UTC 2003


Hi,

I want to be able to get the environment variables for any c/c++ type project 
ie autoproject, trollproject etc.

The following code (in gdbcontroller.cpp:1276) works for troll projects but 
doesn't work for autoprojects :(

QString project_mananger_key = 
(DomUtil::readEntry(dom,"general/projectmanagement")).lower();
    DomUtil::PairList envvars =
        DomUtil::readPairListEntry(dom, "/" + project_mananger_key + 
"/run/envvars",
                                        "envvar", "name", "value");

because project_mananger_key = kdevkdeautoproject, but it needs to be 
kdevautoproject. The troll project sets it to kdevtrollproject which just 
happens to be correct for that type of project.

I think these run options don't need to be in a sub option of the project 
type. This would mean we access the values like so

    DomUtil::PairList envvars =
        DomUtil::readPairListEntry(dom,  "/run/envvars",
                                        "envvar", "name", "value");

(I hope I'm understanding the way this Dom stuff is supposed to be working)

If no-one objects, I'll change this to remove run as a sub option and in the 
process fix this bug.

jbb

On Sun, 15 Jun 2003 01:10, Amilcar do Carmo Lucas wrote:
> ------- You are receiving this mail because: -------
> You are the assignee for the bug, or are watching the assignee.
>
> http://bugs.kde.org/show_bug.cgi?id=59720
> amilcar at ida.ing.tu-bs.de changed:
>
>            What    |Removed                     |Added
> ---------------------------------------------------------------------------
>- Component|general                     |debugger
>             Version|unspecified                 |CVS
>
>
>
> ------- Additional Comments From amilcar at ida.ing.tu-bs.de  2003-06-14 15:10
> ------- Strange, This was working fine three weeks ago!!!
>
> _______________________________________________
> Kdevelop-devel mailing list
> Kdevelop-devel at barney.cs.uni-potsdam.de
> http://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel





More information about the KDevelop-devel mailing list