]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb: add microblaze-linux.xml to XMLTOC, regenerate microblaze-linux.c
authorSimon Marchi <simon.marchi@efficios.com>
Thu, 13 Nov 2025 21:51:58 +0000 (16:51 -0500)
committerSimon Marchi <simon.marchi@polymtl.ca>
Fri, 14 Nov 2025 20:02:14 +0000 (15:02 -0500)
microblaze-linux.c is out of date compared to the other .c files in the
features directory.  I think it's because it's missing from XMLTOC.  Add
it there and run the "cfiles" target, causing the updates to
microblaze-linux.c.

I thought that we could get rid of regformats/microblaze-linux.dat,
since microblaze-linux is described with an XML target, but apparently
not, I don't really understand (or forget) how these things work.

Change-Id: Idaa55980b3bbdcc6597e9bf332d5824759ef9d0f
Approved-By: Tom Tromey <tom@tromey.com>
gdb/features/Makefile
gdb/features/microblaze-linux.c

index d17c349b6cfa105aa60156c409958d08ba9fe38d..c98e31bc9b6c01ac52409bdf569a568e48d17267 100644 (file)
@@ -101,8 +101,9 @@ OUTPUTS = $(patsubst %,$(outdir)/%.dat,$(WHICH))
 # to make on the command line.
 XMLTOC = \
        alpha.xml \
-       microblaze-with-stack-protect.xml \
        microblaze.xml \
+       microblaze-linux.xml \
+       microblaze-with-stack-protect.xml \
        mips-dsp-linux.xml \
        mips-linux.xml \
        mips64-dsp-linux.xml \
index 48c6fc4e32e22c05c6deca48d25c85afefc858dd..087865cd41cbe2b371ea9cbba852d301e8924e8d 100644 (file)
@@ -1,7 +1,6 @@
 /* THIS FILE IS GENERATED.  -*- buffer-read-only: t -*- vi:set ro:
   Original: microblaze-linux.xml */
 
-#include "defs.h"
 #include "osabi.h"
 #include "target-descriptions.h"
 
@@ -12,7 +11,7 @@ initialize_tdesc_microblaze_linux (void)
   target_desc_up result = allocate_target_description ();
   set_tdesc_architecture (result.get (), bfd_scan_arch ("MicroBlaze"));
 
-  set_tdesc_osabi (result.get (), osabi_from_tdesc_string ("GNU/Linux"));
+  set_tdesc_osabi (result.get (), GDB_OSABI_LINUX);
 
   struct tdesc_feature *feature;