i may want to get rid of ecb, but while it is on my system:
How can i prevent contaminating each directory with a file semantic-cache?
Set semanticdb-default-save-directory to a directory, by putting the following in your emacs init file (usually .emacs in your home directory):
(setq semanticdb-default-save-directory “~/.semantic”)
(replace ~/.semantic with a different directory, if you wish.)