[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [cdt-dev] GDB debugger path
|
Hi,
the format for env variables is ${env_var:ProjDirPath}.
As for eclipse variables, which you can define in Preferences->Run/Debug->String Substitution,
the format is ${<eclipsevar>}, e.g. ${ProjDirPath}
You can refer to https://bugs.eclipse.org/bugs/show_bug.cgi?id=323466 for more info
> "Error creating session
> Cannot run program "arm-eabi-gdb": Unknown reason"
> -> Which looks like the command has not been found. I think I read somewhere, that CDT does not respect the PATH variable but looks into /usr/bin/
Using PATH works for me all the time. I use things like, gdb, gdb.7.0, gdb.6.8, and because their are in my PATH, the proper gdb is used.
Marc
________________________________________
From: cdt-dev-bounces@xxxxxxxxxxx [cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of maximilian.loy@xxxxxxxxx [maximilian.loy@xxxxxxxxx]
Sent: January 17, 2011 5:38 AM
To: cdt-dev@xxxxxxxxxxx
Subject: Re: [cdt-dev] GDB debugger path
Well, running Helios on Linux I tried both approaches without success:
- Using the ${ProjDirPath} variable resulted in:
"Error creating session
Cannot run program "${ProjDirPath}/Externals/Tools/AndroidNdk/Linux/build/prebuilt/linux-x86/arm-eabi-4.4.0/bin/arm-eabi-gdb": Unknown reason"
- Having arm-eabi-gdb in my PATH and just setting the command in the configuration gave me:
"Error creating session
Cannot run program "arm-eabi-gdb": Unknown reason"
-> Which looks like the command has not been found. I think I read somewhere, that CDT does not respect the PATH variable but looks into /usr/bin/
Thanks,
Max
> Date: Fri, 14 Jan 2011 11:45:11 -0500
> From: Marc Khouzam <marc.khouzam@xxxxxxxxxxxx>
> To: "'CDT General developers list.'" <cdt-dev@xxxxxxxxxxx>
> Subject: Re: [cdt-dev] GDB debugger path
>
> Hi,
>
> there is a way to use eclipse variables. If I remember correctly, the format was not very standard, so it may not be obvious, but I do believe it works.
>
> Another way is to have each member of the group properly set the location of 'gdb' in their PATH variable.
>
> In next CDT, there is a preference to set the default GDB path
> http://wiki.eclipse.org/CDT/User/NewIn80#Default_GDB_path_and_initialization_file
>
> I hope this helps.
>
> Marc
>
> ________________________________
> From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of maximilian.loy@xxxxxxxxx
> Sent: Friday, January 14, 2011 8:46 AM
> To: cdt-dev@xxxxxxxxxxx
> Subject: [cdt-dev] GDB debugger path
>
>
> Hi,
>
> is there a way to provide a relative path or use variables to set the GDB debugger path for the debug configuration?
> I need to set the path dynamically in order to share the project with other team members.
>
> Regards,
> Max
<http://wiki.eclipse.org/CDT/User/NewIn80#Default_GDB_path_and_initialization_file>