Currently on ECL swank::arglist dies when given a generic function (as happens when producing the arglist for a defmethod). swank-ecl.lisp uses si:compiled-function-name for mapping functions to their names, but this doesn't work for generic functions. The attached patch adds a check for generic functions, to use clos:generic-function-name instead, and tightens the test conditions in two branches of 'arglist' that err when a generic-function passes by.