Adds support for including loongarch control and status registers into core files.

Michael Matz matz@suse.de
Fri Aug 6 13:40:40 GMT 2021


Hello,

On Fri, 6 Aug 2021, 刘振松 wrote:

> The following patch adds support for including loongarch control and 
> status registers into core files.
> 
> complete codes in github (https://github.com/loongson/binutils-gdb), 
> we'll push it to master after stable.

One remark:

>                                         /*   note name must be "CORE".  */

This comment ...

> +#define NT_LARCH_CPUCFG 0xa00          /* Loongarch CPU config registers */
> +                    /*   note name must be "LINUX".  */
> +#define NT_LARCH_CSR    0xa01          /* Loongarch control state registers*/
> +                    /*   note name must be "LINUX".  */
> +#define NT_LARCH_LSX    0xa02       /* Loongarch Loongson SIMD Extension registers */
> +                    /*   note name must be "LINUX".  */
> +#define NT_LARCH_LASX   0xa03       /* Loongarch Loongson Advanced SIMD Extension registers */
> +                    /*   note name must be "LINUX".  */
> +#define NT_LARCH_LBT    0xa04       /* Loongarch Loongson Binary Translation registers */
> +                    /*   note name must be "LINUX".  */
>  #define NT_SIGINFO     0x53494749      /* Fields of siginfo_t.  */

... belonged to this #define, your patch separates them by inserting in 
the middle.

>  #define NT_FILE                0x46494c45      /* Description of mapped files.  */


Ciao,
Michael.


More information about the Binutils mailing list