Use stop infunction to set breakpoints at all instances of the specified function template:
(dbx) stop infunction square (9) stop infunction square