How to enable the simulator in gdb?

Asked by Helmut Giese

Hello,
I need the simulator for ARM and so I modified the function build_gdb to include --enable-sim (instead of --disable_sim).
However, when runninmg the resulting gdb and saying 'target sim' the result is still 'Undefined target sim'.

So the question is: Whatever steps are necessary to have the simulator included in a build of gdb?

Thanks in advance
H. Giese

Question information

Language:
English Edit question
Status:
Solved
For:
GNU Arm Embedded Toolchain Edit question
Assignee:
No assignee Edit question
Solved by:
Thomas Preud'homme
Solved:
Last query:
Last reply:
Revision history for this message
Tejas Belagod (belagod-tejas) said :
#1

I'm afraid sim is not a part of the tools package that we release.

Revision history for this message
Helmut Giese (hgiese) said :
#2

Hello Tejas,
I know from the release notes that you don't support the simulator. But it seems that you include a 'stock' gdb (which has the potential to support the simulator) and I was hoping for the 'configure voodoo' to get it done.
Best regards
H.Giese

Revision history for this message
Best Thomas Preud'homme (thomas-preudhomme) said :
#3

Hi Helmut,

If you look in the source you'll see that sim is not included. Therefore I recommend you to take the sources of the latest release of gdb on sourceware.org and compile an arm-none-eabi-gdb by yourself.

Best regards,

Thomas

Revision history for this message
Helmut Giese (hgiese) said :
#4

Hi Thomas,
that's a good advice - will do.

Thanks and best regards
Helmut

Revision history for this message
TM (tm1234) said :
#5