aboutsummaryrefslogtreecommitdiff
path: root/gdb/features/mips64-dsp-linux.c
diff options
context:
space:
mode:
authorAndrew Burgess <aburgess@redhat.com>2024-10-11 14:53:25 +0100
committerAndrew Burgess <aburgess@redhat.com>2024-11-12 12:51:36 +0000
commit9b5ba7e49edcb75ca48908d6cd64db01a6e900cf (patch)
treed2e527968e3eca91cc4cd96c1e62d25444619a09 /gdb/features/mips64-dsp-linux.c
parent3d6f66d8bb6c539bc89b55b1add85dc6f53f2011 (diff)
downloadbinutils-9b5ba7e49edcb75ca48908d6cd64db01a6e900cf.zip
binutils-9b5ba7e49edcb75ca48908d6cd64db01a6e900cf.tar.gz
binutils-9b5ba7e49edcb75ca48908d6cd64db01a6e900cf.tar.bz2
gdb/features: set osabi in all Linux related features/*.xml files
Some of the top level (i.e. those that contain the <target> 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 <osabi> element included with the value "GNU/Linux". This commits adds the <osabi> 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 <kevinb@redhat.com>
Diffstat (limited to 'gdb/features/mips64-dsp-linux.c')
-rw-r--r--gdb/features/mips64-dsp-linux.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/features/mips64-dsp-linux.c b/gdb/features/mips64-dsp-linux.c
index 7ea0bb7..646f548 100644
--- a/gdb/features/mips64-dsp-linux.c
+++ b/gdb/features/mips64-dsp-linux.c
@@ -11,6 +11,8 @@ initialize_tdesc_mips64_dsp_linux (void)
target_desc_up result = allocate_target_description ();
set_tdesc_architecture (result.get (), bfd_scan_arch ("mips"));
+ set_tdesc_osabi (result.get (), GDB_OSABI_LINUX);
+
struct tdesc_feature *feature;
feature = tdesc_create_feature (result.get (), "org.gnu.gdb.mips.cpu");