From 9b5ba7e49edcb75ca48908d6cd64db01a6e900cf Mon Sep 17 00:00:00 2001 From: Andrew Burgess Date: Fri, 11 Oct 2024 14:53:25 +0100 Subject: gdb/features: set osabi in all Linux related features/*.xml files Some of the top level (i.e. those that contain the element) xml files in gdb/features/ are clearly Linux only. I conclude this based on the files names containing the string "linux". I think that all of these files should have the element included with the value "GNU/Linux". This commits adds the element where I believe it is appropriate and regenerates the associated .c files. The benefit of this change is that gdbserver, which makes use of these files, will now send the osabi back in more cases. Sending back more descriptive target descriptions is a good thing as this makes it easier for GDB to select the correct gdbarch. Approved-By: Kevin Buettner --- gdb/features/s390-linux32v1.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gdb/features/s390-linux32v1.c') diff --git a/gdb/features/s390-linux32v1.c b/gdb/features/s390-linux32v1.c index 291784f..cea14c1 100644 --- a/gdb/features/s390-linux32v1.c +++ b/gdb/features/s390-linux32v1.c @@ -11,6 +11,8 @@ initialize_tdesc_s390_linux32v1 (void) target_desc_up result = allocate_target_description (); set_tdesc_architecture (result.get (), bfd_scan_arch ("s390:31-bit")); + set_tdesc_osabi (result.get (), GDB_OSABI_LINUX); + struct tdesc_feature *feature; feature = tdesc_create_feature (result.get (), "org.gnu.gdb.s390.core"); -- cgit v1.1