I would like to know how it is possible to know the current system architecture in GDB and store this information into a variable for later evaluation.
Something like:
set variable $x=`shell uname -m`
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…