gdb_mbuild -do-not-clean-up option

Michael Elizabeth Chastain mec@shout.net
Tue Jan 7 15:58:00 GMT 2003


Andrew Cagney writes:
> In using gdb_mbuild.sh on a machine with lots of disk space (> 2gb free) 
> I've found things work even better if none of the build directories are 
> removed.  Instead relying on gdb/Makefile's dependencies to do a correct 
> re-build after a change.

My choice would be to make that the default.  Either let people run 'rm -r'
themselves if they want, or have a flag:

  -p  prune the build directories
  -s  strip the build directories

If you want to an option to keep the directories: '-n' is already
meaningful for make-type activities.

  -a  keep _a_ll the build directories

> make | tee logfile

I have never found a way to get the exit status of the first command.

In my scripts, I just do:

  set -e # exit on error
  set -x # echo all commands
  make > logfile 2>&1

Michael C



More information about the Gdb mailing list