[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: starting gdb with modified PATH

From: Michael Chastain
Subject: Re: starting gdb with modified PATH
Date: Mon, 16 Aug 2004 12:11:55 -0400
User-agent: nail 10.8 6/28/04

Oh, I see.  It sounds like what you want to do is have your foo.exp
script change the environment before starting gdb.

Look in gdb.base/completion.exp for some environment manipulation:

  global env
  if [info exists env(PATH)] {
    set old_path $env(PATH)

  set env(PATH) "..."

  if [info exists old_path] {
    set env(PATH) $old_path
  } else {
    unset env(PATH)

Is that what you're looking for?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]