i'm trying to create a simple script for ARM cross compiler toolchain. When i try to debug with
#!/bin/bash
read VAR
echo `qemu-arm -g $VAR file &`
I should get a output like "[13] 22189", in this way i can use the other command:
gdb-multiarch -q --nh -ex 'set architecture arm' -ex 'file fileName' -ex ' target remote localhost:$VAR"
but i don't get any output. I'm not a expert about bash script but this script can help me so much because commands aren't easy to remember. If someone can help me, i would appreciate so much