Using pgrep here is actually safer:
sudo gdb -p $(pgrep -U $USER -x gnome-shell) -batch \ -ex "set logging on" -ex continue \ -ex "bt full" -ex "call gjs_dumpstack()" \ -ex quit
Using pgrep here is actually safer:
sudo gdb -p $(pgrep -U $USER -x gnome-shell) -batch \
-ex "set logging on" -ex continue \
-ex "bt full" -ex "call gjs_dumpstack()" \
-ex quit