Menu

#5 Include stm8 while building multi architecture gdb

1.0
closed
akre
None
2020-02-23
2018-11-02
No

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?

1 Attachments

Discussion

  • akre

    akre - 2018-11-05

    Thank you. I will include this patch in the next release.

     
    • akre

      akre - 2018-11-05

      Yes, please make a patch for the whole binutils package if you have time.

       
      • Antonio Borneo

        Antonio Borneo - 2018-11-06

        What do you mean for "make a patch for the whole binutils package"?

         
        • akre

          akre - 2018-11-06

          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:

          What do you mean for "make a patch for the whole binutils package"?

           
          • Antonio Borneo

            Antonio Borneo - 2018-11-07

            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

             
  • akre

    akre - 2020-02-23
    • status: open --> closed
     
  • akre

    akre - 2020-02-23

    Merged

     

Log in to post a comment.