Hi Ake,
as part of my work on OpenOCD I went to quickly check your gdb port for stm8.
I have added stm8 support in OpenOCD for multi-architecture gdb, see
http://openocd.zylin.com/4753
so I rebuilt your stm8-gdb with
./configure --enable-targets=all && make
and found that stm8 was not in the list of supported architectures!
Fixed with the patch in attachment.
Would you mind adding my patch to the whole build system?
Thank you. I will include this patch in the next release.
Yes, please make a patch for the whole binutils package if you have time.
What do you mean for "make a patch for the whole binutils package"?
Now I am not sure if there are similar multi-architecture options for
the other binutil tools as nm ld objdump etc etc. All i know is there is
a --enable-targets=all when building binutils but I have never tested if
it works or if the make files needs some attention.
/Ake
On 2018-11-06 12:24, Antonio Borneo wrote:
I think it is possible to have a single build of binutils for multi-architecture, but then you will be forced to specify the architecture on the command-line. This would be quite annoying and could break existing build and/or makefiles.
Multi-architecture gdb, instead, get the architecture information from the target and switch automatically using the right one.
But I'm not in favor of changing the script for building stm8 gdb and include multi-architecture as default, at least not for the moment:
the commit for the automatic selection in OpenOCD is not merged yet;
some user could be locked using an old version of OpenOCD;
* some user could use other remote target, not OpenOCD, that does not support multi-architecture.
This patch is mainly to allow multi-architecture if user decide to include it when rebuild gdb. Also needed if you plan to upstream gdb for stm8.
Antonio
Merged