I'd like to use a gdb command script to automatically run commands, and I need it to have a unique id. This can be done manually via:
set $a = [unique id]
However, I'd like to do this programatically, somehting like:
set $a = shell myid.sh
where myid.sh prints a unique id.
However, I can't figure out how to load a gdb convenience var from the results of a shell command.