Newbie gdb (*nix?) Question
Newbie gdb (*nix?) Question
- Subject: Newbie gdb (*nix?) Question
- From: Richard Jackson <email@hidden>
- Date: Fri, 21 Jun 2002 09:46:08 -0700
This is probably obvious, but I've scanned the gdb manual and can't seem
to find any answer...
If I have tcsh environment variables set, for example:
$MYPROJ=~/Projects/MyProject, or
$MYTARGET=mytarget.mycompany.com
is there a way to use these inside gdb?
I seem to be able to start gdb and use these as command variables, for
example this works fine:
gdb -s $MYPROJECT/mysyms.sym
but if I launch gdb and try to use the environment variables in a gdb
command, gdb doesn't seem to know how to parse them:
(gdb) add-symbol-file $MYPROJ/mysyms.sym
$MYPROJ/mysyms.sym: No such file or directory
Yet if I type out the full path it works fine:
(gdb) add-symbol-file ~/Projects/MyProject/mysyms.sym
I'd like to be able to use my environment variables to write gdb command
scripts: what am I doing wrong?
TIA,
- Richard Jackson
_______________________________________________
darwin-kernel mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/darwin-kernel
Do not post admin requests to the list. They will be ignored.