Solution (source code)

= Solution

For $E<0$, impose decay and continuity on $G=C e^{-\kappa|x-x'|}$. Its <derivative> jump is $-2\kappa C$, so $-\hbar^2(G'_+-G'_-)/(2m)=1$ requires
$$
\boxed{G(x,x')=\frac m{\kappa\hbar^2}e^{-\kappa|x-x'|},\quad\kappa=\sqrt{-2mE}/\hbar.}
$$
There is no nonzero free solution decaying at both infinities that can be added without spoiling the <derivative> condition.