I sort of agree with this and #5 ... except that currently not
all the ARM cores yet support semihosting, so they shouldn't all
respond to this command.  (Even after you add #6+#7 for v7m.)

One way to address that would be to provide the missing
implementations  for ARMv6 (ARM11) and ARMv7 (Cortex-A)
cores ... one minor glitch there is that those cores really
ought to be sharing common debug entry/exit code, since how
to do that is essentially specified by the DPM.  In short:
make that sharing happen, and then there'll be only one
place to share that.

A more expedient solution would be a bool stored with the
CPU methods, saying whether it supports semihosting yet.
(Eventually of course the answer should be "Yes!" but we
aren't there yet.)

- Dave
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to