I have installed QEMU in RHEL for running the assembly programs in ARM. I have successfully installed QEMU and ARM. However, for debugging we are thinking to use GDB. I want to install the GDB-Multiarch in RHEL. I have installed GDB and when I run the command GDB I am getting the GDB shell successfully. However, I need to use the GDB-Multiarch and I am not able to run this command. To successfully run an assembly program, I need to execute the below command.

qemu-system-arm -S -s -M versatilepb -daemonize -m 128M -d in_asm,cpu,exec -kernel hello_world.bin ; gdb-multiarch --batch --command=hello_world.gdb

In the above command, I am getting the error as gdb-multiarch command as not found. I am really new to this environment and I would appreciate the help.

  • 1
    Well, "not found" means just that - that command most probably doesn't exist on your system. You may need to install the appropriate package before you can use that command. – Martin von Wittich Sep 23 '13 at 20:12
  • In Ubuntu, we are able to give apt-get gdb-multiarch and the installation takes place. So, in RHEL the package for gdb-multiarch is not available. So, I installed the latest gdb rpm from this link. I am still getting the command not found error only. – Ramesh Sep 23 '13 at 20:17
  • Sorry, can't help you there... I don't use RHEL. It is possible that this command is simply not available for RHEL, because the repositories of RHEL are as far as I know much smaller than those of Debian/Ubuntu. – Martin von Wittich Sep 23 '13 at 20:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.